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 | 38c3bb40c2cef630c236f3f455ea98999990b8ee (patch) | |
tree | ba0f098cca52ab8cbffdd81f342fc5c85442294f /include/clang/Serialization | |
parent | f88cd53676b1a2bf40a37d0ad23d81afa9f85544 (diff) |
Only those InterestingDecls that got added to the AST should be passed to the ASTConsumer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization')
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index e87c93fbec..a3abce1168 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/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; |