Home
last modified time | relevance | path

Searched refs:CommentText (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DSnippetFile.cpp44 void HandleComment(SMLoc Loc, StringRef CommentText) override { in HandleComment() argument
45 CommentText = CommentText.trim(); in HandleComment()
46 if (!CommentText.consume_front("LLVM-EXEGESIS-")) in HandleComment()
48 if (CommentText.consume_front("DEFREG")) { in HandleComment()
52 CommentText.split(Parts, ' ', /*unlimited splits*/ -1, in HandleComment()
55 errs() << "invalid comment 'LLVM-EXEGESIS-DEFREG " << CommentText in HandleComment()
62 << "' in 'LLVM-EXEGESIS-DEFREG " << CommentText << "'\n"; in HandleComment()
72 if (CommentText.consume_front("LIVEIN")) { in HandleComment()
74 const auto RegName = CommentText.ltrim(); in HandleComment()
79 << "' in 'LLVM-EXEGESIS-LIVEIN " << CommentText << "'\n"; in HandleComment()
/external/llvm-project/clang/unittests/AST/
DCommentTextTest.cpp30 std::string formatComment(llvm::StringRef CommentText) { in formatComment() argument
31 SourceManagerForFile FileSourceMgr("comment-test.cpp", CommentText); in formatComment()
34 auto CommentStartOffset = CommentText.find("/"); in formatComment()
/external/llvm-project/llvm/tools/llvm-mca/
DCodeRegionGenerator.cpp38 void HandleComment(SMLoc Loc, StringRef CommentText) override;
75 void MCACommentConsumer::HandleComment(SMLoc Loc, StringRef CommentText) { in HandleComment() argument
77 StringRef Comment(CommentText); in HandleComment()
/external/llvm-project/clang/lib/AST/
DRawCommentList.cpp361 llvm::StringRef CommentText = getRawText(SourceMgr); in getFormattedText() local
362 if (CommentText.empty()) in getFormattedText()
371 CommentText.begin(), CommentText.end(), in getFormattedText()
/external/llvm-project/clang-tools-extra/clangd/
DCodeCompletionStrings.cpp51 bool looksLikeDocComment(llvm::StringRef CommentText) { in looksLikeDocComment() argument
57 return CommentText.find_first_not_of("/*-= \t\r\n") != llvm::StringRef::npos; in looksLikeDocComment()
/external/llvm-project/clang/lib/Tooling/Transformer/
DSourceCode.cpp359 const StringRef CommentText = Comment->getRawText(SM); in getAssociatedRange() local
360 if (!CommentText.contains("LINT.IfChange") && in getAssociatedRange()
361 !CommentText.contains("LINT.ThenChange")) in getAssociatedRange()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h33 virtual void HandleComment(SMLoc Loc, StringRef CommentText) = 0;
/external/llvm-project/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h33 virtual void HandleComment(SMLoc Loc, StringRef CommentText) = 0;