Home
last modified time | relevance | path

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

1234

/external/clang/unittests/Lex/
DLexerTest.cpp98 std::string getSourceText(Token Begin, Token End) { in getSourceText() function in __anon0877e1170111::LexerTest
101 Lexer::getSourceText(CharSourceRange::getTokenRange(SourceRange( in getSourceText()
130 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2])); in TEST_F()
142 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0])); in TEST_F()
155 EXPECT_EQ("c M(i)", getSourceText(toks[1], toks[2])); in TEST_F()
168 EXPECT_EQ("M(i) c", getSourceText(toks[0], toks[1])); in TEST_F()
182 EXPECT_EQ("<INVALID>", getSourceText(toks[1], toks[2])); in TEST_F()
197 EXPECT_EQ("C(i)", getSourceText(toks[2], toks[2])); in TEST_F()
210 EXPECT_EQ("M(M(i))", getSourceText(toks[2], toks[2])); in TEST_F()
223 EXPECT_EQ("i", getSourceText(toks[2], toks[2])); in TEST_F()
[all …]
/external/llvm-project/clang/unittests/Lex/
DLexerTest.cpp93 std::string getSourceText(Token Begin, Token End) { in getSourceText() function in __anond9f62b850111::LexerTest
96 Lexer::getSourceText(CharSourceRange::getTokenRange(SourceRange( in getSourceText()
125 EXPECT_EQ("M(i)", getSourceText(toks[2], toks[2])); in TEST_F()
137 EXPECT_EQ("M(i)", getSourceText(toks[0], toks[0])); in TEST_F()
150 EXPECT_EQ("c M(i)", getSourceText(toks[1], toks[2])); in TEST_F()
163 EXPECT_EQ("M(i) c", getSourceText(toks[0], toks[1])); in TEST_F()
177 EXPECT_EQ("<INVALID>", getSourceText(toks[1], toks[2])); in TEST_F()
192 EXPECT_EQ("C(i)", getSourceText(toks[2], toks[2])); in TEST_F()
205 EXPECT_EQ("M(M(i))", getSourceText(toks[2], toks[2])); in TEST_F()
218 EXPECT_EQ("i", getSourceText(toks[2], toks[2])); in TEST_F()
[all …]
/external/clang/lib/Format/
DSortJavaScriptImports.cpp183 unsigned PreviousSize = getSourceText(InsertionPoint).size(); in analyze()
193 << getSourceText(InsertionPoint) << "\nwith:\n" in analyze()
229 StringRef getSourceText(SourceRange Range) { in getSourceText() function in clang::format::JavaScriptImportSorter
230 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
233 StringRef getSourceText(SourceLocation Begin, SourceLocation End) { in getSourceText() function in clang::format::JavaScriptImportSorter
252 StringRef ReferenceStmt = getSourceText(Reference.Range); in appendReference()
259 Buffer += getSourceText(Reference.Range.getBegin(), SymbolsStart); in appendReference()
264 Buffer += getSourceText(I->Range); in appendReference()
267 Buffer += getSourceText(SymbolsEnd, Reference.Range.getEnd()); in appendReference()
316 llvm::dbgs() << ", text: " << getSourceText(Reference.Range); in parseModuleReferences()
/external/llvm-project/clang/lib/Format/
DSortJavaScriptImports.cpp180 unsigned PreviousSize = getSourceText(InsertionPoint).size(); in analyze()
190 << getSourceText(InsertionPoint) << "\nwith:\n" in analyze()
232 StringRef getSourceText(SourceRange Range) { in getSourceText() function in clang::format::JavaScriptImportSorter
233 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
236 StringRef getSourceText(SourceLocation Begin, SourceLocation End) { in getSourceText() function in clang::format::JavaScriptImportSorter
254 StringRef ReferenceStmt = getSourceText(Reference.Range); in appendReference()
261 Buffer += getSourceText(Reference.Range.getBegin(), SymbolsStart); in appendReference()
266 Buffer += getSourceText(I->Range); in appendReference()
269 Buffer += getSourceText(SymbolsEnd, Reference.Range.getEnd()); in appendReference()
316 llvm::dbgs() << ", text: " << getSourceText(Reference.Range); in parseModuleReferences()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMisplacedOperatorInStrlenInAllocCheck.cpp86 const StringRef StrLenText = Lexer::getSourceText( in check()
89 const StringRef Arg0Text = Lexer::getSourceText( in check()
96 const StringRef LHSText = Lexer::getSourceText( in check()
99 const StringRef RHSText = Lexer::getSourceText( in check()
DInaccurateEraseCheck.cpp58 std::string ReplacementText = std::string(Lexer::getSourceText( in check()
DPosixReturnCheck.cpp26 return Lexer::getSourceText(CharSourceRange::getTokenRange( in getFunctionSpelling()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DPreferIsaOrDynCastInConditionalsCheck.cpp105 StringRef LHSString(Lexer::getSourceText( in check()
109 StringRef ArgString(Lexer::getSourceText( in check()
116 StringRef RHSString(Lexer::getSourceText( in check()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DShrinkToFitCheck.cpp64 Lexer::getSourceText(CharSourceRange::getTokenRange( in check()
69 ReplacementText = std::string(Lexer::getSourceText( in check()
DMakeSmartPtrCheck.cpp30 StringRef WrittenName = Lexer::getSourceText( in GetNewExprName()
159 StringRef ExprStr = Lexer::getSourceText( in checkConstruct()
288 ArraySizeExpr = Lexer::getSourceText(CharSourceRange::getTokenRange( in replaceNew()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientVectorOperationCheck.cpp236 llvm::StringRef VarName = Lexer::getSourceText( in check()
247 Lexer::getSourceText(CharSourceRange::getTokenRange( in check()
253 StringRef LoopEndSource = Lexer::getSourceText( in check()
DInefficientAlgorithmCheck.cpp138 StringRef ContainerText = Lexer::getSourceText( in check()
141 StringRef ParamText = Lexer::getSourceText( in check()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUniqueptrResetReleaseCheck.cpp102 std::string LeftText = std::string(clang::Lexer::getSourceText( in check()
105 std::string RightText = std::string(clang::Lexer::getSourceText( in check()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DStringFindStartswithCheck.cpp78 const StringRef NeedleExprCode = Lexer::getSourceText( in check()
81 const StringRef HaystackExprCode = Lexer::getSourceText( in check()
/external/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecCheck.cpp28 return (Lexer::getSourceText( in buildFixMsgForStringFlag()
106 return Lexer::getSourceText( in getSpellingArg()
/external/llvm-project/clang/lib/Tooling/
DFixIt.cpp22 return Lexer::getSourceText(Range, Context.getSourceManager(), in getText()
DRefactoringCallbacks.cpp81 Lexer::getSourceText(CharSourceRange::getTokenRange(To.getSourceRange()), in replaceStmtWithStmt()
217 ToText += Lexer::getSourceText(Source, *Result.SourceManager, in run()
/external/clang/lib/Tooling/
DFixIt.cpp23 return Lexer::getSourceText(CharSourceRange::getTokenRange(Range), in getText()
/external/clang/lib/Edit/
DEditedSource.cpp163 StringRef text = getSourceText(BeginOffs, B, Invalid); in commitInsertFromRange()
174 StringRef text = getSourceText(BeginOffs, EndOffs, Invalid); in commitInsertFromRange()
432 StringRef EditedSource::getSourceText(FileOffset BeginOffs, FileOffset EndOffs, in getSourceText() function in EditedSource
441 return Lexer::getSourceText(CharSourceRange::getCharRange(BLoc, ELoc), in getSourceText()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DPragmaCommentHandler.cpp23 Lexer::getSourceText(CharSourceRange::getCharRange(Range), in HandleComment()
/external/llvm-project/clang/lib/Edit/
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()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DStaticDefinitionInAnonymousNamespaceCheck.cpp53 Lexer::getSourceText(CharSourceRange::getTokenRange(TokenRange), in check()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DTodoCommentCheck.cpp26 Lexer::getSourceText(CharSourceRange::getCharRange(Range), in HandleComment()
/external/clang/include/clang/Edit/
DEditedSource.h82 StringRef getSourceText(FileOffset BeginOffs, FileOffset EndOffs,
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DASTUtils.cpp52 auto MacroName = Lexer::getSourceText( in exprHasBitFlagWithSpelling()

1234