Home
last modified time | relevance | path

Searched refs:getSpellingLoc (Results 1 – 25 of 32) sorted by relevance

12

/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()
172 SourceLocation PrevSpellLoc = SM.getSpellingLoc(PrevTok.getLocation()); in AvoidConcat()
173 SourceLocation SpellLoc = SM.getSpellingLoc(Tok.getLocation()); in AvoidConcat()
H A DLexer.cpp618 SourceLocation FileLoc = SM.getSpellingLoc(Loc); in GetBeginningOfToken()
900 SourceLocation spellLoc = SM.getSpellingLoc(loc); in isAtEndOfMacroExpansion()
1080 SourceLocation SpellLoc = Expansion.getSpellingLoc(); in getImmediateMacroName()
1097 Loc = SM.getSpellingLoc(Loc); in getImmediateMacroName()
1117 SourceLocation SpellLoc = SM.getSpellingLoc(Loc); in getImmediateMacroNameForDiagnostics()
1124 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).getBegin()); in getImmediateMacroNameForDiagnostics()
1201 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc); in GetMappedTokenLoc()
H A DPreprocessor.cpp513 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in SplitToken()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp96 Loc = Expansion.getSpellingLoc(); in spelledInMacroDefinition()
165 auto B = SM.getSpellingLoc(AdjustedRange.getBegin()); in getRange()
166 auto E = SM.getSpellingLoc(AdjustedRange.getEnd()); in getRange()
H A DRewriteRule.cpp99 Result.SourceManager->getSpellingLoc(Range->getBegin()); in noopEdit()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp415 Begin = SM->getSpellingLoc(Begin); in mapDiagnosticRanges()
416 End = SM->getSpellingLoc(End); in mapDiagnosticRanges()
439 FullSourceLoc SpellingLoc = Loc.getSpellingLoc(); in emitSingleMacroExpansion()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp286 Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts); in getPreciseTokenLocEnd()
316 SM.isWrittenInScratchSpace(SM.getSpellingLoc(Loc))) { in getNonScratchExpansionLoc()
339 return SM.getBufferName(SM.getSpellingLoc(Loc)) == "<built-in>"; in isInBuiltin()
392 auto BeginLoc = SM.getSpellingLoc(Loc); in gatherFileIDs()
393 auto EndLoc = SM.getSpellingLoc(Region.getEndLoc()); in gatherFileIDs()
406 !SM.isInSystemHeader(SM.getSpellingLoc(Loc))); in gatherFileIDs()
522 SM.isInSystemHeader(SM.getSpellingLoc(LocStart))) { in emitSourceRegions()
1478 SM.isInSystemHeader(SM.getSpellingLoc(getStart(Body)))) in VisitDecl()
2207 SM.isInSystemHeader(SM.getSpellingLoc(E->getOperatorLoc())) && in isExprInSystemHeader()
2208 SM.isInSystemHeader(SM.getSpellingLoc(E->getBeginLoc())) && in isExprInSystemHeader()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h379 SourceLocation getSpellingLoc() const { in getSpellingLoc() function
1242 SourceLocation getSpellingLoc(SourceLocation Loc) const { in getSpellingLoc() function
1552 if (isWrittenInScratchSpace(getSpellingLoc(loc))) { in isInSystemMacro()
1555 } while (isWrittenInScratchSpace(getSpellingLoc(loc))); in isInSystemMacro()
1559 return isInSystemHeader(getSpellingLoc(loc)); in isInSystemMacro()
H A DSourceLocation.h391 FullSourceLoc getSpellingLoc() const;
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DEditedSource.cpp47 StringRef ArgName = Lexer::getSpelling(SourceMgr.getSpellingLoc(DefArgLoc), in deconstructMacroArgLoc()
52 SourceMgr.getSpellingLoc(DefArgLoc)}; in deconstructMacroArgLoc()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp905 Loc = getSLocEntry(LocInfo.first).getExpansion().getSpellingLoc(); in getSpellingLocSlowCase()
947 Loc = E->getExpansion().getSpellingLoc(); in getDecomposedSpellingLocSlowCase()
965 Loc = getSLocEntry(LocInfo.first).getExpansion().getSpellingLoc(); in getImmediateSpellingLoc()
1772 ExpInfo.getSpellingLoc(), in computeMacroArgsCache()
1809 Info.getSpellingLoc().getLocWithOffset(SpellRelativeOffs), in associateFileChunkWithMacroArgExp()
2219 out << " spelling from " << EI.getSpellingLoc().getOffset() << "\n"; in dump()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp91 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl()
H A DAtomicChange.cpp200 FullKeyPosition.getSpellingLoc().getDecomposedLoc(); in AtomicChange()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DTokens.cpp111 First = ExpFirst.getSpellingLoc().getLocWithOffset(DecFirst.second); in spelledForExpandedSlow()
112 Last = ExpLast.getSpellingLoc().getLocWithOffset(DecLast.second); in spelledForExpandedSlow()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DPathDiagnostic.cpp338 SM.getFileEntryRefForID(XL.getSpellingLoc().getFileID()); in compareCrossTUSourceLocs()
340 SM.getFileEntryRefForID(YL.getSpellingLoc().getFileID()); in compareCrossTUSourceLocs()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp892 StringRef FilePath = SM.getFilename(SM.getSpellingLoc(Decl->getBeginLoc())); in checkPostCall()
H A DLocalizationChecker.cpp1134 SL = SE.getExpansion().getSpellingLoc(); in VisitObjCMessageExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp7505 SourceLocation EndLoc = S.SourceMgr.getSpellingLoc(E->getEndLoc()); in checkFormatExpr()
8716 SL = SM.getSpellingLoc(SL); in CheckMemaccessArguments()
8717 DSR = SourceRange(SM.getSpellingLoc(DSR.getBegin()), in CheckMemaccessArguments()
8718 SM.getSpellingLoc(DSR.getEnd())); in CheckMemaccessArguments()
8719 SSR = SourceRange(SM.getSpellingLoc(SSR.getBegin()), in CheckMemaccessArguments()
8720 SM.getSpellingLoc(SSR.getEnd())); in CheckMemaccessArguments()
8987 SL = SM.getSpellingLoc(SL); in CheckStrncatArguments()
8988 SR = SourceRange(SM.getSpellingLoc(SR.getBegin()), in CheckStrncatArguments()
8989 SM.getSpellingLoc(SR.getEnd())); in CheckStrncatArguments()
13230 SourceLocation RBracketLoc = SourceMgr.getSpellingLoc( in CheckArrayAccess()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp52 SourceLocation FirstLoc = SM.getSpellingLoc(First.getLocation()); in areTokensAdjacent()
54 return FirstEnd == SM.getSpellingLoc(Second.getLocation()); in areTokensAdjacent()
H A DParseDeclCXX.cpp4512 PP.getSourceManager().getSpellingLoc(Tok.getLocation()); in TryParseCXX11AttributeIdentifier()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DJSONNodeDumper.cpp316 SourceLocation Spelling = SM.getSpellingLoc(Loc); in writeSourceLocation()
H A DDecl.cpp5530 return SM.getSpellingLoc(TTLoc) == SM.getSpellingLoc(TDLoc); in isTransparentTagSlow()
H A DTextNodeDumper.cpp765 SourceLocation SpellingLoc = SM->getSpellingLoc(Loc); in dumpLocation()
H A DExpr.cpp1355 SourceLocation StrTokSpellingLoc = SM.getSpellingLoc(StrTokLoc); in getLocationOfByte()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp3388 Loc = Loc.getSpellingLoc(); in finalizeVisitor()

12