Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Lex/
H A DPPDirectives.cpp163 if (!SourceMgr.isWrittenInBuiltinFile(MI->getDefinitionLoc())) in isLanguageDefinedBuiltin()
3137 SourceMgr.getFileID(OtherMI->getDefinitionLoc()) == in HandleDefineDirective()
3158 Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleDefineDirective()
3168 Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef) in HandleDefineDirective()
3170 Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition); in HandleDefineDirective()
3174 WarnUnusedMacroLocs.erase(OtherMI->getDefinitionLoc()); in HandleDefineDirective()
3183 if (getSourceManager().isInMainFile(MI->getDefinitionLoc()) && in HandleDefineDirective()
3186 getSourceManager().getFileID(MI->getDefinitionLoc()) != in HandleDefineDirective()
3189 WarnUnusedMacroLocs.insert(MI->getDefinitionLoc()); in HandleDefineDirective()
3240 Diag(MI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleUndefDirective()
[all …]
H A DPPMacroExpansion.cpp252 SourceMgr.isInSystemHeader(NewMI->getDefinitionLoc()); in updateModuleMacroInfo()
560 Diag(MI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_chosen) in HandleMacroExpandedIdentifier()
564 Diag(OtherMI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_other) in HandleMacroExpandedIdentifier()
815 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
929 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
1001 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
1015 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
1037 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
1962 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in markMacroAsUsed()
H A DPreprocessingRecord.cpp459 SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); in MacroDefined()
H A DPragma.cpp664 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in HandlePragmaPopMacro()
/freebsd-14.2/contrib/llvm-project/clang/lib/Index/
H A DFileIndexRecord.cpp69 SourceLocation Loc = SM.getFileLoc(MI->getDefinitionLoc()); in print()
H A DIndexingAction.cpp252 MI->getDefinitionLoc(), DataConsumer); in indexPreprocessorModuleMacros()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Lex/
H A DMacroInfo.h125 SourceLocation getDefinitionLoc() const { return Location; } in getDefinitionLoc() function
441 : DefMacroDirective(MI, MI->getDefinitionLoc()) {} in DefMacroDirective()
H A DPreprocessor.h1417 return appendDefMacroDirective(II, MI, MI->getDefinitionLoc()); in appendDefMacroDirective()
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp486 SourceLocation DefLoc = MI->getDefinitionLoc(); in MacroDefined()
H A DCompilerInstance.cpp1573 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
1581 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp2538 AddSourceLocation(MI->getDefinitionLoc(), Record); in WritePreprocessor()