Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllMacros.cpp27 getIncludePath(*SM, info->getDefinitionLoc(), Collector); in CreateMacroSymbol()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPMacroExpansion.cpp253 SourceMgr.isInSystemHeader(NewMI->getDefinitionLoc()); in updateModuleMacroInfo()
558 Diag(MI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_chosen) in HandleMacroExpandedIdentifier()
562 Diag(OtherMI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_other) in HandleMacroExpandedIdentifier()
813 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
927 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
999 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
1013 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
1035 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
1947 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in markMacroAsUsed()
H A DPPDirectives.cpp3097 SourceMgr.getFileID(OtherMI->getDefinitionLoc()) in HandleDefineDirective()
3118 Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleDefineDirective()
3128 Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef) in HandleDefineDirective()
3130 Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition); in HandleDefineDirective()
3134 WarnUnusedMacroLocs.erase(OtherMI->getDefinitionLoc()); in HandleDefineDirective()
3143 if (getSourceManager().isInMainFile(MI->getDefinitionLoc()) && in HandleDefineDirective()
3144 !Diags->isIgnored(diag::pp_macro_not_used, MI->getDefinitionLoc()) && in HandleDefineDirective()
3146 getSourceManager().getFileID(MI->getDefinitionLoc()) != in HandleDefineDirective()
3149 WarnUnusedMacroLocs.insert(MI->getDefinitionLoc()); in HandleDefineDirective()
3200 Diag(MI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleUndefDirective()
[all …]
H A DPreprocessingRecord.cpp465 SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); in MacroDefined()
H A DPragma.cpp652 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in HandlePragmaPopMacro()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DUpgradeGoogletestCaseCheck.cpp69 MD->getMacroInfo()->getDefinitionLoc()); in MacroDefined()
105 MD.getMacroInfo()->getDefinitionLoc()); in macroUsed()
/llvm-project-15.0.7/clang/lib/Index/
H A DFileIndexRecord.cpp71 SourceLocation Loc = SM.getFileLoc(MI->getDefinitionLoc()); in print()
H A DIndexingAction.cpp252 MI->getDefinitionLoc(), DataConsumer); in indexPreprocessorModuleMacros()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMacroToEnumCheck.cpp483 MacroList.front().Directive->getMacroInfo()->getDefinitionLoc(); in fixEnumMacro()
493 Macro.Directive->getMacroInfo()->getDefinitionLoc(); in fixEnumMacro()
502 Macro.Directive->getMacroInfo()->getDefinitionLoc(), 0, SM, LangOpts); in fixEnumMacro()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMacroRepeatedSideEffectsCheck.cpp69 Check.diag(MI->getDefinitionLoc(), "macro %0 defined here", in MacroExpands()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DMacroInfo.h126 SourceLocation getDefinitionLoc() const { return Location; } in getDefinitionLoc() function
439 : DefMacroDirective(MI, MI->getDefinitionLoc()) {} in DefMacroDirective()
H A DPreprocessor.h1291 return appendDefMacroDirective(II, MI, MI->getDefinitionLoc()); in appendDefMacroDirective()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp485 NamingCheckId ID(MI->getDefinitionLoc(), std::string(Name)); in checkMacro()
499 NamingCheckId ID(MI->getDefinitionLoc(), std::string(Name)); in expandMacro()
H A DHeaderGuard.cpp83 SM.getFileEntryForID(SM.getFileID(MI->getDefinitionLoc())); in EndOfMainFile()
/llvm-project-15.0.7/clang/tools/c-index-test/
H A Dcore_main.cpp184 if (generateUSRForMacro(Name->getName(), MI->getDefinitionLoc(), SM, in handleMacroOccurrence()
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DPreprocessorTracker.cpp1326 PP, PPTracker.getCurrentHeaderHandle(), Loc, MI->getDefinitionLoc(), II, in MacroExpands()
1340 (MI ? MI->getDefinitionLoc() : Loc), II, Unexpanded, in Defined()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeCleaner.cpp251 auto Loc = Macro->Info->getDefinitionLoc(); in findReferencedMacros()
H A DPreamble.cpp284 MI->getDefinitionLoc(), MI->getDefinitionEndLoc()), in MacroDefined()
H A DAST.cpp357 if (index::generateUSRForMacro(MacroName, MI->getDefinitionLoc(), SM, USR)) in getSymbolID()
H A DSourceCode.cpp1007 translatePreamblePatchLocation(MacroInfo->getDefinitionLoc(), SM)}; in locateMacroAt()
H A DHover.cpp653 SourceLocation StartLoc = Macro.Info->getDefinitionLoc(); in getHoverContents()
/llvm-project-15.0.7/clang/unittests/Index/
H A DIndexTests.cpp100 S.DeclPos = Position::fromSourceLocation(MI->getDefinitionLoc(), in handleMacroOccurrence()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp479 SourceLocation DefLoc = MI->getDefinitionLoc(); in MacroDefined()
H A DCompilerInstance.cpp1540 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
1548 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp697 auto DefLoc = MI->getDefinitionLoc(); in handleMacroOccurrence()

12