Home
last modified time | relevance | path

Searched refs:getCharacterData (Results 1 – 25 of 60) sorted by relevance

123

/llvm-project/clang/lib/Format/
H A DUsingDeclarationsSorter.cpp187 StringRef Text(SourceMgr.getCharacterData(SortedBegin), in endUsingDeclarationBlock()
188 SourceMgr.getCharacterData(SortedEnd) - in endUsingDeclarationBlock()
189 SourceMgr.getCharacterData(SortedBegin)); in endUsingDeclarationBlock()
191 StringRef OldText(SourceMgr.getCharacterData(Begin), in endUsingDeclarationBlock()
192 SourceMgr.getCharacterData(End) - in endUsingDeclarationBlock()
193 SourceMgr.getCharacterData(Begin)); in endUsingDeclarationBlock()
H A DIntegerLiteralSeparatorFixer.cpp94 auto Text = StringRef(SourceMgr.getCharacterData(Location), Length); in process()
/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp772 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl()
906 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue()
1005 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1006 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteProtocolDecl()
1180 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1181 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1193 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1194 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1487 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt()
1543 const char *rparenBuf = SM->getCharacterData(rightParenLo in RewriteObjCForCollectionStmt()
[all...]
H A DRewriteModernObjC.cpp926 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl()
1062 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue()
1172 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1173 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteProtocolDecl()
1357 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1358 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1370 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1371 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1692 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt()
1751 const char *rparenBuf = SM->getCharacterData(rightParenLo in RewriteObjCForCollectionStmt()
[all...]
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DNamedParameterCheck.cpp69 const char *Begin = SM.getCharacterData(Parm->getBeginLoc()); in check()
70 const char *End = SM.getCharacterData(Parm->getLocation()); in check()
H A DBracesAroundStatementsCheck.cpp38 while (isWhitespace(*SM.getCharacterData(Loc))) in forwardSkipWhitespaceAndComments()
H A DNamespaceCommentCheck.cpp147 StringRef Comment(Sources.getCharacterData(Loc), Tok.getLength()); in check()
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DBracesAroundStatement.cpp72 while (isHorizontalWhitespace(*SM.getCharacterData(Loc))) { in findEndLocation()
76 if (isVerticalWhitespace(*SM.getCharacterData(Loc))) { in findEndLocation()
/llvm-project/clang/lib/Analysis/
H A DIssueHash.cpp155 const char *BufferPos = SM.getCharacterData(StartOfLine); in NormalizeLine()
166 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), in NormalizeLine()
/llvm-project/clang-tools-extra/clang-tidy/llvm/
H A DIncludeOrderCheck.cpp166 const char *FromData = SM.getCharacterData(FromLoc); in EndOfMainFile()
172 const char *ToData = SM.getCharacterData(ToLoc); in EndOfMainFile()
/llvm-project/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp38 std::string C(SM.getCharacterData(Start), in HandleComment()
39 SM.getCharacterData(Loc.getEnd())); in HandleComment()
/llvm-project/clang/unittests/Lex/
H A DPPCallbacksTest.cpp172 const char* B = SourceMgr.getCharacterData(Range.getBegin()); in GetSourceString()
173 const char* E = SourceMgr.getCharacterData(Range.getEnd()); in GetSourceString()
179 const char *B = SourceMgr.getCharacterData(Range.getBegin()); in GetSourceStringToEnd()
180 const char *E = SourceMgr.getCharacterData(Range.getEnd()); in GetSourceStringToEnd()
/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp198 return isVerticalWhitespace(SM.getCharacterData(Tok.getLocation())[0]); in startsWithNewline()
363 const char *LocChars = SM.getCharacterData(Loc); in skipWhitespaceAndNewline()
384 SM.getCharacterData(Loc.getLocWithOffset(-1), &Invalid); in atOrBeforeSeparation()
/llvm-project/clang/lib/Basic/
H A DSourceLocation.cpp269 const char *FullSourceLoc::getCharacterData(bool *Invalid) const { in getCharacterData() function in FullSourceLoc
271 return SrcMgr->getCharacterData(*this, Invalid); in getCharacterData()
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DUseOverrideCheck.cpp79 Sources.getCharacterData(Tok.getLocation()), Tok.getLength())); in parseTokens()
89 return {Sources.getCharacterData(Tok.getLocation()), Tok.getLength()}; in getText()
H A DReplaceAutoPtrCheck.cpp140 if (StringRef(SM.getCharacterData(AutoPtrLoc), strlen("auto_ptr")) != in check()
/llvm-project/clang/lib/Lex/
H A DTokenConcatenation.cpp54 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in IsIdentifierStringPrefix()
137 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in GetFirstChar()
/llvm-project/clang-tools-extra/clang-tidy/portability/
H A DRestrictSystemIncludesCheck.cpp46 unsigned ToLen = std::strcspn(SM.getCharacterData(Include.Loc), "\n") + 1; in EndOfMainFile()
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousSemicolonCheck.cpp57 Buffer.getBufferStart(), SM.getCharacterData(LocEnd) + 1, in check()
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DRawStringLiteral.cpp66 const char* Data = SM.getCharacterData(LastTokenBeforeCursor); in isNormalString()
/llvm-project/clang-tools-extra/modularize/
H A DPreprocessorTracker.cpp306 const char *BeginPtr = PP.getSourceManager().getCharacterData(BeginLoc); in getSourceString()
307 const char *EndPtr = PP.getSourceManager().getCharacterData(EndLoc); in getSourceString()
319 const char *BeginPtr = PP.getSourceManager().getCharacterData(Loc); in getSourceLine()
382 const char *BeginPtr = PP.getSourceManager().getCharacterData(BeginLoc); in getMacroUnexpandedString()
387 const char *EndPtr = PP.getSourceManager().getCharacterData(EndLoc) + 1; in getMacroUnexpandedString()
/llvm-project/clang/lib/Parse/
H A DParseAST.cpp81 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid); in print()
/llvm-project/clang-tools-extra/clang-tidy/google/
H A DExplicitConstructorCheck.cpp44 const char *StartChar = Sources.getCharacterData(StartLoc); in findToken()
H A DIntegerTypesCheck.cpp162 const char *Data = Result.SourceManager->getCharacterData(Loc); in check()
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DStaticAssertCheck.cpp154 const char *BufferPos = SM.getCharacterData(AssertLoc); in getLastParenLoc()

123