10 #ifndef LLVM_CLANG_AST_RAWCOMMENTLIST_H 11 #define LLVM_CLANG_AST_RAWCOMMENTLIST_H 15 #include "llvm/ADT/ArrayRef.h" 51 return Kind == RCK_Invalid;
55 return Kind == RCK_Merged;
73 return IsTrailingComment;
80 return IsAlmostTrailingComment;
85 return ((
Kind == RCK_OrdinaryBCPL) || (
Kind == RCK_OrdinaryC));
98 RawText = getRawTextSlow(SourceMgr);
111 return extractBriefText(Context);
145 mutable StringRef RawText;
146 mutable const char *BriefText;
148 mutable bool RawTextValid : 1;
149 mutable bool BriefTextValid : 1;
156 bool IsTrailingComment : 1;
157 bool IsAlmostTrailingComment : 1;
161 bool IsAlmostTrailingComment) :
163 IsAttached(
false), IsTrailingComment(IsTrailingComment),
164 IsAlmostTrailingComment(IsAlmostTrailingComment)
167 StringRef getRawTextSlow(
const SourceManager &SourceMgr)
const;
169 const char *extractBriefText(
const ASTContext &Context)
const;
187 return operator()(*LHS, *RHS);
198 llvm::BumpPtrAllocator &Allocator);
206 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.