diff options
Diffstat (limited to 'contrib/llvm-project/clang/include/clang/AST/ASTDiagnostic.h')
-rw-r--r-- | contrib/llvm-project/clang/include/clang/AST/ASTDiagnostic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/llvm-project/clang/include/clang/AST/ASTDiagnostic.h b/contrib/llvm-project/clang/include/clang/AST/ASTDiagnostic.h index d6549e12d92a..ef2224982862 100644 --- a/contrib/llvm-project/clang/include/clang/AST/ASTDiagnostic.h +++ b/contrib/llvm-project/clang/include/clang/AST/ASTDiagnostic.h @@ -9,6 +9,7 @@ #ifndef LLVM_CLANG_AST_ASTDIAGNOSTIC_H #define LLVM_CLANG_AST_ASTDIAGNOSTIC_H +#include "clang/AST/Type.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/DiagnosticAST.h" @@ -31,6 +32,12 @@ namespace clang { SmallVectorImpl<char> &Output, void *Cookie, ArrayRef<intptr_t> QualTypeVals); + + /// Returns a desugared version of the QualType, and marks ShouldAKA as true + /// whenever we remove significant sugar from the type. Make sure ShouldAKA + /// is initialized before passing it in. + QualType desugarForDiagnostic(ASTContext &Context, QualType QT, + bool &ShouldAKA); } // end namespace clang #endif |