Searched refs:MacroLoc (Results 1 – 8 of 8) sorted by relevance
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseNullptrCheck.cpp | 229 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 …]
|
D | ReplaceDisallowCopyAndAssignMacroCheck.cpp | 62 bool shouldAppendSemi(SourceRange MacroLoc) { in shouldAppendSemi() argument 64 MacroLoc.getEnd(), PP.getSourceManager(), PP.getLangOpts()); in shouldAppendSemi()
|
/external/clang/include/clang/Lex/ |
D | MultipleIncludeOpt.h | 56 SourceLocation MacroLoc; variable 68 return MacroLoc; in GetMacroLocation() 139 MacroLoc = Loc; in EnterTopLevelIfndef()
|
/external/llvm-project/clang/include/clang/Lex/ |
D | MultipleIncludeOpt.h | 55 SourceLocation MacroLoc; variable 67 return MacroLoc; in GetMacroLocation() 138 MacroLoc = Loc; in EnterTopLevelIfndef()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | PlistDiagnostics.cpp | 177 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/ |
D | PreambleTests.cpp | 373 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/ |
D | DiagnosticRenderer.cpp | 453 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/ |
D | DiagnosticRenderer.cpp | 458 SourceLocation MacroLoc; in checkLocForMacroArgExpansion() local 459 if (SM.isMacroArgExpansion(Loc, &MacroLoc)) { in checkLocForMacroArgExpansion() 460 if (ArgumentLoc == MacroLoc) return true; in checkLocForMacroArgExpansion()
|