Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Index/
H A DFileIndexRecord.cpp67 SourceLocation Loc = SM.getFileLoc(MI->getDefinitionLoc()); in print()
H A DIndexingAction.cpp250 MI->getDefinitionLoc(), DataConsumer); in indexPreprocessorModuleMacros()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPMacroExpansion.cpp250 SourceMgr.isInSystemHeader(NewMI->getDefinitionLoc()); in updateModuleMacroInfo()
506 Diag(MI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_chosen) in HandleMacroExpandedIdentifier()
510 Diag(OtherMI->getDefinitionLoc(), diag::note_pp_ambiguous_macro_other) in HandleMacroExpandedIdentifier()
761 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
875 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
956 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
970 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
992 Diag(MI->getDefinitionLoc(), diag::note_macro_here) in ReadMacroCallArgumentList()
2054 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in markMacroAsUsed()
H A DPPDirectives.cpp162 if (!SourceMgr.isWrittenInBuiltinFile(MI->getDefinitionLoc())) in isLanguageDefinedBuiltin()
3229 Diag(MI->getDefinitionLoc(), diag::warn_pp_macro_def_mismatch_with_pch) in HandleDefineDirective()
3249 SourceMgr.getFileID(OtherMI->getDefinitionLoc()) == in HandleDefineDirective()
3257 Diag(MI->getDefinitionLoc(), diag::warn_pp_objc_macro_redef_ignored); in HandleDefineDirective()
3270 Diag(OtherMI->getDefinitionLoc(), diag::pp_macro_not_used); in HandleDefineDirective()
3280 Diag(MI->getDefinitionLoc(), diag::ext_pp_macro_redef) in HandleDefineDirective()
3282 Diag(OtherMI->getDefinitionLoc(), diag::note_previous_definition); in HandleDefineDirective()
3286 WarnUnusedMacroLocs.erase(OtherMI->getDefinitionLoc()); in HandleDefineDirective()
3295 if (getSourceManager().isInMainFile(MI->getDefinitionLoc()) && in HandleDefineDirective()
3296 !Diags->isIgnored(diag::pp_macro_not_used, MI->getDefinitionLoc()) && in HandleDefineDirective()
[all …]
H A DPreprocessingRecord.cpp456 SourceRange R(MI->getDefinitionLoc(), MI->getDefinitionEndLoc()); in MacroDefined()
H A DPragma.cpp660 WarnUnusedMacroLocs.erase(MI->getDefinitionLoc()); in HandlePragmaPopMacro()
/freebsd/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.h1452 return appendDefMacroDirective(II, MI, MI->getDefinitionLoc()); in appendDefMacroDirective()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp305 auto DefLoc = MI->getDefinitionLoc(); in EndOfMainFile()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp568 SourceLocation DefLoc = MI->getDefinitionLoc(); in MacroDefined()
H A DCompilerInstance.cpp1616 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
1624 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp2748 AddSourceLocation(MI->getDefinitionLoc(), Record); in WritePreprocessor()