diff options
Diffstat (limited to 'clang/lib/AST/ODRHash.cpp')
-rw-r--r-- | clang/lib/AST/ODRHash.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/AST/ODRHash.cpp b/clang/lib/AST/ODRHash.cpp index d8c2e20ede6..78a3eeca034 100644 --- a/clang/lib/AST/ODRHash.cpp +++ b/clang/lib/AST/ODRHash.cpp @@ -194,6 +194,14 @@ public: Inherited::VisitFieldDecl(D); } + + void VisitFunctionDecl(const FunctionDecl *D) { + Inherited::VisitFunctionDecl(D); + } + + void VisitCXXMethodDecl(const CXXMethodDecl *D) { + Inherited::VisitCXXMethodDecl(D); + } }; // Only allow a small portion of Decl's to be processed. Remove this once @@ -206,6 +214,7 @@ bool ODRHash::isWhitelistedDecl(const Decl *D, const CXXRecordDecl *Parent) { default: return false; case Decl::AccessSpec: + case Decl::CXXMethod: case Decl::Field: case Decl::StaticAssert: return true; |