]> granicus.if.org Git - clang/commit
[ODRHash] Don't hash friend functions.
authorRichard Trieu <rtrieu@google.com>
Fri, 12 Jan 2018 04:42:27 +0000 (04:42 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 12 Jan 2018 04:42:27 +0000 (04:42 +0000)
commit780143bbd516aa39d754e5cab50955321b71fba0
tree8e570ba5bf304646c32b0f40a36e6b0f3bfd098c
parentb4b2f3a36b337e85073b24bdb8cd4b9dcc4edd1a
[ODRHash] Don't hash friend functions.

In certain combinations of templated classes and friend functions, the body
of friend functions does not get propagated along with function signature.
Exclude friend functions for hashing to avoid this case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ODRHash.cpp
test/Modules/Inputs/odr_hash-Friend/Box.h [new file with mode: 0644]
test/Modules/Inputs/odr_hash-Friend/M1.h [new file with mode: 0644]
test/Modules/Inputs/odr_hash-Friend/M2.h [new file with mode: 0644]
test/Modules/Inputs/odr_hash-Friend/M3.h [new file with mode: 0644]
test/Modules/Inputs/odr_hash-Friend/module.modulemap [new file with mode: 0644]
test/Modules/odr_hash-Friend.cpp [new file with mode: 0644]