]> granicus.if.org Git - clang/commit
[modules] When we merge redecl chains or mark a decl used with an update
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 16 Jun 2014 20:26:19 +0000 (20:26 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 16 Jun 2014 20:26:19 +0000 (20:26 +0000)
commite4d7f02c0699f734a9ea83e2dc4b5512f4700ec0
tree872b6f4bb3e184c270f6cccedf3b1f60dfa34887
parent7fe5bef6d6863f247222706806b80782ded8abb9
[modules] When we merge redecl chains or mark a decl used with an update
record, mark all subsequent decls as 'used' too, to maintain the AST invariant
that getPreviousDecl()->Used implies this->Used.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
test/Modules/Inputs/cxx-decls-imported.h
test/Modules/Inputs/cxx-decls-merged.h [new file with mode: 0644]
test/Modules/Inputs/module.map
test/Modules/cxx-decls.cpp