Home
last modified time | relevance | path

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

12345678910

/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() argument
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.cpp96 S.Diag(property->getLocation(), in checkPropertyDeclWithOwnership()
184 Diag(AtLoc, diag::err_ptrauth_qualifier_invalid) << T << 2; in ActOnProperty()
399 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute) in checkAtomicPropertyMismatch()
402 S.Diag(OldProperty->getLocation(), diag::note_property_declare); in checkAtomicPropertyMismatch()
420 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension()
435 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
436 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
456 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
458 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
466 Diag(AtLoc, diag::warn_property_redecl_getter_mismatch) 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()
110 Diag(AL.getLoc(), diag::warn_duplicate_attribute) << AL; in handleBridge()
146 S.Diag(AL.getLoc(), diag::err_attr_swift_error_no_error_parameter) in handleError()
159 S.Diag(AL.getLoc(), diag::err_attr_swift_error_return_type) in handleError()
170 S.Diag(AL.getLoc(), diag::err_attr_swift_error_return_type) in handleError()
183 Diag(AL.getLoc(), diag::warn_attribute_type_not_supported) in handleError()
219 S.Diag(AsyncAttr->getLocation(), in checkSwiftAsyncErrorBlock()
243 S.Diag(ErrorAttr->getLocation(), in checkSwiftAsyncErrorBlock()
254 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.cpp38 operator<<(const SemaBase::SemaDiagnosticBuilder &Diag, in operator <<() argument
40 if (Diag.ImmediateDiag) in operator <<()
41 PD.Emit(*Diag.ImmediateDiag); in operator <<()
42 else if (Diag.PartialDiagId) in operator <<()
43 Diag.S.DeviceDeferredDiags[Diag.Fn][*Diag.PartialDiagId].second = PD; in operator <<()
44 return Diag; in operator <<()
61 Sema::SemaDiagnosticBuilder SemaBase::Diag(SourceLocation Loc, unsigned DiagID, in Diag() function in clang::SemaBase
85 Sema::SemaDiagnosticBuilder SemaBase::Diag(SourceLocation Loc, in Diag() function in clang::SemaBase
88 return Diag(Loc, PD.getDiagID(), DeferHint) << PD; in Diag()
94 return Diag(Loc, in DiagCompat()
H A DSemaDeclAttr.cpp106 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) in checkPositiveIntArgument()
123 Diag(E->getBeginLoc(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
138 Diag(Loc->getLoc(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
155 Diag(ArgExpr->getBeginLoc(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
226 S.Diag(AL.getLoc(), diag::warn_thread_attribute_decl_not_pointer) << AL << QT; in threadSafetyCheckIsPointer()
357 S.Diag(AL.getLoc(), in checkAttrArgsAreCapabilityObjs()
361 S.Diag(AL.getLoc(), diag::warn_thread_attribute_not_on_non_static_member) in checkAttrArgsAreCapabilityObjs()
386 S.Diag(AL.getLoc(), diag::warn_thread_attribute_ignored) << AL; in checkAttrArgsAreCapabilityObjs()
414 S.Diag(AL.getLoc(), in checkAttrArgsAreCapabilityObjs()
428 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()
255 return S.Diag(Loc, diag::err_invalid_module_name) << II; in DiagReservedModuleName()
257 S.Diag(Loc, diag::warn_reserved_module_name) << II; in DiagReservedModuleName()
306 Diag(ModuleLoc, diag::err_module_interface_implementation_mismatch) in ActOnModuleDecl()
312 Diag(ModuleLoc, diag::err_module_decl_in_module_map_module); in ActOnModuleDecl()
316 Diag(ModuleLoc, diag::err_module_decl_in_header_unit); in ActOnModuleDecl()
327 Diag(ModuleLoc, diag::err_module_redeclaration); in ActOnModuleDecl()
[all …]
H A DSemaOpenACCClause.cpp127 S.Diag(NewClause.getBeginLoc(), diag::err_acc_clause_after_device_type) in checkValidAfterDeviceType()
130 S.Diag(DeviceTypeClause.getBeginLoc(), in checkValidAfterDeviceType()
166 SemaRef.Diag(Clause.getBeginLoc(), diag::err_acc_clause_cannot_combine) in DiagGangWorkerVectorSeqConflict()
169 SemaRef.Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here) in DiagGangWorkerVectorSeqConflict()
187 SemaRef.Diag(Clause.getLParenLoc(), diag::err_acc_invalid_modifier) in CheckModifierList()
270 SemaRef.Diag(Clause.getBeginLoc(), diag::err_acc_clause_cannot_combine) in CheckValidRoutineNewClauseHelper()
274 SemaRef.Diag((*ExistingProhibitedClause)->getBeginLoc(), in CheckValidRoutineNewClauseHelper()
289 SemaRef.Diag( in CheckValidRoutineNewClauseHelper()
293 SemaRef.Diag((*BeforeDeviceType)->getBeginLoc(), in CheckValidRoutineNewClauseHelper()
296 SemaRef.Diag((*FirstDeviceType)->getBeginLoc(), in CheckValidRoutineNewClauseHelper()
[all …]
H A DSemaOpenACC.cpp54 return S.Diag(StartLoc, diag::err_acc_construct_appertainment) << K; in diagnoseConstructAppertainment()
433 return S.Diag(Loc, diag::err_acc_int_expr_requires_integer) in ActOnIntExpr()
439 return S.Diag(Loc, diag::err_acc_int_expr_incomplete_class_type) in ActOnIntExpr()
446 return S.Diag(Loc, diag::err_acc_int_expr_explicit_conversion) in ActOnIntExpr()
453 return S.Diag(Conv->getLocation(), diag::note_acc_int_expr_conversion) in ActOnIntExpr()
459 return S.Diag(Loc, diag::err_acc_int_expr_multiple_conversions) << T; in ActOnIntExpr()
464 return S.Diag(Conv->getLocation(), diag::note_acc_int_expr_conversion) in ActOnIntExpr()
504 Diag(VarExpr->getExprLoc(), diag::err_array_section_use) << /*OpenACC=*/0; in CheckVarIsPointerType()
505 Diag(VarExpr->getExprLoc(), diag::note_acc_expected_pointer_var); in CheckVarIsPointerType()
517 return Diag(VarExpr->getExprLoc(), diag::err_acc_var_not_pointer_type) in CheckVarIsPointerType()
[all …]
H A DSemaDecl.cpp150 Diag(NameLoc, in getTypeDeclType()
253 S.Diag(NameLoc, diag::ext_found_in_dependent_base) << &II; in recoverFromTypeInKnownDependentBase()
623 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II; in ActOnMSVCUnknownTypeName()
632 Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II in ActOnMSVCUnknownTypeName()
782 Diag(IILoc, IsTemplateName ? diag::err_no_template in DiagnoseUnknownTypeName()
786 Diag(IILoc, IsTemplateName ? diag::err_no_member_template in DiagnoseUnknownTypeName()
797 Diag(SS->getRange().getBegin(), DiagID) in DiagnoseUnknownTypeName()
857 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag()
863 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
1658 Diag(New->getLocation(), diag::err_mismatched_owning_module) in CheckRedeclarationModuleOwnership()
[all …]
H A DSemaSYCL.cpp175 Diag(FT->getLocation(), diag::warn_sycl_kernel_num_of_template_params); in handleKernelAttr()
183 Diag(FT->getLocation(), in handleKernelAttr()
191 Diag(FT->getLocation(), diag::warn_sycl_kernel_num_of_function_params); in handleKernelAttr()
198 Diag(FT->getLocation(), diag::warn_sycl_kernel_return_type); in handleKernelAttr()
243 S.Diag(Loc, diag::warn_sycl_kernel_name_not_a_class_type) << KernelName; in CheckSYCLKernelName()
246 S.Diag(DeclTypeLoc, diag::note_entity_declared_at) << KernelName; in CheckSYCLKernelName()
264 Diag(SAI->getLocation(), diag::err_sycl_entry_point_invalid_redeclaration) in CheckSYCLEntryPointFunctionDecl()
266 Diag(SKEPAttr->getLocation(), diag::note_previous_attribute); in CheckSYCLEntryPointFunctionDecl()
269 Diag(SAI->getLocation(), in CheckSYCLEntryPointFunctionDecl()
271 Diag(SKEPAttr->getLocation(), diag::note_previous_attribute); in CheckSYCLEntryPointFunctionDecl()
[all …]
H A DSemaObjC.cpp49 return StmtError(Diag((*DS->decl_begin())->getLocation(), in ActOnObjCForCollectionStmt()
62 Diag(D->getLocation(), diag::err_non_local_variable_decl_in_for)); in ActOnObjCForCollectionStmt()
86 Diag(Loc, diag::warn_auto_var_is_id) << D->getDeclName(); in ActOnObjCForCollectionStmt()
94 Diag(First->getBeginLoc(), diag::err_selector_element_not_lvalue) in ActOnObjCForCollectionStmt()
99 Diag(ForLoc, diag::err_selector_element_const_type) in ActOnObjCForCollectionStmt()
105 return StmtError(Diag(ForLoc, diag::err_selector_element_type) in ActOnObjCForCollectionStmt()
142 return Diag(forLoc, diag::err_collection_expr_type) in CheckObjCForCollectionOperand()
182 Diag(forLoc, diag::warn_collection_expr_type) in CheckObjCForCollectionOperand()
223 Diag(AtLoc, diag::err_objc_exceptions_disabled) << "@try"; in ActOnObjCAtTryStmt()
228 Diag(AtLoc, diag::err_mixing_cxx_try_seh_try) << 1; in ActOnObjCAtTryStmt()
[all …]
H A DSemaAttr.cpp361 Diag(PragmaLoc, diag::err_pragma_options_align_mac68k_target_unsupported); in ActOnPragmaOptionsAlign()
376 Diag(PragmaLoc, diag::warn_pragma_options_align_reset_failed) in ActOnPragmaOptionsAlign()
424 Diag(PragmaLoc, diag::err_pragma_section_invalid_for_target) in ActOnPragmaClangSection()
443 Diag(PragmaLoc, diag::err_pragma_pack_identifer_not_supported); in ActOnPragmaPack()
461 Diag(PragmaLoc, diag::warn_pragma_pack_invalid_alignment); in ActOnPragmaPack()
467 Diag(PragmaLoc, diag::err_pragma_pack_invalid_alignment); in ActOnPragmaPack()
481 Diag(PragmaLoc, diag::warn_pragma_pack_show) << "mac68k"; in ActOnPragmaPack()
483 Diag(PragmaLoc, diag::warn_pragma_pack_show) << AlignmentVal; in ActOnPragmaPack()
490 Diag(PragmaLoc, diag::warn_pragma_pack_pop_identifier_and_alignment); in ActOnPragmaPack()
494 Diag(PragmaLoc, diag::warn_pragma_pop_failed) << "pack" << "stack empty"; in ActOnPragmaPack()
[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()
159 Diag(FD->getBeginLoc(), DiagID) in CheckCountedByAttrOnField()
168 Diag(E->getBeginLoc(), diag::err_count_attr_argument_not_integer) in CheckCountedByAttrOnField()
175 Diag(E->getBeginLoc(), in CheckCountedByAttrOnField()
187 Diag(E->getBeginLoc(), diag::err_count_attr_must_be_in_structure) in CheckCountedByAttrOnField()
190 Diag(CountDecl->getBeginLoc(), in CheckCountedByAttrOnField()
198 Diag(CountFD->getBeginLoc(), diag::err_count_attr_refer_to_union) in CheckCountedByAttrOnField()
[all …]
H A DSemaDeclObjC.cpp111 Diag(loc, diag::err_arc_init_method_unrelated_result_type); in checkInitMethod()
121 S.Diag(NewD->getLocation(), diag::warn_overriding_method_missing_noescape); in diagnoseNoescape()
122 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape()
135 S.Diag(CD->getLocation(), diag::note_cat_conform_to_noescape_prot) in diagnoseNoescape()
167 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
173 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
180 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
185 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
191 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
196 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()
69 SemaRef.Diag(ArgExpr->getBeginLoc(), in BuiltinWasmRefIsNullExtern()
162 return Diag(NewElemArg->getBeginLoc(), in BuiltinWasmTableGrow()
189 return Diag(NewElemArg->getBeginLoc(), in BuiltinWasmTableFill()
217 return Diag(TableYArg->getBeginLoc(), in BuiltinWasmTableCopy()
265 Diag(ExistingAttr->getLocation(), diag::warn_mismatched_import) in mergeImportModuleAttr()
267 Diag(AL.getLoc(), diag::note_previous_attribute); in mergeImportModuleAttr()
271 Diag(AL.getLoc(), diag::warn_import_on_definition) << 0; in mergeImportModuleAttr()
285 Diag(ExistingAttr->getLocation(), diag::warn_mismatched_import) in mergeImportNameAttr()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPragma.cpp115 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
214 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
221 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
235 Diag(Tok, diag::err_invalid_string_udl); in Handle_Pragma()
249 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
265 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
365 Diag(PragmaLoc, diag::err__Pragma_malformed); in HandleMicrosoft__pragma()
383 Diag(PragmaLoc, diag::err_unterminated___pragma); in HandleMicrosoft__pragma()
419 Diag(OnceTok, diag::pp_pragma_once_in_main_file); in HandlePragmaOnce()
456 Diag(Tok, diag::err_pp_invalid_poison); in HandlePragmaPoison()
[all …]
H A DPPDirectives.cpp346 return Diag(MacroNameTok, diag::err_pp_missing_macro_name); in CheckMacroName()
350 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); in CheckMacroName()
355 Diag(MacroNameTok, getLangOpts().MicrosoftExt in CheckMacroName()
365 return Diag(MacroNameTok, diag::err_defined_macro_name); in CheckMacroName()
394 Diag(MacroNameTok, diag::warn_pp_macro_is_reserved_id); in CheckMacroName()
396 Diag(MacroNameTok, diag::warn_pp_macro_is_reserved_attribute_id) in CheckMacroName()
469 Diag(Tmp, diag::ext_pp_extra_tokens_at_eol) << DirType << Hint; in CheckEndOfDirective()
494 Diag(Tok, diag::warn_pp_invalid_directive) << 1 << SuggValue << Hint; in SuggestTypoedDirective()
724 Diag(Tok, diag::pp_err_else_after_else); in SkipExcludedConditionalBlock()
752 Diag(Tok, diag::pp_err_elif_after_else) << PED_Elif; in SkipExcludedConditionalBlock()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaBase.h79 operator<<(const ImmediateDiagBuilder &Diag, const T &Value) {
80 const DiagnosticBuilder &BaseDiag = Diag;
82 return Diag;
156 operator<<(const SemaDiagnosticBuilder &Diag, const T &Value) {
157 if (Diag.ImmediateDiag)
158 *Diag.ImmediateDiag << Value;
159 else if (Diag.PartialDiagId)
160 Diag.getDeviceDeferredDiags()[Diag.Fn][*Diag.PartialDiagId].second
162 return Diag;
179 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/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/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()
310 PP.Diag(FirstToken.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma()
318 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma()
324 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_fenv_access); in HandlePragma()
336 PP.Diag(Tok.getLocation(), diag::warn_pragma_ms_fenv_access); in HandlePragma()
340 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma()
347 PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol) in HandlePragma()
758 PP.Diag(Tok, diag::warn_pragma_debug_missing_argument) << "dump"; in HandlePragmaDump()
761 PP.Diag(Tok, diag::warn_pragma_debug_unexpected_argument); in HandlePragmaDump()
[all …]
H A DParseDeclCXX.cpp60 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17 in ParseNamespace()
100 Diag(attrLoc, diag::err_unexpected_nested_namespace_attribute); in ParseNamespace()
104 Diag(Tok, diag::err_expected) << tok::identifier; in ParseNamespace()
110 Diag(ExtraNSs.front().NamespaceLoc, in ParseNamespace()
118 Diag(attrLoc, diag::err_unexpected_namespace_attributes_alias); in ParseNamespace()
120 Diag(InlineLoc, diag::err_inline_namespace_alias) in ParseNamespace()
129 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseNamespace()
131 Diag(Tok, diag::err_expected_either) << tok::identifier << tok::l_brace; in ParseNamespace()
138 Diag(T.getOpenLocation(), diag::err_namespace_nonnamespace_scope); in ParseNamespace()
146 Diag(InlineLoc, diag::err_inline_nested_namespace_definition); in ParseNamespace()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
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 llvm::append_range(*getEvalStatus().Diag, Diags); in addNotes()
81 getEvalStatus().Diag->push_back(std::make_pair(Loc, PD)); in addDiag()
82 return getEvalStatus().Diag->back().second; in addDiag()
88 if (EvalStatus.Diag) { in diag()
103 EvalStatus.Diag->clear(); in diag()
104 EvalStatus.Diag->reserve(1 + ExtraNotes + CallStackNotes); in diag()
109 return OptionalDiagnostic(&(*EvalStatus.Diag)[0].second); in diag()

12345678910