/external/llvm-project/clang/lib/Lex/ |
D | PPDirectives.cpp | 2795 Diag(MI->getDefinitionLoc(), diag::warn_pp_macro_def_mismatch_with_pch) in HandleDefineDirective() 2815 SourceMgr.getFileID(OtherMI->getDefinitionLoc()) in HandleDefineDirective() 2823 Diag(MI->getDefinitionLoc(), diag::warn_pp_objc_macro_redef_ignored); in HandleDefineDirective() 2835 Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleDefineDirective() 2845 Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef) in HandleDefineDirective() 2847 Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition); in HandleDefineDirective() 2851 WarnUnusedMacroLocs.erase(OtherMI->getDefinitionLoc()); in HandleDefineDirective() 2860 if (getSourceManager().isInMainFile(MI->getDefinitionLoc()) && in HandleDefineDirective() 2861 !Diags->isIgnored(diag::pp_macro_not_used, MI->getDefinitionLoc()) && in HandleDefineDirective() 2863 getSourceManager().getFileID(MI->getDefinitionLoc()) != in HandleDefineDirective() [all …]
|
D | PreprocessingRecord.cpp | 447 SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); in MacroDefined()
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
D | FindAllMacros.cpp | 27 getIncludePath(*SM, info->getDefinitionLoc(), Collector); in CreateMacroSymbol()
|
/external/clang/lib/Lex/ |
D | PPDirectives.cpp | 2481 SourceMgr.getFileID(OtherMI->getDefinitionLoc()) in HandleDefineDirective() 2489 Diag(MI->getDefinitionLoc(), diag::warn_pp_objc_macro_redef_ignored); in HandleDefineDirective() 2501 Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleDefineDirective() 2511 Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef) in HandleDefineDirective() 2513 Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition); in HandleDefineDirective() 2517 WarnUnusedMacroLocs.erase(OtherMI->getDefinitionLoc()); in HandleDefineDirective() 2526 if (getSourceManager().isInMainFile(MI->getDefinitionLoc()) && in HandleDefineDirective() 2527 !Diags->isIgnored(diag::pp_macro_not_used, MI->getDefinitionLoc())) { in HandleDefineDirective() 2529 WarnUnusedMacroLocs.insert(MI->getDefinitionLoc()); in HandleDefineDirective() 2567 Diag(MI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleUndefDirective() [all …]
|
D | PPMacroExpansion.cpp | 205 SourceMgr.isInSystemHeader(NewMI->getDefinitionLoc()); in updateModuleMacroInfo() 498 Diag(MI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_chosen) in HandleMacroExpandedIdentifier() 502 Diag(OtherMI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_other) in HandleMacroExpandedIdentifier() 753 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadFunctionLikeMacroArgs() 859 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadFunctionLikeMacroArgs() 927 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadFunctionLikeMacroArgs() 941 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadFunctionLikeMacroArgs() 963 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadFunctionLikeMacroArgs() 1856 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in markMacroAsUsed()
|
D | PreprocessingRecord.cpp | 422 SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); in MacroDefined()
|
D | Pragma.cpp | 600 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in HandlePragmaPopMacro()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | UpgradeGoogletestCaseCheck.cpp | 69 MD->getMacroInfo()->getDefinitionLoc()); in MacroDefined() 105 MD.getMacroInfo()->getDefinitionLoc()); in macroUsed()
|
/external/llvm-project/clang/include/clang/Lex/ |
D | MacroInfo.h | 123 SourceLocation getDefinitionLoc() const { return Location; } in getDefinitionLoc() function 415 : DefMacroDirective(MI, MI->getDefinitionLoc()) {} in DefMacroDirective()
|
/external/clang/include/clang/Lex/ |
D | MacroInfo.h | 120 SourceLocation getDefinitionLoc() const { return Location; } in getDefinitionLoc() function 427 : DefMacroDirective(MI, MI->getDefinitionLoc()) {} in DefMacroDirective()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | MacroRepeatedSideEffectsCheck.cpp | 71 Check.diag(MI->getDefinitionLoc(), "macro %0 defined here", in MacroExpands()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | RenamerClangTidyCheck.cpp | 485 NamingCheckId ID(MI->getDefinitionLoc(), std::string(Name)); in checkMacro() 496 NamingCheckId ID(MI->getDefinitionLoc(), std::string(Name)); in expandMacro()
|
D | HeaderGuard.cpp | 83 SM.getFileEntryForID(SM.getFileID(MI->getDefinitionLoc())); in EndOfMainFile()
|
/external/llvm-project/clang/tools/c-index-test/ |
D | core_main.cpp | 177 if (generateUSRForMacro(Name->getName(), MI->getDefinitionLoc(), SM, in handleMacroOccurrence()
|
/external/llvm-project/clang/unittests/Index/ |
D | IndexTests.cpp | 100 S.DeclPos = Position::fromSourceLocation(MI->getDefinitionLoc(), in handleMacroOccurrence()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | AST.cpp | 297 if (index::generateUSRForMacro(MacroName, MI->getDefinitionLoc(), SM, USR)) in getSymbolID()
|
D | Preamble.cpp | 208 MI->getDefinitionLoc(), MI->getDefinitionEndLoc()), in MacroDefined()
|
D | Hover.cpp | 584 SourceLocation StartLoc = Macro.Info->getDefinitionLoc(); in getHoverContents()
|
D | SourceCode.cpp | 987 translatePreamblePatchLocation(MI->getDefinitionLoc(), SM)}; in locateMacroAt()
|
/external/llvm-project/clang-tools-extra/modularize/ |
D | PreprocessorTracker.cpp | 1325 PP, PPTracker.getCurrentHeaderHandle(), Loc, MI->getDefinitionLoc(), II, in MacroExpands() 1339 (MI ? MI->getDefinitionLoc() : Loc), II, Unexpanded, in Defined()
|
/external/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 369 MoveToLine(MI->getDefinitionLoc()); in MacroDefined()
|
D | CompilerInstance.cpp | 1187 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro() 1195 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
|
/external/llvm-project/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 417 MoveToLine(MI->getDefinitionLoc()); in MacroDefined()
|
D | CompilerInstance.cpp | 1408 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro() 1416 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | SymbolCollector.cpp | 413 auto DefLoc = MI->getDefinitionLoc(); in handleMacroOccurrence()
|