Searched refs:DiagID (Results 1 - 25 of 99) sorted by relevance

1234

/freebsd-current/contrib/llvm-project/clang/lib/Basic/
H A DDiagnosticIDs.cpp112 uint16_t DiagID; member in struct:__anon366::StaticDiagInfoRec
143 return DiagID < RHS.DiagID;
208 /// GetDiagInfo - Return the StaticDiagInfoRec entry for the specified DiagID,
210 static const StaticDiagInfoRec *GetDiagInfo(unsigned DiagID) { argument
213 if (DiagID >= DIAG_UPPER_LIMIT || DiagID <= DIAG_START_COMMON)
225 unsigned ID = DiagID - DIAG_START_COMMON - 1;
227 if (DiagID > DIAG_START_##NAME) { \
254 if (Found->DiagID !
[all...]
H A DSourceMgrAdapter.cpp101 unsigned DiagID; local
104 DiagID = ErrorDiagID;
108 DiagID = WarningDiagID;
115 DiagID = NoteDiagID;
120 DiagnosticBuilder Builder = Diagnostics.Report(Loc, DiagID) << Message;
/freebsd-current/contrib/llvm-project/clang/include/clang/Basic/
H A DPartialDiagnostic.h38 mutable unsigned DiagID = 0; member in class:clang::PartialDiagnostic
46 PartialDiagnostic(unsigned DiagID, DiagStorageAllocator &Allocator_) argument
47 : StreamingDiagnostic(Allocator_), DiagID(DiagID) {}
50 : StreamingDiagnostic(), DiagID(Other.DiagID) {
75 PartialDiagnostic(PartialDiagnostic &&Other) : DiagID(Other.DiagID) {
83 : DiagID(Other.DiagID) {
[all...]
H A DDiagnosticIDs.h208 StringRef getDescription(unsigned DiagID) const;
215 static bool isBuiltinWarningOrExtension(unsigned DiagID);
219 static bool isDefaultMappingAsError(unsigned DiagID);
222 static DiagnosticMapping getDefaultMapping(unsigned DiagID);
225 static bool isBuiltinNote(unsigned DiagID);
229 static bool isBuiltinExtensionDiag(unsigned DiagID) { argument
231 return isBuiltinExtensionDiag(DiagID, ignored);
241 static bool isBuiltinExtensionDiag(unsigned DiagID, bool &EnabledByDefault);
257 static std::optional<diag::Group> getGroupForDiag(unsigned DiagID);
263 static StringRef getWarningOptionForDiag(unsigned DiagID);
[all...]
H A DDiagnostic.h871 /// and mapped to a unique DiagID.
916 bool isIgnored(unsigned DiagID, SourceLocation Loc) const { argument
917 return Diags->getDiagnosticSeverity(DiagID, Loc, *this) ==
931 Level getDiagnosticLevel(unsigned DiagID, SourceLocation Loc) const { argument
932 return (Level)Diags->getDiagnosticLevel(DiagID, Loc, *this);
940 /// \param DiagID A member of the @c diag::kind enum.
943 inline DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID);
944 inline DiagnosticBuilder Report(unsigned DiagID);
965 /// \param DiagID The ID of the diagnostic being delayed.
978 void SetDelayedDiagnostic(unsigned DiagID, StringRe
1547 Report(SourceLocation Loc, unsigned DiagID) argument
1560 Report(unsigned DiagID) argument
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRefactoringRuleContext.h57 llvm::Error createDiagnosticError(SourceLocation Loc, unsigned DiagID) { argument
58 return DiagnosticError::create(Loc, PartialDiagnostic(DiagID, DiagStorage));
61 llvm::Error createDiagnosticError(unsigned DiagID) { argument
62 return createDiagnosticError(SourceLocation(), DiagID);
/freebsd-current/contrib/llvm-project/clang/lib/Sema/
H A DDeclSpec.cpp487 unsigned &DiagID,
491 DiagID = diag::err_invalid_decl_spec_combination;
493 DiagID = IsExtension ? diag::ext_warn_duplicate_declspec :
640 unsigned &DiagID,
657 DiagID = diag::err_opencl_unknown_type_specifier;
664 DiagID = diag::err_opencl_unknown_type_specifier;
677 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID, Policy);
680 PrevSpec, DiagID, Policy);
692 return BadSpecifier(SC, (SCS)StorageClassSpec, PrevSpec, DiagID);
702 unsigned &DiagID) {
485 BadSpecifier(T TNew, T TPrev, const char *&PrevSpec, unsigned &DiagID, bool IsExtension = true) argument
638 SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
700 SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
714 SetTypeSpecWidth(TypeSpecifierWidth W, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
731 SetTypeSpecComplex(TSC C, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
741 SetTypeSpecSign(TypeSpecifierSign S, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
750 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, ParsedType Rep, const PrintingPolicy &Policy) argument
758 SetTypeSpecType(TST T, SourceLocation TagKwLoc, SourceLocation TagNameLoc, const char *&PrevSpec, unsigned &DiagID, ParsedType Rep, const PrintingPolicy &Policy) argument
781 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Expr *Rep, const PrintingPolicy &Policy) argument
803 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Decl *Rep, bool Owned, const PrintingPolicy &Policy) argument
811 SetTypeSpecType(TST T, SourceLocation TagKwLoc, SourceLocation TagNameLoc, const char *&PrevSpec, unsigned &DiagID, Decl *Rep, bool Owned, const PrintingPolicy &Policy) argument
835 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, TemplateIdAnnotation *Rep, const PrintingPolicy &Policy) argument
844 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
868 SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
881 SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
896 SetTypePipe(bool isPipe, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
913 SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
930 SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
955 SetBitIntType(SourceLocation KWLoc, Expr *BitsExpr, const char *&PrevSpec, unsigned &DiagID, const PrintingPolicy &Policy) argument
976 SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const LangOptions &Lang) argument
1007 setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
1021 setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
1033 setFunctionSpecVirtual(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
1048 setFunctionSpecExplicit(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, ExplicitSpecifier ExplicitSpec, SourceLocation CloseParenLoc) argument
1067 setFunctionSpecNoreturn(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
1082 SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
1100 setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
1112 SetConstexprSpec(ConstexprSpecKind ConstexprKind, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
[all...]
H A DSemaExceptionSpec.cpp164 unsigned DiagID = diag::err_incomplete_in_exception_spec; local
167 DiagID = diag::ext_incomplete_in_exception_spec;
172 RequireCompleteType(Range.getBegin(), PointeeT, DiagID, Kind, Range))
271 Sema &S, const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID,
310 unsigned DiagID = diag::err_mismatched_exception_spec; local
313 DiagID = diag::ext_mismatched_exception_spec;
328 *this, PDiag(DiagID), PDiag(diag::note_previous_declaration),
400 DiagID = diag::ext_missing_exception_specification;
406 DiagID = diag::ext_missing_exception_specification;
415 DiagID
503 unsigned DiagID = diag::err_mismatched_exception_spec; local
522 CheckEquivalentExceptionSpecImpl( Sema &S, const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID, const FunctionProtoType *Old, SourceLocation OldLoc, const FunctionProtoType *New, SourceLocation NewLoc, bool *MissingExceptionSpecification, bool *MissingEmptyExceptionSpecification, bool AllowNoexceptAllMatchWithNoSpec, bool IsOperatorNew) argument
673 CheckEquivalentExceptionSpec(const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID, const FunctionProtoType *Old, SourceLocation OldLoc, const FunctionProtoType *New, SourceLocation NewLoc) argument
772 CheckExceptionSpecSubset( const PartialDiagnostic &DiagID, const PartialDiagnostic &NestedDiagID, const PartialDiagnostic &NoteID, const PartialDiagnostic &NoThrowDiagID, const FunctionProtoType *Superset, bool SkipSupersetFirstParameter, SourceLocation SuperLoc, const FunctionProtoType *Subset, bool SkipSubsetFirstParameter, SourceLocation SubLoc) argument
877 CheckSpecForTypesEquivalent(Sema &S, const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID, QualType Target, SourceLocation TargetLoc, QualType Source, SourceLocation SourceLoc) argument
897 CheckParamExceptionSpec( const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID, const FunctionProtoType *Target, bool SkipTargetFirstParameter, SourceLocation TargetLoc, const FunctionProtoType *Source, bool SkipSourceFirstParameter, SourceLocation SourceLoc) argument
940 unsigned DiagID = diag::err_incompatible_exception_specs; local
991 unsigned DiagID = diag::err_override_exception_spec; local
[all...]
H A DSemaSYCL.cpp22 unsigned DiagID) {
33 return SemaDiagnosticBuilder(DiagKind, Loc, DiagID, FD, *this);
21 SYCLDiagIfDeviceCode(SourceLocation Loc, unsigned DiagID) argument
H A DAnalysisBasedWarnings.cpp165 unsigned DiagID = isAlwaysTrue variable
169 S.Diag(B->getExprLoc(), DiagID) << DiagRange;
702 auto EmitDiag = [&](SourceLocation Loc, unsigned DiagID) {
704 S.Diag(Loc, DiagID) << FSI->CoroutinePromise->getType();
706 S.Diag(Loc, DiagID);
1773 return llvm::any_of(DiagIDs, [&Diags, At](unsigned DiagID) {
1774 return !Diags.isIgnored(DiagID, At);
1917 unsigned DiagID = 0;
1920 DiagID = diag::warn_lock_some_predecessors;
1923 DiagID
[all...]
H A DSema.cpp1526 void Sema::EmitCurrentDiagnostic(unsigned DiagID) { argument
1527 // FIXME: It doesn't make sense to me that DiagID is an incoming argument here
1620 if (!DiagnosticIDs::isBuiltinNote(DiagID))
1858 unsigned DiagID,
1861 : S(S), Loc(Loc), DiagID(DiagID), Fn(Fn),
1869 ImmediateDiagBuilder(S.Diags.Report(Loc, DiagID), S, DiagID));
1875 Diags.emplace_back(Loc, S.PDiag(DiagID));
1881 : S(D.S), Loc(D.Loc), DiagID(
1857 SemaDiagnosticBuilder(Kind K, SourceLocation Loc, unsigned DiagID, const FunctionDecl *Fn, Sema &S) argument
1906 targetDiag(SourceLocation Loc, unsigned DiagID, const FunctionDecl *FD) argument
1923 Diag(SourceLocation Loc, unsigned DiagID, bool DeferHint) argument
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenAction.cpp454 #define ComputeDiagID(Severity, GroupName, DiagID) \
458 DiagID = diag::err_fe_##GroupName; \
461 DiagID = diag::warn_fe_##GroupName; \
467 DiagID = diag::note_fe_##GroupName; \
472 #define ComputeDiagRemarkID(Severity, GroupName, DiagID) \
476 DiagID = diag::err_fe_##GroupName; \
479 DiagID = diag::warn_fe_##GroupName; \
482 DiagID = diag::remark_fe_##GroupName; \
485 DiagID = diag::note_fe_##GroupName; \
493 unsigned DiagID; local
550 unsigned DiagID; local
595 unsigned DiagID = diag::err_fe_backend_resource_limit; local
693 EmitOptimizationMessage( const llvm::DiagnosticInfoOptimizationBase &D, unsigned DiagID) argument
830 unsigned DiagID = diag::err_fe_inline_asm; local
1144 unsigned DiagID = local
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/AST/
H A DCommentParser.h47 DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) { argument
48 return Diags.Report(Loc, DiagID);
H A DASTStructuralEquivalence.h86 DiagnosticBuilder Diag1(SourceLocation Loc, unsigned DiagID);
87 DiagnosticBuilder Diag2(SourceLocation Loc, unsigned DiagID);
H A DODRDiagsEmitter.h132 DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) const {
133 return Diags.Report(Loc, DiagID);
/freebsd-current/contrib/llvm-project/clang/lib/ARCMigrate/
H A DARCMT.cpp181 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
183 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(),
220 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
222 new DiagnosticsEngine(DiagID, diagOpts, &printer,
260 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
262 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(),
369 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
371 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(),
406 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
408 new DiagnosticsEngine(DiagID, ne
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp2223 unsigned DiagID; local
2227 bool Fixit = !DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID);
2865 unsigned DiagID; local
2866 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T,
3002 unsigned DiagID; local
3003 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T,
3352 unsigned DiagID = 0; local
3381 isInvalid = DS.SetTypeSpecType(ImageTypeSpec, Loc, PrevSpec, DiagID, Policy);
3573 PrevSpec, DiagID, T, Policy);
3649 DiagID, TypeRe
5155 unsigned DiagID; local
6025 unsigned DiagID = 0; local
7900 unsigned DiagID; local
7925 unsigned DiagID; local
7963 unsigned DiagID; local
8005 TryAltiVecTokenOutOfLine(DeclSpec &DS, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, bool &isInvalid) argument
[all...]
H A DParseExprCXX.cpp524 unsigned DiagID = diag::err_missing_dependent_template_keyword; local
526 DiagID = diag::warn_missing_dependent_template_keyword;
528 Diag(Tok.getLocation(), DiagID)
1084 unsigned DiagID = 0;
1086 DiagID = diag::err_lambda_capture_misplaced_ellipsis;
1096 DiagID = diag::err_lambda_capture_multiple_ellipses;
1098 if (DiagID) {
1112 auto &&D = Diag(DiagLoc, DiagID);
1113 if (DiagID == diag::err_lambda_capture_misplaced_ellipsis) {
1212 unsigned DiagID
[all...]
H A DParser.cpp80 DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) { argument
81 return Diags.Report(Loc, DiagID);
84 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) { argument
85 return Diag(Tok.getLocation(), DiagID);
117 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, argument
128 DiagnosticBuilder DB = Diag(Loc, DiagID);
131 if (DiagID == diag::err_expected)
133 else if (DiagID == diag::err_expected_after)
151 ? Diag(EndLoc, DiagID) << FixItHint::CreateInsertion(EndLoc, Spelling)
152 : Diag(Tok, DiagID);
163 ExpectAndConsumeSemi(unsigned DiagID, StringRef TokenUsed) argument
1218 unsigned DiagID; local
1303 unsigned DiagID; local
2036 unsigned DiagID = diag::err_expected_qualified_after_typename; local
2751 expectAndConsume(unsigned DiagID, const char *Msg, tok::TokenKind SkipToTok) argument
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h680 /// already set), they return true and set PrevSpec and DiagID
682 /// Diag(Loc, DiagID) << PrevSpec;
688 const char *&PrevSpec, unsigned &DiagID,
691 const char *&PrevSpec, unsigned &DiagID);
693 const char *&PrevSpec, unsigned &DiagID,
696 unsigned &DiagID);
698 const char *&PrevSpec, unsigned &DiagID);
700 unsigned &DiagID, const PrintingPolicy &Policy);
702 unsigned &DiagID, ParsedType Rep,
705 unsigned &DiagID, TypeResul
704 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, TypeResult Rep, const PrintingPolicy &Policy) argument
[all...]
H A DDelayedDiagnostic.h103 PartialDiagnostic &setDiag(unsigned DiagID) { argument
105 assert(DiagID && "creating null diagnostic");
106 Diag.Reset(DiagID);
/freebsd-current/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h129 void Diag(SourceLocation Loc, unsigned DiagID);
/freebsd-current/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp1491 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error, local
1493 Diags.Report(Loc, DiagID);
1583 unsigned DiagID = Diags.getCustomDiagID( local
1585 Diags.Report(E->getExprLoc(), DiagID) << E->getStmtClassName()
2011 unsigned DiagID = Diags.getCustomDiagID(
2013 Diags.Report(DiagID);
2639 unsigned DiagID = Diags.getCustomDiagID(
2641 Diags.Report(Range.getBegin(), DiagID)
2954 unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
2956 Diags.Report(Range.getBegin(), DiagID)
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Frontend/
H A DChainedIncludesSource.cpp121 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
123 new DiagnosticsEngine(DiagID, &CI.getDiagnosticOpts(), DiagClient));
/freebsd-current/contrib/llvm-project/clang/tools/driver/
H A Dcc1gen_reproducer_main.cpp122 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
123 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new IgnoringDiagConsumer());

Completed in 329 milliseconds

1234