From 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:04:05 +0000 Subject: Vendor import of clang trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/cfe/trunk@351319 --- include/clang/AST/ODRHash.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/clang/AST/ODRHash.h') diff --git a/include/clang/AST/ODRHash.h b/include/clang/AST/ODRHash.h index 75b3617892110..feaa83844a1a5 100644 --- a/include/clang/AST/ODRHash.h +++ b/include/clang/AST/ODRHash.h @@ -13,6 +13,9 @@ /// //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_AST_ODRHASH_H +#define LLVM_CLANG_AST_ODRHASH_H + #include "clang/AST/DeclarationName.h" #include "clang/AST/Type.h" #include "clang/AST/TemplateBase.h" @@ -80,7 +83,7 @@ public: void AddIdentifierInfo(const IdentifierInfo *II); void AddNestedNameSpecifier(const NestedNameSpecifier *NNS); void AddTemplateName(TemplateName Name); - void AddDeclarationName(DeclarationName Name); + void AddDeclarationName(DeclarationName Name, bool TreatAsDecl = false); void AddTemplateArgument(TemplateArgument TA); void AddTemplateParameterList(const TemplateParameterList *TPL); @@ -88,6 +91,11 @@ public: void AddBoolean(bool value); static bool isWhitelistedDecl(const Decl* D, const DeclContext *Parent); + +private: + void AddDeclarationNameImpl(DeclarationName Name); }; } // end namespace clang + +#endif -- cgit v1.2.3