Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/lib/Format/
H A DUsingDeclarationsSorter.cpp159 StringRef Text(SourceMgr.getCharacterData(SortedBegin), in endUsingDeclarationBlock()
160 SourceMgr.getCharacterData(SortedEnd) - in endUsingDeclarationBlock()
161 SourceMgr.getCharacterData(SortedBegin)); in endUsingDeclarationBlock()
163 StringRef OldText(SourceMgr.getCharacterData(Begin), in endUsingDeclarationBlock()
164 SourceMgr.getCharacterData(End) - in endUsingDeclarationBlock()
165 SourceMgr.getCharacterData(Begin)); in endUsingDeclarationBlock()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DNamedParameterCheck.cpp71 const char *Begin = SM.getCharacterData(Parm->getBeginLoc()); in check()
72 const char *End = SM.getCharacterData(Parm->getLocation()); in check()
H A DBracesAroundStatementsCheck.cpp41 while (isWhitespace(*SM.getCharacterData(Loc))) in forwardSkipWhitespaceAndComments()
65 while (isHorizontalWhitespace(*SM.getCharacterData(Loc))) { in findEndLocation()
69 if (isVerticalWhitespace(*SM.getCharacterData(Loc))) { in findEndLocation()
H A DNamespaceCommentCheck.cpp145 StringRef Comment(Sources.getCharacterData(Loc), Tok.getLength()); in check()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp1679 startBuf = SM->getCharacterData(startLoc); in RewriteObjCSynchronizedStmt()
1810 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1841 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1893 assert(*SM->getCharacterData(bodyLoc) == '}' && in RewriteObjCTryStmt()
1912 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1922 assert(*SM->getCharacterData(endLoc) == '}' && in RewriteObjCTryStmt()
2143 const char *endBuf = SM->getCharacterData(Loc); in RewriteObjCQualifiedInterfaceTypes()
2223 const char *endBuf = SM->getCharacterData(X); in RewriteTypeOfDecl()
4062 startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerDecl()
4180 const char *endBuf = SM->getCharacterData(X); in RewriteByRefVar()
[all …]
H A DRewriteModernObjC.cpp1175 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteProtocolDecl()
1976 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
2060 const char *endBuf = SM->getCharacterData(endLoc); in RewriteObjCThrowStmt()
2230 const char *endBuf = SM->getCharacterData(Loc); in RewriteObjCQualifiedInterfaceTypes()
2247 const char *startBuf = SM->getCharacterData(Loc); in RewriteObjCQualifiedInterfaceTypes()
2310 const char *endBuf = SM->getCharacterData(X); in RewriteTypeOfDecl()
3891 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteObjCInternalStruct()
4726 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteCastExpr()
4909 startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerDecl()
5024 const char *endBuf = SM->getCharacterData(X); in RewriteByRefVar()
[all …]
/llvm-project-15.0.7/clang/lib/Analysis/
H A DIssueHash.cpp154 const char *BufferPos = SM.getCharacterData(StartOfLine); in NormalizeLine()
165 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), in NormalizeLine()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DIncludeOrderCheck.cpp167 const char *FromData = SM.getCharacterData(FromLoc); in EndOfMainFile()
173 const char *ToData = SM.getCharacterData(ToLoc); in EndOfMainFile()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp105 return isVerticalWhitespace(SM.getCharacterData(Tok.getLocation())[0]); in startsWithNewline()
270 const char *LocChars = SM.getCharacterData(Loc); in skipWhitespaceAndNewline()
291 SM.getCharacterData(Loc.getLocWithOffset(-1), &Invalid); in atOrBeforeSeparation()
/llvm-project-15.0.7/clang/unittests/Lex/
H A DPPCallbacksTest.cpp169 const char* B = SourceMgr.getCharacterData(Range.getBegin()); in GetSourceString()
170 const char* E = SourceMgr.getCharacterData(Range.getEnd()); in GetSourceString()
176 const char *B = SourceMgr.getCharacterData(Range.getBegin()); in GetSourceStringToEnd()
177 const char *E = SourceMgr.getCharacterData(Range.getEnd()); in GetSourceStringToEnd()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp41 std::string C(SM.getCharacterData(Start), in HandleComment()
42 SM.getCharacterData(Loc.getEnd())); in HandleComment()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceLocation.cpp260 const char *FullSourceLoc::getCharacterData(bool *Invalid) const { in getCharacterData() function in FullSourceLoc
262 return SrcMgr->getCharacterData(*this, Invalid); in getCharacterData()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseOverrideCheck.cpp69 Sources.getCharacterData(Tok.getLocation()), Tok.getLength())); in parseTokens()
79 return StringRef(Sources.getCharacterData(Tok.getLocation()), in getText()
H A DReplaceAutoPtrCheck.cpp142 if (StringRef(SM.getCharacterData(AutoPtrLoc), strlen("auto_ptr")) != in check()
H A DUseTrailingReturnTypeCheck.cpp154 StringRef(SM.getCharacterData(T.getLocation()), T.getLength())); in findTrailingReturnTypeSourceLocation()
237 StringRef(SM.getCharacterData(T.getLocation()), T.getLength())); in classifyTokensBeforeFunctionName()
/llvm-project-15.0.7/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-15.0.7/clang-tools-extra/clang-tidy/portability/
H A DRestrictSystemIncludesCheck.cpp48 unsigned ToLen = std::strcspn(SM.getCharacterData(Include.Loc), "\n") + 1; in EndOfMainFile()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DRawStringLiteral.cpp59 const char* Data = SM.getCharacterData(LastTokenBeforeCursor); in REGISTER_TWEAK()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousSemicolonCheck.cpp59 Buffer.getBufferStart(), SM.getCharacterData(LocEnd) + 1, in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DIntegerTypesCheck.cpp130 const char *Data = Result.SourceManager->getCharacterData(Loc); in check()
H A DExplicitConstructorCheck.cpp46 const char *StartChar = Sources.getCharacterData(StartLoc); in findToken()
/llvm-project-15.0.7/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-15.0.7/clang/lib/Parse/
H A DParseAST.cpp80 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid); in print()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DCanonicalIncludes.cpp714 PP.getSourceManager().getCharacterData(Range.getBegin())); in collectIWYUHeaderMaps()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DStaticAssertCheck.cpp147 const char *BufferPos = SM.getCharacterData(AssertLoc); in getLastParenLoc()

123