| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | LexerTest.cpp | 96 std::string getSourceText(Token Begin, Token End) { in getSourceText() function in __anon134ba2be0111::LexerTest 129 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2])); in TEST_F() 141 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0])); in TEST_F() 154 EXPECT_EQ("c M(i)", getSourceText(toks[1], toks[2])); in TEST_F() 196 EXPECT_EQ("C(i)", getSourceText(toks[2], toks[2])); in TEST_F() 222 EXPECT_EQ("i", getSourceText(toks[2], toks[2])); in TEST_F() 251 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3])); in TEST_F() 266 EXPECT_EQ("M(i)", getSourceText(toks[3], toks[3])); in TEST_F() 320 StringRef text = Lexer::getSourceText( in TEST_F() 350 text = Lexer::getSourceText( in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | SortJavaScriptImports.cpp | 180 llvm::StringRef PreviousText = getSourceText(InsertionPoint); in analyze() 245 StringRef getSourceText(SourceRange Range) { in getSourceText() function in clang::format::JavaScriptImportSorter 246 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText() 249 StringRef getSourceText(SourceLocation Begin, SourceLocation End) { in getSourceText() function in clang::format::JavaScriptImportSorter 330 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference() 342 StringRef ReferenceStmt = getSourceText(Reference.Range); in appendReference() 347 Buffer += getSourceText(Reference.Range.getBegin(), Reference.SymbolsStart); in appendReference() 350 Buffer += getSourceText(Symbols.front().Range); in appendReference() 353 Buffer += getSourceText(Symbol.Range); in appendReference() 357 Buffer += getSourceText(Reference.SymbolsEnd, Reference.Range.getEnd()); in appendReference() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | MisplacedOperatorInStrlenInAllocCheck.cpp | 84 const StringRef StrLenText = Lexer::getSourceText( in check() 87 const StringRef Arg0Text = Lexer::getSourceText( in check() 94 const StringRef LHSText = Lexer::getSourceText( in check() 97 const StringRef RHSText = Lexer::getSourceText( in check()
|
| H A D | InaccurateEraseCheck.cpp | 51 std::string ReplacementText = std::string(Lexer::getSourceText( in check()
|
| H A D | PosixReturnCheck.cpp | 26 return Lexer::getSourceText(CharSourceRange::getTokenRange( in getFunctionSpelling()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | PreferIsaOrDynCastInConditionalsCheck.cpp | 106 StringRef LHSString(Lexer::getSourceText( in check() 110 StringRef ArgString(Lexer::getSourceText( in check() 117 StringRef RHSString(Lexer::getSourceText( in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | ShrinkToFitCheck.cpp | 57 Lexer::getSourceText(CharSourceRange::getTokenRange( in check() 62 ReplacementText = std::string(Lexer::getSourceText( in check()
|
| H A D | MakeSmartPtrCheck.cpp | 29 StringRef WrittenName = Lexer::getSourceText( in getNewExprName() 159 StringRef ExprStr = Lexer::getSourceText( in checkConstruct() 287 ArraySizeExpr = Lexer::getSourceText(CharSourceRange::getTokenRange( in replaceNew()
|
| H A D | UseUncaughtExceptionsCheck.cpp | 80 Lexer::getSourceText(CharSourceRange::getTokenRange(BeginLoc, EndLoc), in check()
|
| H A D | ReplaceRandomShuffleCheck.cpp | 85 StringRef ContainerText = Lexer::getSourceText( in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientVectorOperationCheck.cpp | 242 llvm::StringRef VarName = Lexer::getSourceText( in check() 253 Lexer::getSourceText(CharSourceRange::getTokenRange( in check() 259 StringRef LoopEndSource = Lexer::getSourceText( in check()
|
| H A D | InefficientAlgorithmCheck.cpp | 135 StringRef ContainerText = Lexer::getSourceText( in check() 138 StringRef ParamText = Lexer::getSourceText( in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | StringFindStartswithCheck.cpp | 102 const StringRef NeedleExprCode = Lexer::getSourceText( in check() 105 const StringRef HaystackExprCode = Lexer::getSourceText( in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/ |
| H A D | CloexecCheck.cpp | 28 return (Lexer::getSourceText( in buildFixMsgForStringFlag() 106 return Lexer::getSourceText( in getSpellingArg()
|
| /llvm-project-15.0.7/clang/lib/Tooling/ |
| H A D | FixIt.cpp | 22 return Lexer::getSourceText(Range, Context.getSourceManager(), in getText()
|
| H A D | RefactoringCallbacks.cpp | 81 Lexer::getSourceText(CharSourceRange::getTokenRange(To.getSourceRange()), in replaceStmtWithStmt() 217 ToText += Lexer::getSourceText(Source, *Result.SourceManager, in run()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | PragmaCommentHandler.cpp | 23 Lexer::getSourceText(CharSourceRange::getCharRange(Range), in HandleComment()
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | EditedSource.cpp | 179 StringRef text = getSourceText(BeginOffs, B, Invalid); in commitInsertFromRange() 190 StringRef text = getSourceText(BeginOffs, EndOffs, Invalid); in commitInsertFromRange() 454 StringRef EditedSource::getSourceText(FileOffset BeginOffs, FileOffset EndOffs, in getSourceText() function in EditedSource 463 return Lexer::getSourceText(CharSourceRange::getCharRange(BLoc, ELoc), in getSourceText()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | VirtualClassDestructorCheck.cpp | 115 static std::string getSourceText(const CXXDestructorDecl &Destructor) { in getSourceText() function 138 std::string OriginalDestructor = getSourceText(Destructor); in changePrivateDestructorVisibilityTo()
|
| H A D | PreferMemberInitializerCheck.cpp | 211 Lexer::getSourceText( in check() 296 StringRef NewInit = Lexer::getSourceText( in check()
|
| H A D | ProTypeCstyleCastCheck.cpp | 63 StringRef DestTypeString = Lexer::getSourceText( in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | StaticDefinitionInAnonymousNamespaceCheck.cpp | 57 Lexer::getSourceText(CharSourceRange::getTokenRange(TokenRange), in check()
|
| H A D | MagicNumbersCheck.h | 77 const StringRef LiteralSourceText = Lexer::getSourceText( in checkBoundMatch()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | TodoCommentCheck.cpp | 26 Lexer::getSourceText(CharSourceRange::getCharRange(Range), in HandleComment()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | ASTUtils.cpp | 50 auto MacroName = Lexer::getSourceText( in exprHasBitFlagWithSpelling()
|