10 #ifndef LLVM_CLANG_AST_RAWCOMMENTLIST_H 11 #define LLVM_CLANG_AST_RAWCOMMENTLIST_H 15 #include "llvm/ADT/ArrayRef.h" 44 bool Merged,
bool ParseAllComments);
51 return Kind == RCK_Invalid;
55 return Kind == RCK_Merged;
73 assert(isDocumentation());
74 return IsTrailingComment;
81 return IsAlmostTrailingComment;
86 return ((
Kind == RCK_OrdinaryBCPL) || (
Kind == RCK_OrdinaryC)) &&
97 return ParseAllComments;
105 RawText = getRawTextSlow(SourceMgr);
118 return extractBriefText(Context);
128 mutable StringRef RawText;
129 mutable const char *BriefText;
131 mutable bool RawTextValid : 1;
132 mutable bool BriefTextValid : 1;
139 bool IsTrailingComment : 1;
140 bool IsAlmostTrailingComment : 1;
144 bool ParseAllComments : 1;
148 bool IsAlmostTrailingComment,
149 bool ParseAllComments) :
150 Range(SR), RawTextValid(
false), BriefTextValid(
false),
Kind(K),
151 IsAttached(
false), IsTrailingComment(IsTrailingComment),
152 IsAlmostTrailingComment(IsAlmostTrailingComment),
153 ParseAllComments(ParseAllComments)
156 StringRef getRawTextSlow(
const SourceManager &SourceMgr)
const;
158 const char *extractBriefText(
const ASTContext &Context)
const;
176 return operator()(*LHS, *RHS);
186 void addComment(
const RawComment &RC, llvm::BumpPtrAllocator &Allocator);
194 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 ...
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.