[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)
commit675d279af405d594552613c40a1507516039c694
tree0a261a5d60f673e2c1d0c83e9363ef8c070652a6
parent50f518be65ce3ea3be9ec06fcb103a752af18005
[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.

llvm-svn: 211050
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/test/Modules/Inputs/cxx-decls-imported.h
clang/test/Modules/Inputs/cxx-decls-merged.h [new file with mode: 0644]
clang/test/Modules/Inputs/module.map
clang/test/Modules/cxx-decls.cpp