Searched defs:Diags (Results 1 - 25 of 89) sorted by relevance

1234

/freebsd-head/contrib/llvm-project/clang/lib/Driver/
H A DOptionUtils.cpp20 IntTy Default, DiagnosticsEngine *Diags,
25 if (Diags)
26 Diags->Report(diag::err_drv_invalid_int_value)
37 DiagnosticsEngine *Diags, unsigned Base) {
38 return getLastArgIntValueImpl<int>(Args, Id, Default, Diags, Base);
42 uint64_t Default, DiagnosticsEngine *Diags,
44 return getLastArgIntValueImpl<uint64_t>(Args, Id, Default, Diags, Base);
19 getLastArgIntValueImpl(const ArgList &Args, OptSpecifier Id, IntTy Default, DiagnosticsEngine *Diags, unsigned Base) argument
36 getLastArgIntValue(const ArgList &Args, OptSpecifier Id, int Default, DiagnosticsEngine *Diags, unsigned Base) argument
41 getLastArgUInt64Value(const ArgList &Args, OptSpecifier Id, uint64_t Default, DiagnosticsEngine *Diags, unsigned Base) argument
/freebsd-head/contrib/llvm-project/clang/include/clang/Driver/
H A DOptionUtils.h31 /// Return the value of the last argument as an integer, or a default. If Diags
35 DiagnosticsEngine *Diags = nullptr, unsigned Base = 0);
39 DiagnosticsEngine &Diags, unsigned Base = 0) {
40 return getLastArgIntValue(Args, Id, Default, &Diags, Base);
45 DiagnosticsEngine *Diags = nullptr,
51 DiagnosticsEngine &Diags,
53 return getLastArgUInt64Value(Args, Id, Default, &Diags, Base);
37 getLastArgIntValue(const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, int Default, DiagnosticsEngine &Diags, unsigned Base = 0) argument
48 getLastArgUInt64Value(const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, uint64_t Default, DiagnosticsEngine &Diags, unsigned Base = 0) argument
/freebsd-head/contrib/llvm-project/clang/lib/Frontend/
H A DCreateInvocationFromCommandLine.cpp28 ArrayRef<const char *> ArgList, IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
31 if (!Diags.get()) {
34 Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions);
44 *Diags, VFS);
82 Diags->Report(diag::err_fe_expected_compiler_job) << OS.str();
88 Diags->Report(diag::err_fe_expected_clang_command);
96 if (!CompilerInvocation::CreateFromArgs(*CI, CCArgs, *Diags, Args[0]) &&
27 createInvocationFromCommandLine( ArrayRef<const char *> ArgList, IntrusiveRefCntPtr<DiagnosticsEngine> Diags, IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, bool ShouldRecoverOnErorrs, std::vector<std::string> *CC1Args) argument
H A DDependencyFile.cpp35 DiagnosticsEngine &Diags; member in struct:__anon538::DepCollectorPPCallbacks
37 DiagnosticsEngine &Diags)
38 : DepCollector(L), SM(SM), Diags(Diags) {}
98 void EndOfMainFile() override { DepCollector.finishedMainFile(Diags); }
225 void DependencyFileGenerator::finishedMainFile(DiagnosticsEngine &Diags) { argument
226 outputDependencyFile(Diags);
308 void DependencyFileGenerator::outputDependencyFile(DiagnosticsEngine &Diags) { argument
317 Diags.Report(diag::err_fe_error_opening) << OutputFile << EC.message();
36 DepCollectorPPCallbacks(DependencyCollector &L, SourceManager &SM, DiagnosticsEngine &Diags) argument
/freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DCreateCheckerManager.cpp25 PP(&PP), Diags(Context.getDiagnostics()),
36 DiagnosticsEngine &Diags,
38 : LangOpts(LangOpts), AOptions(AOptions), Diags(Diags),
40 CheckerRegistry Registry(*RegistryData, plugins, Diags, AOptions, {});
34 CheckerManager(AnalyzerOptions &AOptions, const LangOptions &LangOpts, DiagnosticsEngine &Diags, ArrayRef<std::string> plugins) argument
/freebsd-head/contrib/llvm-project/clang/tools/driver/
H A Dcc1_main.cpp62 DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData); local
64 Diags.Report(diag::err_fe_error_backend) << Message;
205 DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagsBuffer);
207 Argv, Diags, Argv0);
/freebsd-head/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Frontend/
H A DCheckerRegistry.h92 DiagnosticsEngine &Diags, AnalyzerOptions &AnOpts,
192 DiagnosticsEngine &Diags; member in class:clang::ento::CheckerRegistry
/freebsd-head/contrib/llvm-project/clang/include/clang/AST/
H A DCommentParser.h45 DiagnosticsEngine &Diags; member in class:clang::comments::Parser
48 return Diags.Report(Loc, DiagID);
89 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
H A DCommentSema.h42 DiagnosticsEngine &Diags; member in class:clang::comments::Sema
64 return Diags.Report(Loc, DiagID);
73 DiagnosticsEngine &Diags, CommandTraits &Traits,
H A DMangle.h55 DiagnosticsEngine &Diags; member in class:clang::MangleContext
66 DiagnosticsEngine &Diags,
68 : Context(Context), Diags(Diags), Kind(Kind) {}
74 DiagnosticsEngine &getDiags() const { return Diags; }
187 DiagnosticsEngine &Diags,
254 DiagnosticsEngine &Diags);
65 MangleContext(ASTContext &Context, DiagnosticsEngine &Diags, ManglerKind Kind) argument
/freebsd-head/contrib/llvm-project/clang/lib/Basic/Targets/
H A DRISCV.cpp152 DiagnosticsEngine &Diags) {
151 handleTargetFeatures(std::vector<std::string> &Features, DiagnosticsEngine &Diags) argument
H A DWebAssembly.cpp137 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
149 return TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec);
153 std::vector<std::string> &Features, DiagnosticsEngine &Diags) {
244 Diags.Report(diag::err_opt_not_valid_with_opt)
136 initFeatureMap( llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector<std::string> &FeaturesVec) const argument
152 handleTargetFeatures( std::vector<std::string> &Features, DiagnosticsEngine &Diags) argument
H A DAMDGPU.cpp165 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
279 return TargetInfo::initFeatureMap(Features, Diags, CPU, FeatureVec);
164 initFeatureMap( llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector<std::string> &FeatureVec) const argument
H A DHexagon.cpp93 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
105 return TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec);
109 DiagnosticsEngine &Diags) {
92 initFeatureMap( llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector<std::string> &FeaturesVec) const argument
108 handleTargetFeatures(std::vector<std::string> &Features, DiagnosticsEngine &Diags) argument
H A DPPC.cpp32 DiagnosticsEngine &Diags) {
237 static bool ppcUserFeaturesCheck(DiagnosticsEngine &Diags, argument
246 Diags.Report(diag::err_opt_not_valid_with_opt) << Option << "-mno-vsx";
263 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
329 initFeatureMap(Features, Diags, "pwr9", FeaturesVec);
336 initFeatureMap(Features, Diags, "pwr10", FeaturesVec);
340 if (!ppcUserFeaturesCheck(Diags, FeaturesVec))
346 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mfloat128" << CPU;
350 return TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec);
31 handleTargetFeatures(std::vector<std::string> &Features, DiagnosticsEngine &Diags) argument
262 initFeatureMap( llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector<std::string> &FeaturesVec) const argument
H A DAArch64.cpp397 DiagnosticsEngine &Diags) {
396 handleTargetFeatures(std::vector<std::string> &Features, DiagnosticsEngine &Diags) argument
H A DX86.cpp106 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
120 if (!TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec))
172 DiagnosticsEngine &Diags) {
345 Diags.Report(diag::err_target_unsupported_fpmath)
105 initFeatureMap( llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector<std::string> &FeaturesVec) const argument
171 handleTargetFeatures(std::vector<std::string> &Features, DiagnosticsEngine &Diags) argument
/freebsd-head/contrib/llvm-project/clang/lib/Basic/
H A DWarnings.cpp34 static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags, argument
38 Diags.Report(diag::warn_unknown_diag_option)
44 void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, argument
47 Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers
48 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings);
49 Diags.setShowOverloads(Opts.getShowOverloads());
51 Diags.setElideType(Opts.ElideType);
52 Diags.setPrintTemplateTree(Opts.ShowTemplateTree);
53 Diags.setShowColors(Opts.ShowColors);
57 Diags
[all...]
H A DTargets.cpp633 TargetInfo::CreateTargetInfo(DiagnosticsEngine &Diags, argument
640 Diags.Report(diag::err_target_unknown_triple) << Triple.str();
647 Diags.Report(diag::err_target_unknown_cpu) << Opts->CPU;
651 Diags.Report(diag::note_valid_options) << llvm::join(ValidList, ", ");
657 Diags.Report(diag::err_target_unknown_abi) << Opts->ABI;
663 Diags.Report(diag::err_target_unknown_fpmath) << Opts->FPMath;
669 if (!Target->initFeatureMap(Opts->FeatureMap, Diags, Opts->CPU,
681 if (!Target->handleTargetFeatures(Opts->Features, Diags))
688 if (!Target->validateTarget(Diags))
H A DTargetInfo.cpp150 TargetInfo::checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const {
151 Diags.Report(diag::err_opt_not_valid_on_target) << "cf-protection=branch";
156 TargetInfo::checkCFProtectionReturnSupported(DiagnosticsEngine &Diags) const {
157 Diags.Report(diag::err_opt_not_valid_on_target) << "cf-protection=return";
427 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
426 initFeatureMap( llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector<std::string> &FeatureVec) const argument
/freebsd-head/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h64 DiagnosticsEngine &Diags; member in class:clang::FixItRewriter
89 FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr,
/freebsd-head/contrib/llvm-project/clang/lib/AST/Interp/
H A DState.cpp68 void State::addNotes(ArrayRef<PartialDiagnosticAt> Diags) { argument
70 getEvalStatus().Diag->insert(getEvalStatus().Diag->end(), Diags.begin(),
71 Diags.end());
/freebsd-head/contrib/llvm-project/clang/include/clang/Frontend/
H A DUtils.h92 virtual void finishedMainFile(DiagnosticsEngine &Diags) {} argument
123 void finishedMainFile(DiagnosticsEngine &Diags) override;
134 void outputDependencyFile(DiagnosticsEngine &Diags);
222 IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
/freebsd-head/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DFixItRewriter.cpp37 FixItRewriter::FixItRewriter(DiagnosticsEngine &Diags, SourceManager &SourceMgr, argument
40 : Diags(Diags), Editor(SourceMgr, LangOpts), Rewrite(SourceMgr, LangOpts),
42 Owner = Diags.takeClient();
43 Client = Diags.getClient();
44 Diags.setClient(this, false);
48 Diags.setClient(Client, Owner.release() != nullptr);
108 Diags.Report(clang::diag::err_fe_unable_to_open_output) << Filename
203 Diags.setClient(Client, false);
204 Diags
[all...]
/freebsd-head/contrib/llvm-project/clang/lib/CodeGen/
H A DModuleBuilder.cpp33 DiagnosticsEngine &Diags; member in class:__anon453::CodeGeneratorImpl
81 : Diags(diags), Ctx(nullptr), HeaderSearchOpts(HSO),
91 Diags.hasErrorOccurred());
147 *M, Diags, CoverageInfo));
156 if (Diags.hasErrorOccurred())
163 if (Diags.hasErrorOccurred())
189 if (Diags.hasErrorOccurred())
216 if (Diags.hasErrorOccurred())
252 if (Diags.hasErrorOccurred())
266 if (!Diags
339 CreateLLVMCodeGen( DiagnosticsEngine &Diags, llvm::StringRef ModuleName, const HeaderSearchOptions &HeaderSearchOpts, const PreprocessorOptions &PreprocessorOpts, const CodeGenOptions &CGO, llvm::LLVMContext &C, CoverageSourceInfo *CoverageInfo) argument
[all...]

Completed in 135 milliseconds

1234