77 return IsTrailingComment;
84 return IsAlmostTrailingComment;
102 RawText = getRawTextSlow(SourceMgr);
115 return extractBriefText(Context);
122 if (
Text.size() < 6 ||
Text[0] !=
'/')
126 return Text[1] !=
'/';
175 mutable StringRef RawText;
176 mutable const char *BriefText =
nullptr;
178 LLVM_PREFERRED_TYPE(
bool)
179 mutable unsigned RawTextValid : 1;
180 LLVM_PREFERRED_TYPE(
bool)
181 mutable unsigned BriefTextValid : 1;
187 LLVM_PREFERRED_TYPE(
bool)
188 unsigned IsAttached : 1;
190 LLVM_PREFERRED_TYPE(
bool)
191 unsigned IsTrailingComment : 1;
192 LLVM_PREFERRED_TYPE(
bool)
193 unsigned IsAlmostTrailingComment : 1;
197 bool IsAlmostTrailingComment) :
198 Range(SR), RawTextValid(
false), BriefTextValid(
false), Kind(K),
199 IsAttached(
false), IsTrailingComment(IsTrailingComment),
200 IsAlmostTrailingComment(IsAlmostTrailingComment)
203 StringRef getRawTextSlow(
const SourceManager &SourceMgr)
const;
205 const char *extractBriefText(
const ASTContext &Context)
const;
217 llvm::BumpPtrAllocator &Allocator);
226 unsigned Offset)
const;
232 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> OrderedComments;
233 mutable llvm::DenseMap<RawComment *, unsigned> CommentBeginLine;
234 mutable llvm::DenseMap<RawComment *, unsigned> CommentEndOffset;
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...