Searched refs:SpellLoc (Results 1 – 4 of 4) sorted by relevance
298 SourceLocation SpellLoc = Loc; in clang_getSpellingLocation() local299 if (SpellLoc.isMacroID()) { in clang_getSpellingLocation()300 SourceLocation SimpleSpellingLoc = SM.getImmediateSpellingLoc(SpellLoc); in clang_getSpellingLocation()303 SpellLoc = SimpleSpellingLoc; in clang_getSpellingLocation()305 SpellLoc = SM.getExpansionLoc(SpellLoc); in clang_getSpellingLocation()308 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SpellLoc); in clang_getSpellingLocation()
136 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc); in getFileSpellingLoc() local137 if (SpellLoc.isMacroID()) in getFileSpellingLoc()138 return getFileSpellingLoc(SM, SpellLoc, isMacroArg); in getFileSpellingLoc()141 return SpellLoc; in getFileSpellingLoc()
1668 SourceLocation SpellLoc = ExpInfo.getSpellingLoc(); in computeMacroArgsCache() local1669 while (!SpellLoc.isFileID()) { in computeMacroArgsCache()1670 std::pair<FileID, unsigned> LocInfo = getDecomposedLoc(SpellLoc); in computeMacroArgsCache()1674 SpellLoc = Info.getSpellingLoc().getLocWithOffset(LocInfo.second); in computeMacroArgsCache()1676 if (!SpellLoc.isFileID()) in computeMacroArgsCache()1680 if (!isInFileID(SpellLoc, FID, &BeginOffs)) in computeMacroArgsCache()
882 SourceLocation SpellLoc = Expansion.getSpellingLoc(); in makeFileCharRange() local883 Range.setBegin(SpellLoc.getLocWithOffset(BeginOffs)); in makeFileCharRange()884 Range.setEnd(SpellLoc.getLocWithOffset(EndOffs)); in makeFileCharRange()947 SourceLocation SpellLoc = Expansion.getSpellingLoc(); in getImmediateMacroName() local948 if (SpellLoc.isFileID()) in getImmediateMacroName()954 if (SM.isInFileID(SpellLoc, MacroFID)) in getImmediateMacroName()958 Loc = SpellLoc; in getImmediateMacroName()