| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | UsingDeclarationsSorter.cpp | 159 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 D | NamedParameterCheck.cpp | 71 const char *Begin = SM.getCharacterData(Parm->getBeginLoc()); in check() 72 const char *End = SM.getCharacterData(Parm->getLocation()); in check()
|
| H A D | BracesAroundStatementsCheck.cpp | 41 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 D | NamespaceCommentCheck.cpp | 145 StringRef Comment(Sources.getCharacterData(Loc), Tok.getLength()); in check()
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 1679 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 D | RewriteModernObjC.cpp | 1175 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 D | IssueHash.cpp | 154 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 D | IncludeOrderCheck.cpp | 167 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 D | SourceCode.cpp | 105 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 D | PPCallbacksTest.cpp | 169 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 D | CommentHandlerTest.cpp | 41 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 D | SourceLocation.cpp | 260 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 D | UseOverrideCheck.cpp | 69 Sources.getCharacterData(Tok.getLocation()), Tok.getLength())); in parseTokens() 79 return StringRef(Sources.getCharacterData(Tok.getLocation()), in getText()
|
| H A D | ReplaceAutoPtrCheck.cpp | 142 if (StringRef(SM.getCharacterData(AutoPtrLoc), strlen("auto_ptr")) != in check()
|
| H A D | UseTrailingReturnTypeCheck.cpp | 154 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 D | TokenConcatenation.cpp | 54 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 D | RestrictSystemIncludesCheck.cpp | 48 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 D | RawStringLiteral.cpp | 59 const char* Data = SM.getCharacterData(LastTokenBeforeCursor); in REGISTER_TWEAK()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousSemicolonCheck.cpp | 59 Buffer.getBufferStart(), SM.getCharacterData(LocEnd) + 1, in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | IntegerTypesCheck.cpp | 130 const char *Data = Result.SourceManager->getCharacterData(Loc); in check()
|
| H A D | ExplicitConstructorCheck.cpp | 46 const char *StartChar = Sources.getCharacterData(StartLoc); in findToken()
|
| /llvm-project-15.0.7/clang-tools-extra/modularize/ |
| H A D | PreprocessorTracker.cpp | 306 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 D | ParseAST.cpp | 80 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid); in print()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | CanonicalIncludes.cpp | 714 PP.getSourceManager().getCharacterData(Range.getBegin())); in collectIWYUHeaderMaps()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | StaticAssertCheck.cpp | 147 const char *BufferPos = SM.getCharacterData(AssertLoc); in getLastParenLoc()
|