Home
last modified time | relevance | path

Searched refs:getDefinitionLoc (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm-project/clang/lib/Lex/
DPPDirectives.cpp2795 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 …]
DPreprocessingRecord.cpp447 SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); in MacroDefined()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllMacros.cpp27 getIncludePath(*SM, info->getDefinitionLoc(), Collector); in CreateMacroSymbol()
/external/clang/lib/Lex/
DPPDirectives.cpp2481 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 …]
DPPMacroExpansion.cpp205 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()
DPreprocessingRecord.cpp422 SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); in MacroDefined()
DPragma.cpp600 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in HandlePragmaPopMacro()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DUpgradeGoogletestCaseCheck.cpp69 MD->getMacroInfo()->getDefinitionLoc()); in MacroDefined()
105 MD.getMacroInfo()->getDefinitionLoc()); in macroUsed()
/external/llvm-project/clang/include/clang/Lex/
DMacroInfo.h123 SourceLocation getDefinitionLoc() const { return Location; } in getDefinitionLoc() function
415 : DefMacroDirective(MI, MI->getDefinitionLoc()) {} in DefMacroDirective()
/external/clang/include/clang/Lex/
DMacroInfo.h120 SourceLocation getDefinitionLoc() const { return Location; } in getDefinitionLoc() function
427 : DefMacroDirective(MI, MI->getDefinitionLoc()) {} in DefMacroDirective()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMacroRepeatedSideEffectsCheck.cpp71 Check.diag(MI->getDefinitionLoc(), "macro %0 defined here", in MacroExpands()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DRenamerClangTidyCheck.cpp485 NamingCheckId ID(MI->getDefinitionLoc(), std::string(Name)); in checkMacro()
496 NamingCheckId ID(MI->getDefinitionLoc(), std::string(Name)); in expandMacro()
DHeaderGuard.cpp83 SM.getFileEntryForID(SM.getFileID(MI->getDefinitionLoc())); in EndOfMainFile()
/external/llvm-project/clang/tools/c-index-test/
Dcore_main.cpp177 if (generateUSRForMacro(Name->getName(), MI->getDefinitionLoc(), SM, in handleMacroOccurrence()
/external/llvm-project/clang/unittests/Index/
DIndexTests.cpp100 S.DeclPos = Position::fromSourceLocation(MI->getDefinitionLoc(), in handleMacroOccurrence()
/external/llvm-project/clang-tools-extra/clangd/
DAST.cpp297 if (index::generateUSRForMacro(MacroName, MI->getDefinitionLoc(), SM, USR)) in getSymbolID()
DPreamble.cpp208 MI->getDefinitionLoc(), MI->getDefinitionEndLoc()), in MacroDefined()
DHover.cpp584 SourceLocation StartLoc = Macro.Info->getDefinitionLoc(); in getHoverContents()
DSourceCode.cpp987 translatePreamblePatchLocation(MI->getDefinitionLoc(), SM)}; in locateMacroAt()
/external/llvm-project/clang-tools-extra/modularize/
DPreprocessorTracker.cpp1325 PP, PPTracker.getCurrentHeaderHandle(), Loc, MI->getDefinitionLoc(), II, in MacroExpands()
1339 (MI ? MI->getDefinitionLoc() : Loc), II, Unexpanded, in Defined()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp369 MoveToLine(MI->getDefinitionLoc()); in MacroDefined()
DCompilerInstance.cpp1187 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
1195 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
/external/llvm-project/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp417 MoveToLine(MI->getDefinitionLoc()); in MacroDefined()
DCompilerInstance.cpp1408 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
1416 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp413 auto DefLoc = MI->getDefinitionLoc(); in handleMacroOccurrence()

12