Home
last modified time | relevance | path

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

1234

/external/llvm-project/clang/lib/Format/
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()
/external/clang/lib/Basic/
DSourceLocation.cpp130 const char *FullSourceLoc::getCharacterData(bool *Invalid) const { in getCharacterData() function in FullSourceLoc
132 return SrcMgr->getCharacterData(*this, Invalid); in getCharacterData()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp773 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl()
904 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue()
1003 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1004 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteProtocolDecl()
1175 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1176 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1186 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1187 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1480 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt()
1536 const char *rparenBuf = SM->getCharacterData(rightParenLoc); in RewriteObjCForCollectionStmt()
[all …]
DRewriteModernObjC.cpp925 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl()
1061 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue()
1171 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1172 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteProtocolDecl()
1353 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1354 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1364 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1365 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1686 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt()
1745 const char *rparenBuf = SM->getCharacterData(rightParenLoc); in RewriteObjCForCollectionStmt()
[all …]
/external/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp774 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl()
908 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue()
1007 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1008 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteProtocolDecl()
1182 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1183 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1195 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1196 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1489 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt()
1545 const char *rparenBuf = SM->getCharacterData(rightParenLoc); in RewriteObjCForCollectionStmt()
[all …]
DRewriteModernObjC.cpp927 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl()
1063 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue()
1173 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1174 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteProtocolDecl()
1358 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1359 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1371 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1372 const char *endBuf = SM->getCharacterData(LocEnd); in RewriteImplementationDecl()
1693 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt()
1752 const char *rparenBuf = SM->getCharacterData(rightParenLoc); in RewriteObjCForCollectionStmt()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DNamedParameterCheck.cpp75 const char *Begin = SM.getCharacterData(Parm->getBeginLoc()); in check()
76 const char *End = SM.getCharacterData(Parm->getLocation()); in check()
DBracesAroundStatementsCheck.cpp41 while (isWhitespace(*SM.getCharacterData(Loc))) in forwardSkipWhitespaceAndComments()
81 while (isHorizontalWhitespace(*SM.getCharacterData(Loc))) { in findEndLocation()
85 if (isVerticalWhitespace(*SM.getCharacterData(Loc))) { in findEndLocation()
DAvoidConstParamsInDecls.cpp67 Sources.getCharacterData(Tok.getLocation()), Tok.getLength())); in ConstTok()
/external/llvm-project/clang/unittests/Lex/
DPPCallbacksTest.cpp155 const char* B = SourceMgr.getCharacterData(Range.getBegin()); in GetSourceString()
156 const char* E = SourceMgr.getCharacterData(Range.getEnd()); in GetSourceString()
162 const char *B = SourceMgr.getCharacterData(Range.getBegin()); in GetSourceStringToEnd()
163 const char *E = SourceMgr.getCharacterData(Range.getEnd()); in GetSourceStringToEnd()
/external/llvm-project/clang/lib/Analysis/
DIssueHash.cpp154 const char *BufferPos = SM.getCharacterData(StartOfLine); in NormalizeLine()
165 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), in NormalizeLine()
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp147 const char *BufferPos = SM.getCharacterData(StartOfLine); in NormalizeLine()
158 LineBuff << std::string(SM.getCharacterData(Token.getLocation()), in NormalizeLine()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DIncludeOrderCheck.cpp162 const char *FromData = SM.getCharacterData(FromLoc); in EndOfMainFile()
168 const char *ToData = SM.getCharacterData(ToLoc); in EndOfMainFile()
/external/llvm-project/clang/lib/Tooling/Transformer/
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()
/external/clang/unittests/Tooling/
DCommentHandlerTest.cpp42 std::string C(SM.getCharacterData(Start), in HandleComment()
43 SM.getCharacterData(Loc.getEnd())); in HandleComment()
/external/llvm-project/clang/unittests/Tooling/
DCommentHandlerTest.cpp41 std::string C(SM.getCharacterData(Start), in HandleComment()
42 SM.getCharacterData(Loc.getEnd())); in HandleComment()
/external/llvm-project/clang/lib/Basic/
DSourceLocation.cpp252 const char *FullSourceLoc::getCharacterData(bool *Invalid) const { in getCharacterData() function in FullSourceLoc
254 return SrcMgr->getCharacterData(*this, Invalid); in getCharacterData()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseOverrideCheck.cpp69 Sources.getCharacterData(Tok.getLocation()), Tok.getLength())); in ParseTokens()
79 return StringRef(Sources.getCharacterData(Tok.getLocation()), in GetText()
DReplaceAutoPtrCheck.cpp141 if (StringRef(SM.getCharacterData(AutoPtrLoc), strlen("auto_ptr")) != in check()
/external/clang/lib/Lex/
DTokenConcatenation.cpp55 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in IsIdentifierStringPrefix()
134 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in GetFirstChar()
/external/llvm-project/clang-tools-extra/clang-tidy/portability/
DRestrictSystemIncludesCheck.cpp48 unsigned ToLen = std::strcspn(SM.getCharacterData(Include.Loc), "\n") + 1; in EndOfMainFile()
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp149 const char* B = SourceMgr.getCharacterData(Range.getBegin()); in GetSourceString()
150 const char* E = SourceMgr.getCharacterData(Range.getEnd()); in GetSourceString()
/external/llvm-project/clang/lib/Lex/
DTokenConcatenation.cpp54 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in IsIdentifierStringPrefix()
137 return *SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in GetFirstChar()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousSemicolonCheck.cpp59 Buffer.getBufferStart(), SM.getCharacterData(LocEnd) + 1, in check()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DRawStringLiteral.cpp67 const char* Data = SM.getCharacterData(LastTokenBeforeCursor); in REGISTER_TWEAK()

1234