[ODRHash] Support ODR violation detection in functions.
authorRichard Trieu <rtrieu@google.com>
Sat, 23 Dec 2017 00:41:01 +0000 (00:41 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 23 Dec 2017 00:41:01 +0000 (00:41 +0000)
commite6caa26e5d1f277c620976923bf6fd58433b2c86
treeb240071434e238f24a4724c4abaa6fa2f8611171
parent50c342bf3f99c653716bd91201cc2a5189d596db
[ODRHash] Support ODR violation detection in functions.

Extend the hashing to functions, which allows detection of function definition
mismatches across modules.  This is a re-commit of r320230.

llvm-svn: 321395
clang/include/clang/AST/Decl.h
clang/include/clang/AST/ODRHash.h
clang/include/clang/Basic/DiagnosticSerializationKinds.td
clang/include/clang/Serialization/ASTReader.h
clang/lib/AST/Decl.cpp
clang/lib/AST/ODRHash.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriterDecl.cpp
clang/test/Modules/odr_hash.cpp