Home
last modified time | relevance | path

Searched refs:DiagHandler (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContext.cpp137 pImpl->DiagHandler->DiagHandlerCallback = DiagnosticHandler; in setDiagnosticHandlerCallBack()
138 pImpl->DiagHandler->DiagnosticContext = DiagnosticContext; in setDiagnosticHandlerCallBack()
144 pImpl->DiagHandler = std::move(DH); in setDiagnosticHandler()
203 return pImpl->DiagHandler->DiagHandlerCallback; in getDiagnosticHandlerCallBack()
207 return pImpl->DiagHandler->DiagnosticContext; in getDiagnosticContext()
266 if (pImpl->DiagHandler) { in diagnose()
268 pImpl->DiagHandler->HasErrors = true; in diagnose()
270 pImpl->DiagHandler->handleDiagnostics(DI)) in diagnose()
379 return pImpl->DiagHandler.get(); in getDiagHandlerPtr()
383 return std::move(pImpl->DiagHandler); in getDiagnosticHandler()
H A DLLVMContextImpl.cpp37 : DiagHandler(std::make_unique<DiagnosticHandler>()), in LLVMContextImpl()
H A DLLVMContextImpl.h1470 std::unique_ptr<DiagnosticHandler> DiagHandler;
/freebsd/contrib/llvm-project/llvm/include/llvm/LTO/
H A DConfig.h181 DiagnosticHandlerFunction DiagHandler; member
296 LTOLLVMContext(const Config &C) : DiagHandler(C.DiagHandler) { in LTOLLVMContext()
300 std::make_unique<LTOLLVMDiagnosticHandler>(&DiagHandler), true); in LTOLLVMContext()
302 DiagnosticHandlerFunction DiagHandler; member
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp722 assert(DiagHandler && "Invalid diagnostic handler"); in DiagnosticHandler()
723 (*DiagHandler)(Severity, MsgStorage.c_str(), DiagContext); in DiagnosticHandler()
739 LTOCodeGenerator::setDiagnosticHandler(lto_diagnostic_handler_t DiagHandler, in setDiagnosticHandler() argument
741 this->DiagHandler = DiagHandler; in setDiagnosticHandler()
743 if (!DiagHandler) in setDiagnosticHandler()
762 if (DiagHandler) in emitError()
763 (*DiagHandler)(LTO_DS_ERROR, ErrMsg.c_str(), DiagContext); in emitError()
769 if (DiagHandler) in emitWarning()
770 (*DiagHandler)(LTO_DS_WARNING, ErrMsg.c_str(), DiagContext); in emitWarning()
/freebsd/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesYAMLCompiler.cpp653 llvm::SourceMgr::DiagHandlerTy DiagHandler; member in __anon10d1463d1211::YAMLConverter
659 DiagHandler( in emitError()
669 llvm::SourceMgr::DiagHandlerTy DiagHandler, in YAMLConverter() argument
672 DiagHandler(DiagHandler), DiagHandlerCtxt(DiagHandlerCtxt), in YAMLConverter()
1117 llvm::SourceMgr::DiagHandlerTy DiagHandler, in compile() argument
1119 YAMLConverter C(M, SourceFile, OS, DiagHandler, DiagHandlerCtxt); in compile()
1131 llvm::SourceMgr::DiagHandlerTy DiagHandler, in compileAPINotes() argument
1135 if (!DiagHandler) in compileAPINotes()
1136 DiagHandler = &printDiagnostic; in compileAPINotes()
1138 if (parseAPINotes(YAMLInput, TheModule, DiagHandler, DiagHandlerCtxt)) in compileAPINotes()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h90 DiagHandlerTy DiagHandler = nullptr; variable
113 DiagHandler = DH;
117 DiagHandlerTy getDiagHandler() const { return DiagHandler; } in getDiagHandler()
H A DVirtualFileSystem.h647 llvm::SourceMgr::DiagHandlerTy DiagHandler,
1044 SourceMgr::DiagHandlerTy DiagHandler, StringRef YAMLFilePath,
1099 llvm::SourceMgr::DiagHandlerTy DiagHandler, StringRef YAMLFilePath,
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DYAMLTraits.cpp59 SourceMgr::DiagHandlerTy DiagHandler, void *DiagHandlerCtxt) in Input() argument
61 if (DiagHandler) in Input()
62 SrcMgr.setDiagHandler(DiagHandler, DiagHandlerCtxt); in Input()
67 SourceMgr::DiagHandlerTy DiagHandler, void *DiagHandlerCtxt) in Input() argument
69 if (DiagHandler) in Input()
70 SrcMgr.setDiagHandler(DiagHandler, DiagHandlerCtxt); in Input()
H A DSourceMgr.cpp338 if (DiagHandler) { in PrintMessage()
339 DiagHandler(Diagnostic, DiagContext); in PrintMessage()
H A DVirtualFileSystem.cpp2164 SourceMgr::DiagHandlerTy DiagHandler, in create() argument
2170 SM.setDiagHandler(DiagHandler, DiagContext); in create()
2652 SourceMgr::DiagHandlerTy DiagHandler, in getVFSFromYAML() argument
2655 return RedirectingFileSystem::create(std::move(Buffer), DiagHandler, in getVFSFromYAML()
2697 SourceMgr::DiagHandlerTy DiagHandler, in collectVFSFromYAML() argument
2703 std::move(Buffer), DiagHandler, YAMLFilePath, DiagContext, in collectVFSFromYAML()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCContext.h117 DiagHandlerTy DiagHandler; variable
406 void setDiagnosticHandler(DiagHandlerTy DiagHandler) { in setDiagnosticHandler() argument
407 this->DiagHandler = DiagHandler; in setDiagnosticHandler()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h326 DiagHandler = std::move(other.DiagHandler);
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCContext.cpp72 SrcMgr(mgr), InlineSrcMgr(nullptr), DiagHandler(defaultDiagHandler), in MCContext()
140 DiagHandler = defaultDiagHandler; in reset()
1023 assert(DiagHandler && "MCContext::DiagHandler is not set"); in diagnose()
1033 DiagHandler(SMD, UseInlineSrcMgr, *SMP, LocInfos); in diagnose()
1064 DiagHandler(D, UseInlineSrcMgr, *SMP, LocInfos); in reportCommon()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DLLVMContext.h175 DiagnosticHandler::DiagnosticHandlerTy DiagHandler,
/freebsd/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOCodeGenerator.h241 lto_diagnostic_handler_t DiagHandler = nullptr; member
/freebsd/contrib/llvm-project/clang/include/clang/Format/
H A DFormat.h5202 llvm::SourceMgr::DiagHandlerTy DiagHandler,
5268 llvm::SourceMgr::DiagHandlerTy DiagHandler = nullptr,
5437 llvm::SourceMgr::DiagHandlerTy DiagHandler = nullptr);
/freebsd/contrib/llvm-project/lld/MachO/
H A DLTO.cpp50 c.DiagHandler = diagnosticHandler; in getThinLTOOutputFile()
/freebsd/contrib/llvm-project/lld/COFF/
H A DLTO.cpp75 c.DiagHandler = diagnosticHandler; in createConfig()
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp2012 llvm::SourceMgr::DiagHandlerTy DiagHandler, in parseConfiguration() argument
2021 llvm::yaml::Input Input(Config, /*Ctxt=*/nullptr, DiagHandler, in parseConfiguration()
3970 llvm::SourceMgr::DiagHandlerTy DiagHandler) { in loadAndParseConfigFile() argument
3976 DiagHandler)) { in loadAndParseConfigFile()
3986 llvm::SourceMgr::DiagHandlerTy DiagHandler) { in getStyle() argument
3999 AllowUnknownOptions, DiagHandler)) { in getStyle()
4020 DiagHandler); in getStyle()
4061 DiagHandler ? DiagHandler : dropDiagnosticHandler); in getStyle()
4096 DiagHandler); in getStyle()
/freebsd/contrib/llvm-project/lld/ELF/
H A DLTO.cpp104 c.DiagHandler = diagnosticHandler; in createConfig()
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStub.cpp1060 static void DiagHandler(const SMDiagnostic &Diag, void *Context) { in DiagHandler() function
1116 yaml::Input YAMLIn(InputBuffer.getBuffer(), &Ctx, DiagHandler, &Ctx); in get()
/freebsd/contrib/llvm-project/llvm/tools/llvm-lto2/
H A Dllvm-lto2.cpp369 Conf.DiagHandler = [&](const DiagnosticInfo &DI) { in run()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp332 static void DiagHandler(const SMDiagnostic &Diag, void *Context);
782 SrcMgr.setDiagHandler(DiagHandler, this); in AsmParser()
2442 void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) { in DiagHandler() function in AsmParser
H A DMasmParser.cpp626 static void DiagHandler(const SMDiagnostic &Diag, void *Context);
1101 SrcMgr.setDiagHandler(DiagHandler, this); in MasmParser()
2774 void MasmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) { in DiagHandler() function in MasmParser

12