Home
last modified time | relevance | path

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

/external/clang/unittests/Lex/
DLexerTest.cpp93 std::string getSourceText(Token Begin, Token End) { in getSourceText() function in __anon5a17acf50111::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/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()
DRewriteObjCFoundationAPI.cpp690 StringRef text = Lexer::getSourceText( in getLiteralInfo()
/external/clang/include/clang/Edit/
DEditedSource.h82 StringRef getSourceText(FileOffset BeginOffs, FileOffset EndOffs,
/external/clang/lib/Tooling/
DRefactoringCallbacks.cpp32 return replaceStmtWithText(Sources, From, Lexer::getSourceText( in replaceStmtWithStmt()
/external/clang/include/clang/Lex/
DLexer.h397 static StringRef getSourceText(CharSourceRange Range,
/external/clang/lib/ARCMigrate/
DTransforms.cpp547 str += Lexer::getSourceText( in GCRewriteFinalize()
/external/clang/lib/Lex/
DLexer.cpp920 StringRef Lexer::getSourceText(CharSourceRange Range, in getSourceText() function in Lexer