Home
last modified time | relevance | path

Searched refs:ExpansionLoc (Results 1 – 20 of 20) sorted by relevance

/external/clang/tools/libclang/
DCXSourceLocation.cpp250 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation() local
254 FileID fileID = SM.getFileID(ExpansionLoc); in clang_getExpansionLocation()
265 *line = SM.getExpansionLineNumber(ExpansionLoc); in clang_getExpansionLocation()
267 *column = SM.getExpansionColumnNumber(ExpansionLoc); in clang_getExpansionLocation()
269 *offset = SM.getDecomposedLoc(ExpansionLoc).second; in clang_getExpansionLocation()
/external/llvm-project/clang/tools/libclang/
DCXSourceLocation.cpp241 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation() local
245 FileID fileID = SM.getFileID(ExpansionLoc); in clang_getExpansionLocation()
256 *line = SM.getExpansionLineNumber(ExpansionLoc); in clang_getExpansionLocation()
258 *column = SM.getExpansionColumnNumber(ExpansionLoc); in clang_getExpansionLocation()
260 *offset = SM.getDecomposedLoc(ExpansionLoc).second; in clang_getExpansionLocation()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DFileExtensionsUtils.cpp19 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in isExpansionLocInHeaderFile() local
20 return isFileExtension(SM.getFilename(ExpansionLoc), HeaderFileExtensions); in isExpansionLocInHeaderFile()
/external/llvm-project/clang/lib/Edit/
DEditedSource.cpp35 SourceLocation &ExpansionLoc, in deconstructMacroArgLoc() argument
42 ExpansionLoc = ImmediateExpansionLoc; in deconstructMacroArgLoc()
43 while (SourceMgr.isMacroBodyExpansion(ExpansionLoc)) in deconstructMacroArgLoc()
44 ExpansionLoc = in deconstructMacroArgLoc()
45 SourceMgr.getImmediateExpansionRange(ExpansionLoc).getBegin(); in deconstructMacroArgLoc()
/external/llvm-project/clang-tools-extra/clang-move/
DMove.cpp115 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER_P() local
116 if (ExpansionLoc.isInvalid()) in AST_POLYMORPHIC_MATCHER_P()
119 SourceManager.getFileEntryForID(SourceManager.getFileID(ExpansionLoc)); in AST_POLYMORPHIC_MATCHER_P()
340 auto ExpansionLoc = SM.getExpansionLoc(D->getBeginLoc()); in isInHeaderFile() local
341 if (ExpansionLoc.isInvalid()) in isInHeaderFile()
344 if (const auto *FE = SM.getFileEntryForID(SM.getFileID(ExpansionLoc))) { in isInHeaderFile()
/external/clang/include/clang/Edit/
DEditedSource.h86 SourceLocation &ExpansionLoc,
/external/llvm-project/clang/include/clang/Edit/
DEditedSource.h106 SourceLocation &ExpansionLoc,
/external/clang/include/clang/Basic/
DSourceManager.h383 SourceLocation ExpansionLoc) { in createForMacroArg() argument
387 return create(SpellingLoc, ExpansionLoc, SourceLocation()); in createForMacroArg()
814 SourceLocation ExpansionLoc,
1680 SourceLocation ExpansionLoc,
/external/clang/lib/Basic/
DSourceManager.cpp592 SourceLocation ExpansionLoc, in createMacroArgExpansionLoc() argument
595 ExpansionLoc); in createMacroArgExpansionLoc()
1848 SourceLocation ExpansionLoc, in associateFileChunkWithMacroArgExp() argument
1876 ExpansionLoc, CurrSpellLength); in associateFileChunkWithMacroArgExp()
1884 ExpansionLoc = ExpansionLoc.getLocWithOffset(advance); in associateFileChunkWithMacroArgExp()
1920 MacroArgsCache[BeginOffs] = ExpansionLoc; in associateFileChunkWithMacroArgExp()
/external/llvm-project/clang/lib/Basic/
DSourceManager.cpp621 SourceLocation ExpansionLoc, in createMacroArgExpansionLoc() argument
624 ExpansionLoc); in createMacroArgExpansionLoc()
1773 SourceLocation ExpansionLoc, in associateFileChunkWithMacroArgExp() argument
1801 ExpansionLoc, CurrSpellLength); in associateFileChunkWithMacroArgExp()
1809 ExpansionLoc = ExpansionLoc.getLocWithOffset(advance); in associateFileChunkWithMacroArgExp()
1844 MacroArgsCache[BeginOffs] = ExpansionLoc; in associateFileChunkWithMacroArgExp()
/external/clang/lib/Edit/
DEditedSource.cpp27 SourceLocation &ExpansionLoc, in deconstructMacroArgLoc() argument
31 ExpansionLoc = SourceMgr.getImmediateExpansionRange(DefArgLoc).first; in deconstructMacroArgLoc()
/external/llvm-project/clang/include/clang/Basic/
DSourceManager.h440 SourceLocation ExpansionLoc) { in createForMacroArg() argument
444 return create(SpellingLoc, ExpansionLoc, SourceLocation()); in createForMacroArg()
905 SourceLocation ExpansionLoc,
1854 SourceLocation ExpansionLoc,
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h233 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getLocStart()); in AST_POLYMORPHIC_MATCHER() local
234 if (ExpansionLoc.isInvalid()) { in AST_POLYMORPHIC_MATCHER()
237 return SourceManager.isInSystemHeader(ExpansionLoc); in AST_POLYMORPHIC_MATCHER()
259 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getLocStart()); in AST_POLYMORPHIC_MATCHER_P() local
260 if (ExpansionLoc.isInvalid()) { in AST_POLYMORPHIC_MATCHER_P()
264 SourceManager.getFileEntryForID(SourceManager.getFileID(ExpansionLoc)); in AST_POLYMORPHIC_MATCHER_P()
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp898 auto ExpansionLoc = Result.SourceManager->getExpansionLoc(D->getBeginLoc()); in fixTypeLoc() local
899 if (ExpansionLoc.isInvalid()) in fixTypeLoc()
901 llvm::StringRef Filename = Result.SourceManager->getFilename(ExpansionLoc); in fixTypeLoc()
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h266 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER() local
267 if (ExpansionLoc.isInvalid()) { in AST_POLYMORPHIC_MATCHER()
270 return SourceManager.isInSystemHeader(ExpansionLoc); in AST_POLYMORPHIC_MATCHER()
293 auto ExpansionLoc = SourceManager.getExpansionLoc(Node.getBeginLoc()); in AST_POLYMORPHIC_MATCHER_REGEX() local
294 if (ExpansionLoc.isInvalid()) { in AST_POLYMORPHIC_MATCHER_REGEX()
298 SourceManager.getFileEntryForID(SourceManager.getFileID(ExpansionLoc)); in AST_POLYMORPHIC_MATCHER_REGEX()
/external/llvm-project/clang/include/clang/AST/
DTypeLoc.h1076 SourceLocation ExpansionLoc; member
1094 return this->getLocalData()->ExpansionLoc; in getExpansionLoc()
1098 this->getLocalData()->ExpansionLoc = Loc; in setExpansionLoc()
/external/clang/lib/Lex/
DModuleMap.cpp924 FullSourceLoc ExpansionLoc = Loc.getExpansionLoc(); in inferModuleFromLocation() local
925 if (!ExpansionLoc.isFileID()) in inferModuleFromLocation()
929 FileID ExpansionFileID = ExpansionLoc.getFileID(); in inferModuleFromLocation()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DBugReporter.cpp3124 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in populateExecutedLinesWithStmt() local
3125 FileID FID = SM.getFileID(ExpansionLoc); in populateExecutedLinesWithStmt()
3126 unsigned LineNo = SM.getExpansionLineNumber(ExpansionLoc); in populateExecutedLinesWithStmt()
/external/llvm-project/clang/lib/Parse/
DParseDeclCXX.cpp4001 SourceLocation ExpansionLoc = in TryParseCXX11AttributeIdentifier() local
4003 StringRef Spelling = PP.getSpelling(ExpansionLoc, ExpansionBuf); in TryParseCXX11AttributeIdentifier()
4006 ExpansionLoc, in TryParseCXX11AttributeIdentifier()
/external/llvm-project/llvm/lib/MC/MCParser/
DMasmParser.cpp1979 SMLoc ExpansionLoc = getTok().getLoc(); in parseStatement() local
1980 if (parseToken(AsmToken::Percent) || expandStatement(ExpansionLoc)) in parseStatement()