From: Sebastian Redl Date: Fri, 27 Aug 2010 23:12:39 +0000 (+0000) Subject: Comment and move another ASTReader member. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e41f985c15d15fce8390ebffb49dc75447c8f0f6;p=clang Comment and move another ASTReader member. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112319 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index d89a819923..d31be88a3e 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -485,6 +485,11 @@ private: /// Sema tracks a few important decls, such as namespace std, directly. llvm::SmallVector SemaDeclRefs; + /// \brief The IDs of the types ASTContext stores directly. + /// + /// The AST context tracks a few important types, such as va_list, directly. + llvm::SmallVector SpecialTypes; + //@} /// \brief The original file name that was used to build the primary AST file, @@ -507,9 +512,15 @@ private: bool DisableValidation; /// \brief Mapping from switch-case IDs in the chain to switch-case statements + /// + /// Statements usually don't have IDs, but switch cases need them, so that the + /// switch statement can refer to them. std::map SwitchCaseStmts; /// \brief Mapping from label statement IDs in the chain to label statements. + /// + /// Statements usually don't have IDs, but labeled statements need them, so + /// that goto statements and address-of-label expressions can refer to them. std::map LabelStmts; /// \brief Mapping from label IDs to the set of "goto" statements @@ -583,9 +594,6 @@ private: /// loaded once the recursive loading has completed. std::deque PendingIdentifierInfos; - /// \brief FIXME: document! - llvm::SmallVector SpecialTypes; - /// \brief Contains declarations and definitions that will be /// "interesting" to the ASTConsumer, when we get that AST consumer. ///