diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-02 12:18:46 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-02 12:18:46 +0000 |
commit | d9a25b3c1782783d991fe2a3627f1cf42c968115 (patch) | |
tree | 71d60081bbf731cdbedef34ccaee1108a83cc4e4 /clang/include | |
parent | e29c6731aa20ffd4cbc66339f8b4c0780b82ffa3 (diff) | |
download | bcm5719-llvm-d9a25b3c1782783d991fe2a3627f1cf42c968115.tar.gz bcm5719-llvm-d9a25b3c1782783d991fe2a3627f1cf42c968115.zip |
Only those InterestingDecls that got added to the AST should be passed to the ASTConsumer.
llvm-svn: 165001
Diffstat (limited to 'clang/include')
-rw-r--r-- | clang/include/clang/Serialization/ASTReader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/Serialization/ASTReader.h b/clang/include/clang/Serialization/ASTReader.h index e87c93fbece..a3abce11684 100644 --- a/clang/include/clang/Serialization/ASTReader.h +++ b/clang/include/clang/Serialization/ASTReader.h @@ -687,6 +687,12 @@ private: /// Objective-C protocols. std::deque<Decl *> InterestingDecls; + /// \brief Redecls that have been added to the AST + /// + /// Redecls that are deserialized but not in RedeclsAddedToAST must + /// not be passed to the ASTConsumers, even if they are InterestignDecls. + llvm::SmallPtrSet<Decl *, 16> RedeclsAddedToAST; + /// \brief The set of redeclarable declarations that have been deserialized /// since the last time the declaration chains were linked. llvm::SmallPtrSet<Decl *, 16> RedeclsDeserialized; |