Home
last modified time | relevance | path

Searched refs:SpellLoc (Results 1 – 4 of 4) sorted by relevance

/external/clang/tools/libclang/
DCXSourceLocation.cpp298 SourceLocation SpellLoc = Loc; in clang_getSpellingLocation() local
299 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()
DCIndexHigh.cpp136 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc); in getFileSpellingLoc() local
137 if (SpellLoc.isMacroID()) in getFileSpellingLoc()
138 return getFileSpellingLoc(SM, SpellLoc, isMacroArg); in getFileSpellingLoc()
141 return SpellLoc; in getFileSpellingLoc()
/external/clang/lib/Basic/
DSourceManager.cpp1668 SourceLocation SpellLoc = ExpInfo.getSpellingLoc(); in computeMacroArgsCache() local
1669 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()
/external/clang/lib/Lex/
DLexer.cpp882 SourceLocation SpellLoc = Expansion.getSpellingLoc(); in makeFileCharRange() local
883 Range.setBegin(SpellLoc.getLocWithOffset(BeginOffs)); in makeFileCharRange()
884 Range.setEnd(SpellLoc.getLocWithOffset(EndOffs)); in makeFileCharRange()
947 SourceLocation SpellLoc = Expansion.getSpellingLoc(); in getImmediateMacroName() local
948 if (SpellLoc.isFileID()) in getImmediateMacroName()
954 if (SM.isInFileID(SpellLoc, MacroFID)) in getImmediateMacroName()
958 Loc = SpellLoc; in getImmediateMacroName()