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);
74 return IsTrailingComment;
81 return IsAlmostTrailingComment;
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) :
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);
194 std::vector<RawComment *> Comments;
SourceLocation getEnd() const
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.
SourceLocation getBegin() const
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.