Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/clang/lib/Basic/
H A DSourceLocation.cpp84 SM.getSpellingLoc(*this).print(OS, SM); in print()
131 PrintedLoc = PrintDifference(OS, SM, SM.getSpellingLoc(Loc), PrintedLoc); in PrintDifference()
173 FullSourceLoc FullSourceLoc::getSpellingLoc() const { in getSpellingLoc() function in FullSourceLoc
175 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc()
H A DSourceManager.cpp955 Loc = getSLocEntry(LocInfo.first).getExpansion().getSpellingLoc(); in getSpellingLocSlowCase()
997 Loc = E->getExpansion().getSpellingLoc(); in getDecomposedSpellingLocSlowCase()
1015 Loc = getSLocEntry(LocInfo.first).getExpansion().getSpellingLoc(); in getImmediateSpellingLoc()
1823 ExpInfo.getSpellingLoc(), in computeMacroArgsCache()
1860 Info.getSpellingLoc().getLocWithOffset(SpellRelativeOffs), in associateFileChunkWithMacroArgExp()
2211 out << " spelling from " << EI.getSpellingLoc().getOffset() << "\n"; in dump()
/openbsd/gnu/llvm/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.cpp569 SourceLocation FileLoc = SM.getSpellingLoc(Loc); in GetBeginningOfToken()
836 SourceLocation spellLoc = SM.getSpellingLoc(loc); in isAtEndOfMacroExpansion()
1016 SourceLocation SpellLoc = Expansion.getSpellingLoc(); in getImmediateMacroName()
1033 Loc = SM.getSpellingLoc(Loc); in getImmediateMacroName()
1053 SourceLocation SpellLoc = SM.getSpellingLoc(Loc); in getImmediateMacroNameForDiagnostics()
1060 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).getBegin()); in getImmediateMacroNameForDiagnostics()
1137 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc); in GetMappedTokenLoc()
H A DPreprocessor.cpp506 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in SplitToken()
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/
H A DLookup.cpp146 UseLoc = SM.getSpellingLoc(UseLoc); in disambiguateSpellingInScope()
165 SM.getSpellingLoc(Res->getLocation()), UseLoc)) in disambiguateSpellingInScope()
H A DASTSelection.cpp91 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl()
H A DAtomicChange.cpp200 FullKeyPosition.getSpellingLoc().getDecomposedLoc(); in AtomicChange()
/openbsd/gnu/llvm/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp96 Loc = Expansion.getSpellingLoc(); in spelledInMacroDefinition()
116 auto B = SM.getSpellingLoc(EditRange.getBegin()); in getRange()
117 auto E = SM.getSpellingLoc(EditRange.getEnd()); in getRange()
H A DRewriteRule.cpp99 Result.SourceManager->getSpellingLoc(Range->getBegin()); in noopEdit()
/openbsd/gnu/llvm/clang/include/clang/Basic/
H A DJsonSupport.h125 printSourceLocationAsJson(Out, SM.getSpellingLoc(Loc), SM, true);
H A DSourceManager.h373 SourceLocation getSpellingLoc() const { in getSpellingLoc() function
1216 SourceLocation getSpellingLoc(SourceLocation Loc) const { in getSpellingLoc() function
1526 if (isWrittenInScratchSpace(getSpellingLoc(loc))) { in isInSystemMacro()
1529 } while (isWrittenInScratchSpace(getSpellingLoc(loc))); in isInSystemMacro()
1533 return isInSystemHeader(getSpellingLoc(loc)); in isInSystemMacro()
H A DSourceLocation.h390 FullSourceLoc getSpellingLoc() const;
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/clang/lib/Tooling/Core/
H A DReplacement.cpp137 SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin()); in getRangeSize()
138 SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd()); in getRangeSize()
151 setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()), in setFromSourceRange()
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp49 FullLoc.getSpellingLoc().getDecomposedLoc(); in IsValidEditLoc()
75 Loc = SM.getSpellingLoc(Loc); in visitSymbolOccurrence()
/openbsd/gnu/llvm/clang/lib/Edit/
H A DEditedSource.cpp47 StringRef ArgName = Lexer::getSpelling(SourceMgr.getSpellingLoc(DefArgLoc), in deconstructMacroArgLoc()
52 SourceMgr.getSpellingLoc(DefArgLoc)}; in deconstructMacroArgLoc()
H A DCommit.cpp255 SourceLocation spellLoc = SourceMgr.getSpellingLoc(loc); in canInsertAfterToken()
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp232 Lexer::MeasureTokenLength(SM.getSpellingLoc(Loc), SM, LangOpts); in getPreciseTokenLocEnd()
259 return SM.getBufferName(SM.getSpellingLoc(Loc)) == "<built-in>"; in isInBuiltin()
305 if (SM.isInSystemHeader(SM.getSpellingLoc(Loc))) in gatherFileIDs()
420 if (SM.isInSystemHeader(SM.getSpellingLoc(LocStart))) in emitSourceRegions()
1004 if (Body && SM.isInSystemHeader(SM.getSpellingLoc(getStart(Body)))) in VisitDecl()
/openbsd/gnu/llvm/clang/lib/Tooling/Syntax/
H A DTokens.cpp113 First = ExpFirst.getSpellingLoc().getLocWithOffset(DecFirst.second); in spelledForExpandedSlow()
114 Last = ExpLast.getSpellingLoc().getLocWithOffset(DecLast.second); in spelledForExpandedSlow()
146 Bound = ExpBound.getSpellingLoc().getLocWithOffset(DecBound.second); in spelledForExpandedSlow()
/openbsd/gnu/llvm/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp684 StringRef TokenText = Lexer::getSpelling(SM.getSpellingLoc(Loc), Buffer, SM, in isTokenAtLoc()
701 MacroName, Expansion.getSpellingLoc(), Context)) in getExpansionLocOfMacro()
/openbsd/gnu/llvm/clang/lib/Analysis/
H A DPathDiagnostic.cpp339 const FileEntry *XFE = SM.getFileEntryForID(XL.getSpellingLoc().getFileID()); in compareCrossTUSourceLocs()
340 const FileEntry *YFE = SM.getFileEntryForID(YL.getSpellingLoc().getFileID()); in compareCrossTUSourceLocs()
/openbsd/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp857 StringRef FilePath = SM.getFilename(SM.getSpellingLoc(Decl->getBeginLoc())); in checkPostCall()
H A DLocalizationChecker.cpp1140 SL = SE.getExpansion().getSpellingLoc(); in VisitObjCMessageExpr()
/openbsd/gnu/llvm/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp181 if (SLoc != SrcMgr.getSpellingLoc(SLoc)) in isNodeExcluded()

12