Home
last modified time | relevance | path

Searched refs:getSourceText (Results 1 – 25 of 80) sorted by relevance

1234

/llvm-project-15.0.7/clang/unittests/Lex/
H A DLexerTest.cpp96 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 DSortJavaScriptImports.cpp180 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 DMisplacedOperatorInStrlenInAllocCheck.cpp84 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 DInaccurateEraseCheck.cpp51 std::string ReplacementText = std::string(Lexer::getSourceText( in check()
H A DPosixReturnCheck.cpp26 return Lexer::getSourceText(CharSourceRange::getTokenRange( in getFunctionSpelling()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DPreferIsaOrDynCastInConditionalsCheck.cpp106 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 DShrinkToFitCheck.cpp57 Lexer::getSourceText(CharSourceRange::getTokenRange( in check()
62 ReplacementText = std::string(Lexer::getSourceText( in check()
H A DMakeSmartPtrCheck.cpp29 StringRef WrittenName = Lexer::getSourceText( in getNewExprName()
159 StringRef ExprStr = Lexer::getSourceText( in checkConstruct()
287 ArraySizeExpr = Lexer::getSourceText(CharSourceRange::getTokenRange( in replaceNew()
H A DUseUncaughtExceptionsCheck.cpp80 Lexer::getSourceText(CharSourceRange::getTokenRange(BeginLoc, EndLoc), in check()
H A DReplaceRandomShuffleCheck.cpp85 StringRef ContainerText = Lexer::getSourceText( in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp242 llvm::StringRef VarName = Lexer::getSourceText( in check()
253 Lexer::getSourceText(CharSourceRange::getTokenRange( in check()
259 StringRef LoopEndSource = Lexer::getSourceText( in check()
H A DInefficientAlgorithmCheck.cpp135 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 DStringFindStartswithCheck.cpp102 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 DCloexecCheck.cpp28 return (Lexer::getSourceText( in buildFixMsgForStringFlag()
106 return Lexer::getSourceText( in getSpellingArg()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DFixIt.cpp22 return Lexer::getSourceText(Range, Context.getSourceManager(), in getText()
H A DRefactoringCallbacks.cpp81 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 DPragmaCommentHandler.cpp23 Lexer::getSourceText(CharSourceRange::getCharRange(Range), in HandleComment()
/llvm-project-15.0.7/clang/lib/Edit/
H A DEditedSource.cpp179 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 DVirtualClassDestructorCheck.cpp115 static std::string getSourceText(const CXXDestructorDecl &Destructor) { in getSourceText() function
138 std::string OriginalDestructor = getSourceText(Destructor); in changePrivateDestructorVisibilityTo()
H A DPreferMemberInitializerCheck.cpp211 Lexer::getSourceText( in check()
296 StringRef NewInit = Lexer::getSourceText( in check()
H A DProTypeCstyleCastCheck.cpp63 StringRef DestTypeString = Lexer::getSourceText( in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DStaticDefinitionInAnonymousNamespaceCheck.cpp57 Lexer::getSourceText(CharSourceRange::getTokenRange(TokenRange), in check()
H A DMagicNumbersCheck.h77 const StringRef LiteralSourceText = Lexer::getSourceText( in checkBoundMatch()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DTodoCommentCheck.cpp26 Lexer::getSourceText(CharSourceRange::getCharRange(Range), in HandleComment()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DASTUtils.cpp50 auto MacroName = Lexer::getSourceText( in exprHasBitFlagWithSpelling()

1234