diff options
author | Richard Trieu <rtrieu@google.com> | 2017-07-11 22:10:49 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2017-07-11 22:10:49 +0000 |
commit | 1d06f44f0f0c7d17ff649782a5f897dd563d1031 (patch) | |
tree | 7800e3d28e07774bfb9379c35cd18e48edb28edc /clang/lib/AST/ODRHash.cpp | |
parent | 0cd23f564233c6e9c0e13ffaef0ecf7855a74496 (diff) | |
download | bcm5719-llvm-1d06f44f0f0c7d17ff649782a5f897dd563d1031.tar.gz bcm5719-llvm-1d06f44f0f0c7d17ff649782a5f897dd563d1031.zip |
[ODRHash] Support more method types.
Hash CXXConstructorDecl and CXXDestructorDecl. Extend the diagnostics from
CXXMethodDecl to include constructors and destructors.
llvm-svn: 307720
Diffstat (limited to 'clang/lib/AST/ODRHash.cpp')
-rw-r--r-- | clang/lib/AST/ODRHash.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ODRHash.cpp b/clang/lib/AST/ODRHash.cpp index 66b9940b8b0..5ac973ae4b3 100644 --- a/clang/lib/AST/ODRHash.cpp +++ b/clang/lib/AST/ODRHash.cpp @@ -350,6 +350,8 @@ bool ODRHash::isWhitelistedDecl(const Decl *D, const CXXRecordDecl *Parent) { default: return false; case Decl::AccessSpec: + case Decl::CXXConstructor: + case Decl::CXXDestructor: case Decl::CXXMethod: case Decl::Field: case Decl::Friend: |