Home
last modified time | relevance | path

Searched refs:Diag (Results 1 – 25 of 218) sorted by relevance

123456789

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DOptionalDiagnostic.h29 PartialDiagnostic *Diag; variable
32 explicit OptionalDiagnostic(PartialDiagnostic *Diag = nullptr) : Diag(Diag) {} in Diag() function
35 if (Diag)
36 *Diag << v;
41 if (Diag) {
44 *Diag << StringRef(Buffer.data(), Buffer.size());
50 if (Diag) {
61 *Diag << StringRef(Buffer.data(), Buffer.size());
67 if (Diag) {
70 *Diag << StringRef(Buffer.data(), Buffer.size());
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp98 S.Diag(property->getLocation(), in checkPropertyDeclWithOwnership()
398 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute) in checkAtomicPropertyMismatch()
401 S.Diag(OldProperty->getLocation(), diag::note_property_declare); in checkAtomicPropertyMismatch()
419 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension()
434 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
435 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
455 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
457 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
465 Diag(AtLoc, diag::warn_property_redecl_getter_mismatch) in HandlePropertyInClassExtension()
467 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
[all …]
H A DSemaSwift.cpp30 Diag(PrevSNA->getLocation(), diag::err_attributes_are_not_compatible) in mergeNameAttr()
34 Diag(SNA.getLoc(), diag::note_conflicting_attribute); in mergeNameAttr()
96 Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL; in handleBridge()
132 S.Diag(AL.getLoc(), diag::err_attr_swift_error_no_error_parameter) in handleError()
145 S.Diag(AL.getLoc(), diag::err_attr_swift_error_return_type) in handleError()
156 S.Diag(AL.getLoc(), diag::err_attr_swift_error_return_type) in handleError()
169 Diag(AL.getLoc(), diag::warn_attribute_type_not_supported) in handleError()
205 S.Diag(AsyncAttr->getLocation(), in checkSwiftAsyncErrorBlock()
229 S.Diag(ErrorAttr->getLocation(), in checkSwiftAsyncErrorBlock()
240 S.Diag(ErrorAttr->getLocation(), diag::err_swift_async_error_non_integral) in checkSwiftAsyncErrorBlock()
[all …]
H A DSemaOpenCL.cpp25 Diag(AL.getLoc(), diag::err_attribute_requires_opencl_version) in handleNoSVMAttr()
28 Diag(AL.getLoc(), diag::warn_opencl_attr_deprecated_ignored) in handleNoSVMAttr()
40 Diag(AL.getLoc(), diag::warn_duplicate_declspec) in handleAccessAttr()
43 Diag(AL.getLoc(), diag::err_opencl_multiple_access_qualifiers) in handleAccessAttr()
68 Diag(AL.getLoc(), diag::err_opencl_invalid_read_write) in handleAccessAttr()
85 Diag(AL.getLoc(), diag::err_attribute_argument_is_zero) in handleSubGroupSize()
93 Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL; in handleSubGroupSize()
129 S.Diag(ErrorLoc, in checkBlockArgs()
146 Diag(Call->getBeginLoc(), diag::err_opencl_requires_extension) in checkSubgroupExt()
164 Diag(NDRangeArg->getBeginLoc(), diag::err_opencl_builtin_expected_type) in checkBuiltinNDRangeAndBlock()
[all …]
H A DSemaBase.cpp37 operator<<(const SemaBase::SemaDiagnosticBuilder &Diag, in operator <<() argument
39 if (Diag.ImmediateDiag) in operator <<()
40 PD.Emit(*Diag.ImmediateDiag); in operator <<()
41 else if (Diag.PartialDiagId) in operator <<()
42 Diag.S.DeviceDeferredDiags[Diag.Fn][*Diag.PartialDiagId].second = PD; in operator <<()
43 return Diag; in operator <<()
60 Sema::SemaDiagnosticBuilder SemaBase::Diag(SourceLocation Loc, unsigned DiagID, in Diag() function in clang::SemaBase
84 Sema::SemaDiagnosticBuilder SemaBase::Diag(SourceLocation Loc, in Diag() function in clang::SemaBase
87 return Diag(Loc, PD.getDiagID(), DeferHint) << PD; in Diag()
H A DSemaDeclAttr.cpp105 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) in checkPositiveIntArgument()
122 Diag(E->getBeginLoc(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
137 Diag(Loc->Loc, diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
154 Diag(ArgExpr->getBeginLoc(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
225 S.Diag(AL.getLoc(), diag::warn_thread_attribute_decl_not_pointer) << AL << QT; in threadSafetyCheckIsPointer()
343 S.Diag(AL.getLoc(), in checkAttrArgsAreCapabilityObjs()
347 S.Diag(AL.getLoc(), diag::warn_thread_attribute_not_on_non_static_member) in checkAttrArgsAreCapabilityObjs()
372 S.Diag(AL.getLoc(), diag::warn_thread_attribute_ignored) << AL; in checkAttrArgsAreCapabilityObjs()
400 S.Diag(AL.getLoc(), in checkAttrArgsAreCapabilityObjs()
414 S.Diag(AL.getLoc(), diag::warn_thread_attribute_argument_not_lockable) in checkAttrArgsAreCapabilityObjs()
[all …]
H A DSemaModule.cpp46 S.Diag(ImportLoc, (FromInclude && S.isModuleVisible(M)) in checkModuleImportContext()
50 S.Diag(cast<Decl>(DC)->getBeginLoc(), in checkModuleImportContext()
54 S.Diag(ImportLoc, diag::ext_module_import_in_extern_c) in checkModuleImportContext()
56 S.Diag(ExternCLoc, diag::note_extern_c_begins_here); in checkModuleImportContext()
250 return S.Diag(Loc, diag::err_invalid_module_name) << II; in DiagReservedModuleName()
252 S.Diag(Loc, diag::warn_reserved_module_name) << II; in DiagReservedModuleName()
300 Diag(ModuleLoc, diag::err_module_interface_implementation_mismatch) in ActOnModuleDecl()
306 Diag(ModuleLoc, diag::err_module_decl_in_module_map_module); in ActOnModuleDecl()
310 Diag(ModuleLoc, diag::err_module_decl_in_header_unit); in ActOnModuleDecl()
321 Diag(ModuleLoc, diag::err_module_redeclaration); in ActOnModuleDecl()
[all …]
H A DSemaAttr.cpp258 Diag(PragmaLoc, diag::err_pragma_options_align_mac68k_target_unsupported); in ActOnPragmaOptionsAlign()
273 Diag(PragmaLoc, diag::warn_pragma_options_align_reset_failed) in ActOnPragmaOptionsAlign()
321 Diag(PragmaLoc, diag::err_pragma_section_invalid_for_target) in ActOnPragmaClangSection()
340 Diag(PragmaLoc, diag::err_pragma_pack_identifer_not_supported); in ActOnPragmaPack()
359 Diag(PragmaLoc, diag::warn_pragma_pack_invalid_alignment); in ActOnPragmaPack()
365 Diag(PragmaLoc, diag::err_pragma_pack_invalid_alignment); in ActOnPragmaPack()
379 Diag(PragmaLoc, diag::warn_pragma_pack_show) << "mac68k"; in ActOnPragmaPack()
381 Diag(PragmaLoc, diag::warn_pragma_pack_show) << AlignmentVal; in ActOnPragmaPack()
388 Diag(PragmaLoc, diag::warn_pragma_pack_pop_identifier_and_alignment); in ActOnPragmaPack()
392 Diag(PragmaLoc, diag::warn_pragma_pop_failed) << "pack" << "stack empty"; in ActOnPragmaPack()
[all …]
H A DSemaDecl.cpp229 S.Diag(NameLoc, diag::ext_found_in_dependent_base) << &II; in recoverFromTypeInKnownDependentBase()
329 Diag(QualifiedLoc, diag::warn_cxx17_compat_implicit_typename); in getTypeName()
331 Diag(QualifiedLoc, diag::ext_implicit_typename) in getTypeName()
517 Diag(NameLoc, diag::err_out_of_line_qualified_id_type_names_constructor) in getTypeName()
605 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II; in ActOnMSVCUnknownTypeName()
615 Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II in ActOnMSVCUnknownTypeName()
765 Diag(IILoc, IsTemplateName ? diag::err_no_template in DiagnoseUnknownTypeName()
769 Diag(IILoc, IsTemplateName ? diag::err_no_member_template in DiagnoseUnknownTypeName()
780 Diag(SS->getRange().getBegin(), DiagID) in DiagnoseUnknownTypeName()
840 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag()
[all …]
H A DSemaBoundsSafety.cpp60 Diag(FD->getBeginLoc(), diag::err_count_attr_in_union) in CheckCountedByAttrOnField()
67 Diag(FD->getBeginLoc(), in CheckCountedByAttrOnField()
73 Diag(FD->getBeginLoc(), in CheckCountedByAttrOnField()
84 Diag(FD->getBeginLoc(), in CheckCountedByAttrOnField()
130 Diag(FD->getBeginLoc(), DiagID) in CheckCountedByAttrOnField()
139 Diag(E->getBeginLoc(), diag::err_count_attr_argument_not_integer) in CheckCountedByAttrOnField()
146 Diag(E->getBeginLoc(), in CheckCountedByAttrOnField()
158 Diag(E->getBeginLoc(), diag::err_count_attr_must_be_in_structure) in CheckCountedByAttrOnField()
161 Diag(CountDecl->getBeginLoc(), in CheckCountedByAttrOnField()
169 Diag(CountFD->getBeginLoc(), diag::err_count_attr_refer_to_union) in CheckCountedByAttrOnField()
[all …]
H A DSemaObjC.cpp48 return StmtError(Diag((*DS->decl_begin())->getLocation(), in ActOnObjCForCollectionStmt()
61 Diag(D->getLocation(), diag::err_non_local_variable_decl_in_for)); in ActOnObjCForCollectionStmt()
85 Diag(Loc, diag::warn_auto_var_is_id) << D->getDeclName(); in ActOnObjCForCollectionStmt()
93 Diag(First->getBeginLoc(), diag::err_selector_element_not_lvalue) in ActOnObjCForCollectionStmt()
98 Diag(ForLoc, diag::err_selector_element_const_type) in ActOnObjCForCollectionStmt()
104 return StmtError(Diag(ForLoc, diag::err_selector_element_type) in ActOnObjCForCollectionStmt()
146 return Diag(forLoc, diag::err_collection_expr_type) in CheckObjCForCollectionOperand()
186 Diag(forLoc, diag::warn_collection_expr_type) in CheckObjCForCollectionOperand()
227 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
232 Diag(AtLoc, diag::err_mixing_cxx_try_seh_try) << 1; in ActOnObjCAtTryStmt()
[all …]
H A DSemaDeclObjC.cpp112 Diag(loc, diag::err_arc_init_method_unrelated_result_type); in checkInitMethod()
122 S.Diag(NewD->getLocation(), diag::warn_overriding_method_missing_noescape); in diagnoseNoescape()
123 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape()
136 S.Diag(CD->getLocation(), diag::note_cat_conform_to_noescape_prot) in diagnoseNoescape()
168 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
174 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
181 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
186 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
192 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
197 Diag(Overridden->getLocation(), diag::note_previous_decl) << "method"; in CheckObjCMethodOverride()
[all …]
H A DSemaWasm.cpp34 return S.Diag(ArgExpr->getBeginLoc(), in CheckWasmBuiltinArgIsTable()
47 return S.Diag(ArgExpr->getBeginLoc(), in CheckWasmBuiltinArgIsInteger()
66 Diag(TheCall->getBeginLoc(), diag::err_typecheck_call_too_many_args) in BuiltinWasmRefNullFunc()
151 return Diag(NewElemArg->getBeginLoc(), in BuiltinWasmTableGrow()
178 return Diag(NewElemArg->getBeginLoc(), in BuiltinWasmTableFill()
206 return Diag(TableYArg->getBeginLoc(), in BuiltinWasmTableCopy()
252 Diag(ExistingAttr->getLocation(), diag::warn_mismatched_import) in mergeImportModuleAttr()
254 Diag(AL.getLoc(), diag::note_previous_attribute); in mergeImportModuleAttr()
258 Diag(AL.getLoc(), diag::warn_import_on_definition) << 0; in mergeImportModuleAttr()
272 Diag(ExistingAttr->getLocation(), diag::warn_mismatched_import) in mergeImportNameAttr()
[all …]
H A DSemaOpenACC.cpp38 return S.Diag(StartLoc, diag::err_acc_construct_appertainment) << K; in diagnoseConstructAppertainment()
360 S.Diag(Clause.getBeginLoc(), diag::err_acc_duplicate_clause_disallowed) in checkAlreadyHasClauseOfKind()
362 S.Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here); in checkAlreadyHasClauseOfKind()
420 S.Diag(NewClause.getBeginLoc(), diag::err_acc_clause_after_device_type) in checkValidAfterDeviceType()
424 S.Diag(DeviceTypeClause.getBeginLoc(), diag::note_acc_previous_clause_here); in checkValidAfterDeviceType()
464 SemaRef.Diag(Clause.getBeginLoc(), diag::err_acc_clause_cannot_combine) in Visit()
466 SemaRef.Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here); in Visit()
477 SemaRef.Diag(Clause.getBeginLoc(), diag::warn_acc_deprecated_alias_name) \ in Visit()
541 SemaRef.Diag(Clause.getBeginLoc(), diag::warn_acc_if_self_conflict); in VisitIfClause()
542 SemaRef.Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here); in VisitIfClause()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DDiagnosticIDs.cpp491 const DiagnosticsEngine &Diag) const { in getDiagnosticLevel()
500 return toLevel(getDiagnosticSeverity(DiagID, Loc, Diag)); in getDiagnosticLevel()
511 const DiagnosticsEngine &Diag) const { in getDiagnosticSeverity()
519 DiagnosticsEngine::DiagState *State = Diag.GetDiagStateForLoc(Loc); in getDiagnosticSeverity()
536 if (Diag.AllExtensionsSilenced && IsExtensionDiag && !EnabledByDefault) in getDiagnosticSeverity()
575 Diag.CurDiagID != diag::fatal_too_many_errors && Diag.FatalsAsError) in getDiagnosticSeverity()
586 Diag.getSourceManager().isInSystemHeader( in getDiagnosticSeverity()
587 Diag.getSourceManager().getExpansionLoc(Loc))) in getDiagnosticSeverity()
594 Diag.getSourceManager().isInSystemMacro(Loc)) in getDiagnosticSeverity()
663 std::string Diag(DiagGroupNames + I + 1, DiagGroupNames[I]); in getDiagnosticFlags() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPragma.cpp119 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
218 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
225 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
239 Diag(Tok, diag::err_invalid_string_udl); in Handle_Pragma()
253 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
269 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
369 Diag(PragmaLoc, diag::err__Pragma_malformed); in HandleMicrosoft__pragma()
387 Diag(PragmaLoc, diag::err_unterminated___pragma); in HandleMicrosoft__pragma()
423 Diag(OnceTok, diag::pp_pragma_once_in_main_file); in HandlePragmaOnce()
460 Diag(Tok, diag::err_pp_invalid_poison); in HandlePragmaPoison()
[all …]
H A DPPDirectives.cpp328 return Diag(MacroNameTok, diag::err_pp_missing_macro_name); in CheckMacroName()
332 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); in CheckMacroName()
337 Diag(MacroNameTok, getLangOpts().MicrosoftExt in CheckMacroName()
347 return Diag(MacroNameTok, diag::err_defined_macro_name); in CheckMacroName()
371 Diag(MacroNameTok, diag::warn_pp_macro_is_reserved_id); in CheckMacroName()
443 Diag(Tmp, diag::ext_pp_extra_tokens_at_eol) << DirType << Hint; in CheckEndOfDirective()
468 Diag(Tok, diag::warn_pp_invalid_directive) << 1 << SuggValue << Hint; in SuggestTypoedDirective()
698 Diag(Tok, diag::pp_err_else_after_else); in SkipExcludedConditionalBlock()
726 Diag(Tok, diag::pp_err_elif_after_else) << PED_Elif; in SkipExcludedConditionalBlock()
778 Diag(Tok, DiagID) << (IsElifDef ? PED_Elifdef : PED_Elifndef); in SkipExcludedConditionalBlock()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaBase.h78 operator<<(const ImmediateDiagBuilder &Diag, const T &Value) {
79 const DiagnosticBuilder &BaseDiag = Diag;
81 return Diag;
155 operator<<(const SemaDiagnosticBuilder &Diag, const T &Value) {
156 if (Diag.ImmediateDiag)
157 *Diag.ImmediateDiag << Value;
158 else if (Diag.PartialDiagId)
159 Diag.getDeviceDeferredDiags()[Diag.Fn][*Diag.PartialDiagId].second
161 return Diag;
178 operator<<(const SemaDiagnosticBuilder &Diag, const PartialDiagnostic &PD);
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.h111 /// Temporary \c Diag instances are created by the handler routines to in getEnd()
114 class Diag {
171 Diag &AddArg(Arg A) {
177 Diag &AddRange(Range A) {
183 /// \c Diag objects are not copyable.
184 Diag(const Diag &); // NOT IMPLEMENTED
185 Diag &operator=(const Diag &);
188 Diag(Locatio
208 Diag(Location Loc, DiagLevel Level, ErrorType ET, const char *Message) Diag() function
[all...]
H A Dubsan_handlers.cpp117 Diag(Loc, DL_Error, ET, "%0 null pointer of type %1") in handleTypeMismatchImpl()
121 Diag(Loc, DL_Error, ET, "%0 misaligned address %1 for type %3, " in handleTypeMismatchImpl()
127 Diag(Loc, DL_Error, ET, "%0 address %1 with insufficient space " in handleTypeMismatchImpl()
136 Diag(Pointer, DL_Note, ET, "pointer points here"); in handleTypeMismatchImpl()
174 Diag(Loc, DL_Error, ET, in handleAlignmentAssumptionImpl()
178 Diag(Loc, DL_Error, ET, in handleAlignmentAssumptionImpl()
185 Diag(AssumptionLoc, DL_Note, ET, "alignment assumption was specified here"); in handleAlignmentAssumptionImpl()
187 Diag(RealPointer, DL_Note, ET, in handleAlignmentAssumptionImpl()
227 Diag(Loc, DL_Error, ET, "%0 integer overflow: " in handleIntegerOverflowImpl()
265 Diag(Loc, DL_Error, ET, in handleNegateOverflowImpl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParsePragma.cpp115 PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma()
175 PP.Diag(UnknownTok, diag::ext_stdc_pragma_ignored); in HandlePragma()
316 PP.Diag(FirstToken.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma()
324 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma()
330 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_fenv_access); in HandlePragma()
342 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_fenv_access); in HandlePragma()
346 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma()
353 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
770 PP.Diag(Tok, diag::warn_pragma_debug_missing_argument) << "dump"; in HandlePragmaDump()
773 PP.Diag(Tok, diag::warn_pragma_debug_unexpected_argument); in HandlePragmaDump()
[all …]
H A DParseOpenMP.cpp268 P.Diag(Tok.getLocation(), diag::err_omp_expected_reduction_identifier); in parseOpenMPReductionId()
313 Diag(Tok.getLocation(), diag::err_expected_type); in ParseOpenMPDeclareReductionDirective()
345 Diag(Tok.getLocation(), diag::err_expected_type); in ParseOpenMPDeclareReductionDirective()
364 Diag(Tok.getLocation(), diag::err_expected_expression); in ParseOpenMPDeclareReductionDirective()
402 Diag(Tok.getLocation(), diag::err_expected) << "'initializer'"; in ParseOpenMPDeclareReductionDirective()
517 Diag(Tok, diag::warn_cxx98_compat_generalized_initializer_lists); in ParseOpenMPReductionInitializerForDecl()
556 Diag(Tok.getLocation(), diag::err_omp_mapper_illegal_identifier); in ParseOpenMPDeclareMapperDirective()
628 Diag(Tok, diag::err_omp_expected_clause) in ParseOpenMPDeclareMapperDirective()
659 Diag(Tok.getLocation(), diag::err_omp_mapper_expected_declarator); in parseOpenMPDeclareMapperVarDecl()
738 P.Diag(Tok, diag::err_omp_declare_simd_inbranch_notinbranch) in parseDeclareSimdClauses()
[all …]
H A DParseDeclCXX.cpp93 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17 in ParseNamespace()
135 Diag(attrLoc, diag::err_unexpected_nested_namespace_attribute); in ParseNamespace()
139 Diag(Tok, diag::err_expected) << tok::identifier; in ParseNamespace()
145 Diag(ExtraNSs.front().NamespaceLoc, in ParseNamespace()
153 Diag(attrLoc, diag::err_unexpected_namespace_attributes_alias); in ParseNamespace()
155 Diag(InlineLoc, diag::err_inline_namespace_alias) in ParseNamespace()
164 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseNamespace()
166 Diag(Tok, diag::err_expected_either) << tok::identifier << tok::l_brace; in ParseNamespace()
173 Diag(T.getOpenLocation(), diag::err_namespace_nonnamespace_scope); in ParseNamespace()
181 Diag(InlineLoc, diag::err_inline_nested_namespace_definition); in ParseNamespace()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnosticError.h23 DiagnosticError(PartialDiagnosticAt Diag) : Diag(std::move(Diag)) {} in DiagnosticError() argument
27 PartialDiagnosticAt &getDiagnostic() { return Diag; } in getDiagnostic()
28 const PartialDiagnosticAt &getDiagnostic() const { return Diag; } in getDiagnostic()
32 static llvm::Error create(SourceLocation Loc, PartialDiagnostic Diag) { in create() argument
34 PartialDiagnosticAt(Loc, std::move(Diag))); in create()
56 PartialDiagnosticAt Diag; variable
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DState.cpp28 if (getEvalStatus().Diag) in FFDiag()
36 if (getEvalStatus().Diag) in FFDiag()
46 if (!getEvalStatus().Diag || !getEvalStatus().Diag->empty()) { in CCEDiag()
71 getEvalStatus().Diag->insert(getEvalStatus().Diag->end(), Diags.begin(), in addNotes()
83 getEvalStatus().Diag->push_back(std::make_pair(Loc, PD)); in addDiag()
84 return getEvalStatus().Diag->back().second; in addDiag()
90 if (EvalStatus.Diag) { in diag()
104 EvalStatus.Diag->clear(); in diag()
105 EvalStatus.Diag->reserve(1 + ExtraNotes + CallStackNotes); in diag()
110 return OptionalDiagnostic(&(*EvalStatus.Diag)[0].second); in diag()

123456789