1 //=======- DiagOutputUtils.h -------------------------------------*- C++ -*-==//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_ANALYZER_WEBKIT_DIAGPRINTUTILS_H
10 #define LLVM_CLANG_ANALYZER_WEBKIT_DIAGPRINTUTILS_H
12 #include "clang/AST/Decl.h"
13 #include "llvm/Support/raw_ostream.h"
17 template <typename NamedDeclDerivedT
>
18 void printQuotedQualifiedName(llvm::raw_ostream
&Os
,
19 const NamedDeclDerivedT
&D
) {
21 D
->getNameForDiagnostic(Os
, D
->getASTContext().getPrintingPolicy(),
26 template <typename NamedDeclDerivedT
>
27 void printQuotedName(llvm::raw_ostream
&Os
, const NamedDeclDerivedT
&D
) {
29 D
->getNameForDiagnostic(Os
, D
->getASTContext().getPrintingPolicy(),