Home
last modified time | relevance | path

Searched refs:Diags (Results 1 – 25 of 173) sorted by relevance

1234567

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp99 static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, in Diag() argument
106 return Diags->Report(Begin, DiagID) << in Diag()
134 DiagnosticsEngine *Diags, in ProcessCharEscape() argument
161 if (Diags) in ProcessCharEscape()
162 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
167 if (Diags) in ProcessCharEscape()
168 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
193 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
198 if (Diags) in ProcessCharEscape()
199 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
[all …]
H A DModuleMap.cpp137 Diags.Report(Id[0].second, diag::err_mmap_missing_module_unqualified) in resolveModuleId()
148 Diags.Report(Id[I].second, diag::err_mmap_missing_module_qualified) in resolveModuleId()
245 Diags.Report(Header.FileNameLoc, in findHeader()
304 Diags.Report(Header.FileNameLoc, diag::err_mmap_umbrella_clash) in resolveHeader()
357 ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, in ModuleMap() argument
360 : SourceMgr(SourceMgr), Diags(Diags), LangOpts(LangOpts), Target(Target), in ModuleMap()
546 Diags.Report(FilenameLoc, diag::warn_use_of_private_header_outside_module) in diagnoseHeaderInclusion()
553 Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module_indirect) in diagnoseHeaderInclusion()
565 Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module) in diagnoseHeaderInclusion()
573 Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName() in diagnoseHeaderInclusion()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DVerifyDiagnosticConsumer.cpp296 void attachDirective(DiagnosticsEngine &Diags, const UnattachedDirective &UD, in attachDirective() argument
307 Diags.Report(UD.ContentBegin, diag::err_verify_invalid_content) in attachDirective()
327 DiagnosticsEngine &Diags; member in VerifyDiagnosticConsumer::MarkerTracker
341 MarkerTracker(DiagnosticsEngine &Diags) : Diags(Diags) {} in MarkerTracker() argument
359 attachDirective(Diags, UD, Pos); in addMarker()
373 return attachDirective(Diags, UD, M.DefLoc); in addDirective()
385 Diags.Report(M.UseLoc, diag::err_verify_ambiguous_marker) << Name; in finalize()
386 Diags.Report(M.DefLoc, diag::note_verify_ambiguous_marker) << Name; in finalize()
387 Diags.Report(M.RedefLoc, diag::note_verify_ambiguous_marker) << Name; in finalize()
392 Diags.Report(DeferredPair.second.front().DirectivePos, in finalize()
[all …]
H A DCompilerInvocation.cpp287 DiagnosticsEngine &Diags) { in normalizeSimpleFlag() argument
402 DiagnosticsEngine &Diags) { in normalizeSimpleEnum() argument
414 Diags.Report(diag::err_drv_invalid_value) in normalizeSimpleEnum()
446 DiagnosticsEngine &Diags) { in normalizeString() argument
456 DiagnosticsEngine &Diags) { in normalizeStringIntegral() argument
462 Diags.Report(diag::err_drv_invalid_int_value) in normalizeStringIntegral()
509 DiagnosticsEngine &Diags) { in normalizeTriple() argument
570 DiagnosticsEngine &Diags, const ArgList &Args, in FixupInvocation() argument
572 unsigned NumErrorsBefore = Diags.getNumErrors(); in FixupInvocation()
599 Diags.Report(diag::err_fe_invalid_exception_model) in FixupInvocation()
[all …]
H A DCreateInvocationFromCommandLine.cpp33 auto Diags = Opts.Diags in createInvocation() local
34 ? std::move(Opts.Diags) in createInvocation()
46 driver::Driver TheDriver(Args[0], llvm::sys::getDefaultTargetTriple(), *Diags, in createInvocation()
90 Diags->Report(diag::err_fe_expected_compiler_job) << OS.str(); in createInvocation()
97 Diags->Report(diag::err_fe_expected_clang_command); in createInvocation()
105 if (!CompilerInvocation::CreateFromArgs(*CI, CCArgs, *Diags, Args[0]) && in createInvocation()
H A DCompilerInstance.cpp285 DiagnosticsEngine &Diags) { in SetUpDiagnosticLog() argument
295 Diags.Report(diag::warn_fe_cc_log_diagnostics_failure) in SetUpDiagnosticLog()
309 if (Diags.ownsClient()) { in SetUpDiagnosticLog()
310 Diags.setClient( in SetUpDiagnosticLog()
311 new ChainedDiagnosticConsumer(Diags.takeClient(), std::move(Logger))); in SetUpDiagnosticLog()
313 Diags.setClient( in SetUpDiagnosticLog()
314 new ChainedDiagnosticConsumer(Diags.getClient(), std::move(Logger))); in SetUpDiagnosticLog()
319 DiagnosticsEngine &Diags, in SetupSerializedDiagnostics() argument
324 if (Diags.ownsClient()) { in SetupSerializedDiagnostics()
325 Diags.setClient(new ChainedDiagnosticConsumer( in SetupSerializedDiagnostics()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DARCMT.cpp81 void CapturedDiagList::reportDiagnostics(DiagnosticsEngine &Diags) const { in reportDiagnostics()
83 Diags.Report(*I); in reportDiagnostics()
97 DiagnosticsEngine &Diags; member in __anon76387d3f0111::CaptureDiagnosticConsumer
105 : Diags(diags), DiagClient(client), CapturedDiags(capturedDiags), in CaptureDiagnosticConsumer()
143 Diags.setLastDiagnosticIgnored(true); in HandleDiagnostic()
182 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration() local
186 PPOpts.ImplicitPCHInclude, FileMgr, PCHContainerRdr, *Diags); in createInvocationForMigration()
221 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in emitPremigrationErrors() local
224 Diags->setSourceManager(&PP.getSourceManager()); in emitPremigrationErrors()
227 arcDiags.reportDiagnostics(*Diags); in emitPremigrationErrors()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DOptionUtils.cpp20 IntTy Default, DiagnosticsEngine *Diags, in getLastArgIntValueImpl() argument
25 if (Diags) in getLastArgIntValueImpl()
26 Diags->Report(diag::err_drv_invalid_int_value) in getLastArgIntValueImpl()
37 DiagnosticsEngine *Diags, unsigned Base) { in getLastArgIntValue() argument
38 return getLastArgIntValueImpl<int>(Args, Id, Default, Diags, Base); in getLastArgIntValue()
42 uint64_t Default, DiagnosticsEngine *Diags, in getLastArgUInt64Value() argument
44 return getLastArgIntValueImpl<uint64_t>(Args, Id, Default, Diags, Base); in getLastArgUInt64Value()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DModuleBuilder.cpp34 DiagnosticsEngine &Diags; member in __anonbec9d48b0111::CodeGeneratorImpl
84 : Diags(diags), Ctx(nullptr), FS(std::move(FS)), HeaderSearchOpts(HSO), in CodeGeneratorImpl()
94 Diags.hasErrorOccurred()); in ~CodeGeneratorImpl()
166 *M, Diags, CoverageInfo)); in Initialize()
175 if (Diags.hasErrorOccurred()) in HandleCXXStaticMemberVarInstantiation()
183 if (Diags.hasUnrecoverableErrorOccurred()) in HandleTopLevelDecl()
209 if (Diags.hasUnrecoverableErrorOccurred()) in HandleInlineFunctionDefinition()
236 if (Diags.hasUnrecoverableErrorOccurred()) in HandleTagDeclDefinition()
272 if (Diags.hasUnrecoverableErrorOccurred()) in HandleTagDeclRequiredDefinition()
286 if (!Diags.hasUnrecoverableErrorOccurred() && Builder) in HandleTranslationUnit()
[all …]
H A DCodeGenAction.cpp93 static void reportOptRecordError(Error E, DiagnosticsEngine &Diags, in reportOptRecordError() argument
98 Diags.Report(diag::err_cannot_open_file) in reportOptRecordError()
102 Diags.Report(diag::err_drv_optimization_remark_pattern) in reportOptRecordError()
106 Diags.Report(diag::err_drv_optimization_remark_format) in reportOptRecordError()
112 BackendAction Action, DiagnosticsEngine &Diags, in BackendConsumer() argument
120 : Diags(Diags), Action(Action), HeaderSearchOpts(HeaderSearchOpts), in BackendConsumer()
125 Gen(CreateLLVMCodeGen(Diags, InFile, std::move(VFS), HeaderSearchOpts, in BackendConsumer()
137 BackendAction Action, DiagnosticsEngine &Diags, in BackendConsumer() argument
144 : Diags(Diags), Action(Action), HeaderSearchOpts(HeaderSearchOpts), in BackendConsumer()
149 Gen(CreateLLVMCodeGen(Diags, "", std::move(VFS), HeaderSearchOpts, PPOpts, in BackendConsumer()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DMips.cpp239 bool MipsTargetInfo::validateTarget(DiagnosticsEngine &Diags) const { in validateTarget()
242 Diags.Report(diag::err_target_unsupported_cpu_for_micromips) << CPU; in validateTarget()
248 Diags.Report(diag::err_target_unsupported_abi) << ABI << CPU; in validateTarget()
254 Diags.Report(diag::err_unsupported_abi_for_opt) << "-mfpxx" << "o32"; in validateTarget()
261 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mfpxx" << CPU; in validateTarget()
267 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mfp32" << CPU; in validateTarget()
273 Diags.Report(diag::err_mips_fp64_req) << "-mfp64"; in validateTarget()
278 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mfpxx" << CPU; in validateTarget()
283 Diags.Report(diag::err_opt_not_valid_with_opt) << "-msoft-float" in validateTarget()
290 Diags.Report(diag::err_mips_fp64_req) << "-mmsa"; in validateTarget()
[all …]
H A DPPC.cpp34 DiagnosticsEngine &Diags) { in handleTargetFeatures() argument
466 static bool ppcUserFeaturesCheck(DiagnosticsEngine &Diags, in ppcUserFeaturesCheck() argument
471 Diags.Report(diag::err_opt_not_valid_with_opt) << "-msoft-float" in ppcUserFeaturesCheck()
479 Diags.Report(diag::err_opt_not_valid_with_opt) << "-msoft-float" in ppcUserFeaturesCheck()
487 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mvsx" in ppcUserFeaturesCheck()
498 Diags.Report(diag::err_opt_not_valid_with_opt) << Option << "-mno-vsx"; in ppcUserFeaturesCheck()
517 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, in initFeatureMap() argument
623 initFeatureMap(Features, Diags, "pwr9", FeaturesVec); in initFeatureMap()
630 initFeatureMap(Features, Diags, "pwr10", FeaturesVec); in initFeatureMap()
637 initFeatureMap(Features, Diags, "pwr11", FeaturesVec); in initFeatureMap()
[all …]
H A DWebAssembly.cpp151 llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, in initFeatureMap() argument
177 return TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec); in initFeatureMap()
181 std::vector<std::string> &Features, DiagnosticsEngine &Diags) { in handleTargetFeatures() argument
297 Diags.Report(diag::err_opt_not_valid_with_opt) in handleTargetFeatures()
309 void WebAssemblyTargetInfo::adjust(DiagnosticsEngine &Diags, in adjust() argument
311 TargetInfo::adjust(Diags, Opts); in adjust()
/freebsd/contrib/llvm-project/clang/include/clang/Driver/
H A DOptionUtils.h35 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);
/freebsd/contrib/llvm-project/clang/tools/driver/
H A Dcc1as_main.cpp218 DiagnosticsEngine &Diags);
225 DiagnosticsEngine &Diags) { in CreateFromArgs() argument
238 Diags.Report(diag::err_drv_missing_argument) in CreateFromArgs()
248 Diags.Report(diag::err_drv_unknown_argument) << ArgString; in CreateFromArgs()
250 Diags.Report(diag::err_drv_unknown_argument_with_suggestion) in CreateFromArgs()
264 Diags.Report(diag::err_drv_invalid_value) in CreateFromArgs()
297 Opts.DwarfVersion = getLastArgIntValue(Args, OPT_dwarf_version_EQ, 2, Diags); in CreateFromArgs()
320 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args); in CreateFromArgs()
337 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name; in CreateFromArgs()
347 getLastArgIntValue(Args, OPT_output_asm_variant, 0, Diags); in CreateFromArgs()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningWorker.cpp47 void finishedMainFile(DiagnosticsEngine &Diags) override { in finishedMainFile() argument
66 DiagnosticsEngine *Diags, in checkHeaderSearchPaths() argument
70 if (Diags) { in checkHeaderSearchPaths()
71 Diags->Report(diag::warn_pch_vfsoverlay_mismatch); in checkHeaderSearchPaths()
74 Diags->Report(diag::note_pch_vfsoverlay_empty) << Type; in checkHeaderSearchPaths()
77 Diags->Report(diag::note_pch_vfsoverlay_files) << Type << Files; in checkHeaderSearchPaths()
98 const LangOptions &LangOpts, DiagnosticsEngine &Diags) in PrebuiltModuleListener() argument
102 ExistingLangOpts(LangOpts), Diags(Diags) {} in PrebuiltModuleListener()
122 HSOpts, ExistingHSOpts, Complain ? &Diags : nullptr, ExistingLangOpts); in ReadHeaderSearchPaths()
131 DiagnosticsEngine &Diags; member in __anona07bc58e0111::PrebuiltModuleListener
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DCreateCheckerManager.cpp25 PP(&PP), Diags(Context.getDiagnostics()), in CheckerManager()
36 DiagnosticsEngine &Diags, in CheckerManager() argument
38 : LangOpts(LangOpts), AOptions(AOptions), Diags(Diags), in CheckerManager()
40 CheckerRegistry Registry(*RegistryData, plugins, Diags, AOptions, {}); in CheckerManager()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp153 MicrosoftMangleContextImpl(ASTContext &Context, DiagnosticsEngine &Diags,
480 DiagnosticsEngine &Diags, in MicrosoftMangleContextImpl() argument
482 : MicrosoftMangleContext(Context, Diags, IsAux) { in MicrosoftMangleContextImpl()
1581 DiagnosticsEngine &Diags = Context.getDiags(); in mangleOperatorName() local
1582 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, in mangleOperatorName()
1584 Diags.Report(Loc, DiagID); in mangleOperatorName()
1676 DiagnosticsEngine &Diags = Context.getDiags(); in mangleExpression() local
1677 unsigned DiagID = Diags.getCustomDiagID( in mangleExpression()
1679 Diags.Report(E->getExprLoc(), DiagID) << E->getStmtClassName() in mangleExpression()
2113 DiagnosticsEngine &Diags = Context.getDiags(); in mangleTemplateArgValue() local
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h67 DiagnosticsEngine *Diags = nullptr,
295 DiagnosticsEngine &Diags,
329 DiagnosticsEngine &Diags,
343 DiagnosticsEngine &Diags, const char *Argv0);
349 DiagnosticsEngine &Diags);
353 InputKind IK, DiagnosticsEngine &Diags,
404 DiagnosticsEngine &Diags);
407 const CompilerInvocation &CI, DiagnosticsEngine &Diags,
412 DiagnosticsEngine &Diags,
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DODRDiagsEmitter.h22 ODRDiagsEmitter(DiagnosticsEngine &Diags, const ASTContext &Context, in ODRDiagsEmitter() argument
24 : Diags(Diags), Context(Context), LangOpts(LangOpts) {} in ODRDiagsEmitter()
133 return Diags.Report(Loc, DiagID); in Diag()
196 DiagnosticsEngine &Diags;
H A DMangle.h56 DiagnosticsEngine &Diags; variable
72 explicit MangleContext(ASTContext &Context, DiagnosticsEngine &Diags,
74 : Context(Context), Diags(Diags), Kind(Kind), IsAux(IsAux) {} in Context()
80 DiagnosticsEngine &getDiags() const { return Diags; } in getDiags()
223 create(ASTContext &Context, DiagnosticsEngine &Diags, bool IsAux = false);
225 DiagnosticsEngine &Diags,
294 create(ASTContext &Context, DiagnosticsEngine &Diags, bool IsAux = false);
/freebsd/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheck.cpp1208 std::vector<FileCheckDiag> *Diags) const { in printSubstitutions()
1230 if (Diags) in printSubstitutions()
1231 Diags->emplace_back(SM, CheckTy, getLoc(), MatchTy, in printSubstitutions()
1241 std::vector<FileCheckDiag> *Diags) const { in printVariableDefs()
1285 if (Diags) in printVariableDefs()
1286 Diags->emplace_back(SM, CheckTy, getLoc(), MatchTy, VC.Range, OS.str()); in printVariableDefs()
1296 std::vector<FileCheckDiag> *Diags, in ProcessMatchResult() argument
1301 if (Diags) { in ProcessMatchResult()
1303 SMLoc CheckLoc = Diags->rbegin()->CheckLoc; in ProcessMatchResult()
1304 for (auto I = Diags->rbegin(), E = Diags->rend(); in ProcessMatchResult()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSarifDiagnostics.cpp43 void FlushDiagnosticsImpl(std::vector<const PathDiagnostic *> &Diags,
146 createRuleMapping(const std::vector<const PathDiagnostic *> &Diags, in createRuleMapping() argument
151 for (const PathDiagnostic *D : Diags) { in createRuleMapping()
187 std::vector<const PathDiagnostic *> &Diags, FilesMade *) { in FlushDiagnosticsImpl() argument
202 StringMap<uint32_t> RuleMapping = createRuleMapping(Diags, SarifWriter); in FlushDiagnosticsImpl()
203 for (const PathDiagnostic *D : Diags) { in FlushDiagnosticsImpl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp199 static bool hasActiveDiagnostics(DiagnosticsEngine &Diags, in hasActiveDiagnostics() argument
201 return !Diags.isIgnored(diag::warn_tautological_overlap_comparison, Loc) || in hasActiveDiagnostics()
202 !Diags.isIgnored(diag::warn_comparison_bitwise_or, Loc) || in hasActiveDiagnostics()
203 !Diags.isIgnored(diag::warn_tautological_negation_and_compare, Loc); in hasActiveDiagnostics()
696 DiagnosticsEngine &Diags = S.getDiagnostics(); in CheckFallThroughForBody() local
699 if (CD.checkDiagnostics(Diags, ReturnsVoid, HasNoReturn)) in CheckFallThroughForBody()
1771 const DiagnosticsEngine &Diags, in shouldAnalyzeCalledOnceImpl() argument
1773 return llvm::any_of(DiagIDs, [&Diags, At](unsigned DiagID) { in shouldAnalyzeCalledOnceImpl()
1774 return !Diags.isIgnored(DiagID, At); in shouldAnalyzeCalledOnceImpl()
1778 bool shouldAnalyzeCalledOnceConventions(const DiagnosticsEngine &Diags, in shouldAnalyzeCalledOnceConventions() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang-c/
H A DCXDiagnostic.h79 CINDEX_LINKAGE unsigned clang_getNumDiagnosticsInSet(CXDiagnosticSet Diags);
90 CINDEX_LINKAGE CXDiagnostic clang_getDiagnosticInSet(CXDiagnosticSet Diags,
141 CINDEX_LINKAGE void clang_disposeDiagnosticSet(CXDiagnosticSet Diags);

1234567