Home
last modified time | relevance | path

Searched refs:MacroLoc (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseNullptrCheck.cpp229 SourceLocation ImmediateMacroArgLoc, MacroLoc; in VisitStmt() local
231 if (!getMacroAndArgLocations(StartLoc, ImmediateMacroArgLoc, MacroLoc) || in VisitStmt()
275 SourceLocation ArgLoc, MacroLoc; in allArgUsesValid() local
276 if (!getMacroAndArgLocations(CastLoc, ArgLoc, MacroLoc)) in allArgUsesValid()
282 ast_type_traits::DynTypedNode::create<Stmt>(*CE), MacroLoc, in allArgUsesValid()
311 SourceLocation &MacroLoc) { in getMacroAndArgLocations() argument
325 if (!MacroLoc.isFileID()) in getMacroAndArgLocations()
333 MacroLoc = SM.getExpansionRange(ArgLoc).getBegin(); in getMacroAndArgLocations()
341 FileID MacroFID = SM.getFileID(MacroLoc); in getMacroAndArgLocations()
368 SourceLocation Loc = TestLoc, MacroLoc; in expandsFrom() local
[all …]
DReplaceDisallowCopyAndAssignMacroCheck.cpp62 bool shouldAppendSemi(SourceRange MacroLoc) { in shouldAppendSemi() argument
64 MacroLoc.getEnd(), PP.getSourceManager(), PP.getLangOpts()); in shouldAppendSemi()
/external/clang/include/clang/Lex/
DMultipleIncludeOpt.h56 SourceLocation MacroLoc; variable
68 return MacroLoc; in GetMacroLocation()
139 MacroLoc = Loc; in EnterTopLevelIfndef()
/external/llvm-project/clang/include/clang/Lex/
DMultipleIncludeOpt.h55 SourceLocation MacroLoc; variable
67 return MacroLoc; in GetMacroLocation()
138 MacroLoc = Loc; in EnterTopLevelIfndef()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DPlistDiagnostics.cpp177 getExpandedMacro(SourceLocation MacroLoc, const Preprocessor &PP,
940 TokenPrinter &Printer, SourceLocation MacroLoc, const Preprocessor &PP,
987 getExpandedMacro(SourceLocation MacroLoc, const Preprocessor &PP, in getExpandedMacro() argument
991 if (auto LocAndUnit = CTU.getImportedFromSourceLocation(MacroLoc)) { in getExpandedMacro()
992 MacroLoc = LocAndUnit->first; in getExpandedMacro()
1002 Printer, MacroLoc, *PPToUse, MacroParamMap{}, AlreadyProcessedTokens); in getExpandedMacro()
1007 TokenPrinter &Printer, SourceLocation MacroLoc, const Preprocessor &PP, in getMacroNameAndPrintExpansion() argument
1014 getMacroExpansionInfo(PrevParamMap, SM.getExpansionLoc(MacroLoc), PP); in getMacroNameAndPrintExpansion()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DPreambleTests.cpp373 auto MacroLoc = FoundMacro->NameLoc; in TEST() local
374 EXPECT_EQ(SM.getFileID(MacroLoc), SM.getMainFileID()); in TEST()
375 EXPECT_EQ(SM.getFileOffset(MacroLoc), Modified.point("def")); in TEST()
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp453 SourceLocation MacroLoc; in checkLocForMacroArgExpansion() local
454 if (SM.isMacroArgExpansion(Loc, &MacroLoc)) { in checkLocForMacroArgExpansion()
455 if (ArgumentLoc == MacroLoc) return true; in checkLocForMacroArgExpansion()
/external/llvm-project/clang/lib/Frontend/
DDiagnosticRenderer.cpp458 SourceLocation MacroLoc; in checkLocForMacroArgExpansion() local
459 if (SM.isMacroArgExpansion(Loc, &MacroLoc)) { in checkLocForMacroArgExpansion()
460 if (ArgumentLoc == MacroLoc) return true; in checkLocForMacroArgExpansion()