9 #ifndef LLVM_CLANG_AST_RAWCOMMENTLIST_H 10 #define LLVM_CLANG_AST_RAWCOMMENTLIST_H 14 #include "llvm/ADT/ArrayRef.h" 50 return Kind == RCK_Invalid;
54 return Kind == RCK_Merged;
72 return IsTrailingComment;
79 return IsAlmostTrailingComment;
84 return ((
Kind == RCK_OrdinaryBCPL) || (
Kind == RCK_OrdinaryC));
97 RawText = getRawTextSlow(SourceMgr);
110 return extractBriefText(Context);
144 mutable StringRef RawText;
145 mutable const char *BriefText;
147 mutable bool RawTextValid : 1;
148 mutable bool BriefTextValid : 1;
155 bool IsTrailingComment : 1;
156 bool IsAlmostTrailingComment : 1;
160 bool IsAlmostTrailingComment) :
162 IsAttached(
false), IsTrailingComment(IsTrailingComment),
163 IsAlmostTrailingComment(IsAlmostTrailingComment)
166 StringRef getRawTextSlow(
const SourceManager &SourceMgr)
const;
168 const char *extractBriefText(
const ASTContext &Context)
const;
186 return operator()(*LHS, *RHS);
197 llvm::BumpPtrAllocator &Allocator);
205 std::vector<RawComment *> Comments;
Defines the SourceManager interface.
Decl - This represents one declaration (or definition), e.g.
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Concrete class used by the front-end to report problems and issues.
Comparison function object.
Encodes a location in the source.
static bool isInvalid(LocType Loc, bool *Invalid)
Dataflow Directional Tag Classes.
Reads an AST files chain containing the contents of a translation unit.
A trivial tuple used to represent a source range.
This class handles loading and caching of source files into memory.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.