Home
last modified time | relevance | path

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

12

/freebsd/contrib/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()
H A DWhitespaceManager.cpp147 SourceMgr.getCharacterData(PreviousOriginalWhitespaceEnd); in calculateLineBreakInformation()
149 SourceMgr.getCharacterData(OriginalWhitespaceStart) - in calculateLineBreakInformation()
1695 if (StringRef(SourceMgr.getCharacterData(Range.getBegin()), in storeReplacement()
H A DFormatTokenLexer.cpp1425 Tok.TokenText = StringRef(SourceMgr.getCharacterData(Tok.Tok.getLocation()), in readRawToken()
/freebsd/contrib/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()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A 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 …]
/freebsd/contrib/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()
/freebsd/contrib/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()
H A DLexer.cpp257 const char *StrData = SM.getCharacterData(SpellingLoc); in Create_PragmaLexer()
425 const char *TokStart = SourceMgr.getCharacterData(Tok.getLocation(), in getSpelling()
476 TokStart = SourceMgr.getCharacterData(Tok.getLocation(), &CharDataInvalid); in getSpelling()
798 const char *TokPtr = SM.getCharacterData(TokStart, &Invalid); in getTokenPrefixLength()
1369 const char *TokenEnd = SM.getCharacterData(TokenLoc) + Tok->getLength(); in findLocationAfterToken()
H A DPreprocessor.cpp254 const char *Start = SourceMgr.getCharacterData(Tok.getLocation()); in DumpToken()
H A DLiteralSupport.cpp2003 StringRef Prefix(SM.getCharacterData(Tok.getLocation()), in init()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseAST.cpp81 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid); in print()
H A DParseExpr.cpp539 SM.getCharacterData(FILoc.getLocWithOffset(-1), &IsInvalid); in ParseRHSOfBinaryExpression()
542 SM.getCharacterData(FILoc.getLocWithOffset(-2), &IsInvalid); in ParseRHSOfBinaryExpression()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h411 const char *getCharacterData(bool *Invalid = nullptr) const;
H A DSourceManager.h1416 const char *getCharacterData(SourceLocation SL,
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransUnbridgedCasts.cpp254 char PrevChar = *SM.getCharacterData(InsertLoc.getLocWithOffset(-1)); in rewriteToBridgedCast()
H A DObjCMT.cpp298 const char *colon = PP.getSourceManager().getCharacterData(EndLoc); in rewriteToPropertyDotSyntax()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DVerifyDiagnosticConsumer.cpp782 const char *CommentRaw = SM.getCharacterData(CommentBegin); in HandleComment()
783 StringRef C(CommentRaw, SM.getCharacterData(Comment.getEnd()) - CommentRaw); in HandleComment()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangModulesDeclVendor.cpp585 m_compiler_instance->getSourceManager().getCharacterData( in ForEachMacro()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DTokens.cpp156 const char *Start = SM.getCharacterData(location(), &Invalid); in text()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp911 const char *TokInstantiationPtr =Pos.getExpansionLoc().getCharacterData(); in HandlePiece()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessor.h2137 return *SourceMgr.getCharacterData(Tok.getLocation(), Invalid) - '0';
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp1109 const char *SourceManager::getCharacterData(SourceLocation SL, in getCharacterData() function in SourceManager
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp3782 char PrevChar = *SM.getCharacterData(range.getBegin().getLocWithOffset(-1)); in addFixitForObjCARCConversion()
3800 char PrevChar = *SM.getCharacterData(range.getBegin().getLocWithOffset(-1)); in addFixitForObjCARCConversion()
H A DSemaChecking.cpp10668 S.getSourceManager().getCharacterData(IntLit->getBeginLoc())[0]; in isSameWidthConstantConversion()
10677 S.getSourceManager().getCharacterData(CC)[0]; in isSameWidthConstantConversion()

12