Home
last modified time | relevance | path

Searched refs:DiagID (Results 1 – 25 of 61) sorted by relevance

123

/external/clang/lib/Basic/
DDiagnosticIDs.cpp43 unsigned short DiagID; member
82 return DiagID < RHS.DiagID; in operator <()
88 unsigned short DiagID; member
151 static const StaticDiagInfoRec *GetDiagInfo(unsigned DiagID) { in GetDiagInfo() argument
157 assert(StaticDiagInfo[i-1].DiagID != StaticDiagInfo[i].DiagID && in GetDiagInfo()
169 StaticDiagInfoRec Find = { DiagID, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0 }; in GetDiagInfo()
174 Found->DiagID != DiagID) in GetDiagInfo()
180 static unsigned GetDefaultDiagMapping(unsigned DiagID) { in GetDefaultDiagMapping() argument
181 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID)) in GetDefaultDiagMapping()
189 llvm::StringRef DiagnosticIDs::getWarningOptionForDiag(unsigned DiagID) { in getWarningOptionForDiag() argument
[all …]
DDiagnostic.cpp115 void Diagnostic::SetDelayedDiagnostic(unsigned DiagID, llvm::StringRef Arg1, in SetDelayedDiagnostic() argument
120 DelayedDiagID = DiagID; in SetDelayedDiagnostic()
274 unsigned DiagID = DiagObj->CurDiagID; in Emit() local
278 if (DiagObj->DelayedDiagID && DiagObj->DelayedDiagID != DiagID) in Emit()
/external/clang/include/clang/Basic/
DDiagnosticIDs.h104 llvm::StringRef getDescription(unsigned DiagID) const;
110 static bool isBuiltinWarningOrExtension(unsigned DiagID);
114 static bool isBuiltinNote(unsigned DiagID);
119 static bool isBuiltinExtensionDiag(unsigned DiagID) { in isBuiltinExtensionDiag() argument
121 return isBuiltinExtensionDiag(DiagID, ignored); in isBuiltinExtensionDiag()
129 static bool isBuiltinExtensionDiag(unsigned DiagID, bool &EnabledByDefault);
135 static llvm::StringRef getWarningOptionForDiag(unsigned DiagID);
139 static unsigned getCategoryNumberForDiag(unsigned DiagID);
182 static SFINAEResponse getDiagnosticSFINAEResponse(unsigned DiagID);
185 static llvm::StringRef getName(unsigned DiagID);
[all …]
DPartialDiagnostic.h116 mutable unsigned DiagID;
173 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) in PartialDiagnostic() argument
174 : DiagID(DiagID), DiagStorage(0), Allocator(&Allocator) { } in PartialDiagnostic()
177 : DiagID(Other.DiagID), DiagStorage(0), Allocator(Other.Allocator) in PartialDiagnostic()
186 : DiagID(Other.DiagID), DiagStorage(DiagStorage), in PartialDiagnostic()
194 : DiagID(Other.getID()), DiagStorage(0), Allocator(&Allocator) in PartialDiagnostic()
214 DiagID = Other.DiagID;
231 unsigned getDiagID() const { return DiagID; } in getDiagID()
279 void Reset(unsigned DiagID = 0) {
280 this->DiagID = DiagID;
DDiagnostic.h497 Level getDiagnosticLevel(unsigned DiagID, SourceLocation Loc,
499 return (Level)Diags->getDiagnosticLevel(DiagID, Loc, *this, mapping);
507 inline DiagnosticBuilder Report(SourceLocation Pos, unsigned DiagID);
508 inline DiagnosticBuilder Report(unsigned DiagID);
536 void SetDelayedDiagnostic(unsigned DiagID, llvm::StringRef Arg1 = "",
853 unsigned DiagID){ in Report() argument
856 CurDiagID = DiagID; in Report()
859 inline DiagnosticBuilder Diagnostic::Report(unsigned DiagID) { in Report() argument
860 return Report(SourceLocation(), DiagID); in Report()
/external/clang/lib/Sema/
DDeclSpec.cpp31 unsigned DiagID) { in Diag() argument
32 return D.Report(Loc, DiagID); in Diag()
315 unsigned &DiagID) { in BadSpecifier() argument
317 DiagID = (TNew == TPrev ? diag::ext_duplicate_declspec in BadSpecifier()
408 unsigned &DiagID, in SetStorageClassSpec() argument
419 DiagID = diag::err_not_opencl_storage_class_specifier; in SetStorageClassSpec()
434 return BadSpecifier(S, (SCS)StorageClassSpec, PrevSpec, DiagID); in SetStorageClassSpec()
444 unsigned &DiagID) { in SetStorageClassSpecThread() argument
447 DiagID = diag::ext_duplicate_declspec; in SetStorageClassSpecThread()
460 unsigned &DiagID) { in SetTypeSpecWidth() argument
[all …]
DSemaExceptionSpec.cpp103 unsigned DiagID = diag::err_mismatched_exception_spec; in CheckEquivalentExceptionSpec() local
105 DiagID = diag::warn_mismatched_exception_spec; in CheckEquivalentExceptionSpec()
107 if (!CheckEquivalentExceptionSpec(PDiag(DiagID), in CheckEquivalentExceptionSpec()
254 Diag(New->getLocation(), DiagID); in CheckEquivalentExceptionSpec()
266 unsigned DiagID = diag::err_mismatched_exception_spec; in CheckEquivalentExceptionSpec() local
268 DiagID = diag::warn_mismatched_exception_spec; in CheckEquivalentExceptionSpec()
270 PDiag(DiagID), in CheckEquivalentExceptionSpec()
277 bool Sema::CheckEquivalentExceptionSpec(const PartialDiagnostic &DiagID, in CheckEquivalentExceptionSpec() argument
342 Diag(NewLoc, DiagID); in CheckEquivalentExceptionSpec()
430 Diag(NewLoc, DiagID); in CheckEquivalentExceptionSpec()
[all …]
DSemaCXXScopeSpec.cpp618 unsigned DiagID; in BuildCXXNestedNameSpecifier() local
620 DiagID = diag::err_expected_class_or_namespace; in BuildCXXNestedNameSpecifier()
626 DiagID = diag::err_undeclared_var_use; in BuildCXXNestedNameSpecifier()
629 Diag(IdentifierLoc, DiagID) << &Identifier << SS.getRange(); in BuildCXXNestedNameSpecifier()
631 Diag(IdentifierLoc, DiagID) << &Identifier; in BuildCXXNestedNameSpecifier()
/external/clang/lib/Parse/
DParseDecl.cpp1232 unsigned DiagID; in ParseImplicitInt() local
1233 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T); in ParseImplicitInt()
1251 unsigned DiagID; in ParseImplicitInt() local
1252 DS.SetTypeSpecType(DeclSpec::TST_error, Loc, PrevSpec, DiagID); in ParseImplicitInt()
1312 unsigned DiagID = 0; in ParseDeclarationSpecifiers() local
1442 PrevSpec, DiagID, T); in ParseDeclarationSpecifiers()
1492 DiagID, TypeRep); in ParseDeclarationSpecifiers()
1506 DiagID, T); in ParseDeclarationSpecifiers()
1564 if (TryAltiVecToken(DS, Loc, PrevSpec, DiagID, isInvalid)) in ParseDeclarationSpecifiers()
1587 DiagID, TypeRep); in ParseDeclarationSpecifiers()
[all …]
DParser.cpp96 DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) { in Diag() argument
97 return Diags.Report(Loc, DiagID); in Diag()
100 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) { in Diag() argument
101 return Diag(Tok.getLocation(), DiagID); in Diag()
166 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() argument
176 Diag(Loc, DiagID) in ExpectAndConsume()
191 Diag(EndLoc, DiagID) in ExpectAndConsume()
195 Diag(Tok, DiagID) << Msg; in ExpectAndConsume()
202 bool Parser::ExpectAndConsumeSemi(unsigned DiagID) { in ExpectAndConsumeSemi() argument
218 return ExpectAndConsume(tok::semi, DiagID); in ExpectAndConsumeSemi()
[all …]
DParseExprCXX.cpp398 unsigned DiagID = diag::err_missing_dependent_template_keyword; in ParseOptionalCXXScopeSpecifier() local
400 DiagID = diag::warn_missing_dependent_template_keyword; in ParseOptionalCXXScopeSpecifier()
402 Diag(Tok.getLocation(), DiagID) in ParseOptionalCXXScopeSpecifier()
1019 unsigned DiagID; in ParseCXXSimpleTypeSpecifier() local
1033 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, in ParseCXXSimpleTypeSpecifier()
1054 DS.SetTypeSpecWidth(DeclSpec::TSW_short, Loc, PrevSpec, DiagID); in ParseCXXSimpleTypeSpecifier()
1057 DS.SetTypeSpecWidth(DeclSpec::TSW_long, Loc, PrevSpec, DiagID); in ParseCXXSimpleTypeSpecifier()
1060 DS.SetTypeSpecWidth(DeclSpec::TSW_longlong, Loc, PrevSpec, DiagID); in ParseCXXSimpleTypeSpecifier()
1063 DS.SetTypeSpecSign(DeclSpec::TSS_signed, Loc, PrevSpec, DiagID); in ParseCXXSimpleTypeSpecifier()
1066 DS.SetTypeSpecSign(DeclSpec::TSS_unsigned, Loc, PrevSpec, DiagID); in ParseCXXSimpleTypeSpecifier()
[all …]
/external/clang/lib/ARCMigrate/
DARCMT.cpp202 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in emitPremigrationErrors() local
204 new Diagnostic(DiagID, &printer, /*ShouldOwnClient=*/false)); in emitPremigrationErrors()
235 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in checkForManualIssues() local
237 new Diagnostic(DiagID, DiagClient, /*ShouldOwnClient=*/false)); in checkForManualIssues()
334 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in applyTransforms() local
336 new Diagnostic(DiagID, DiagClient, /*ShouldOwnClient=*/false)); in applyTransforms()
373 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in getFileRemappings() local
375 new Diagnostic(DiagID, DiagClient, /*ShouldOwnClient=*/false)); in getFileRemappings()
475 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in MigrationProcess() local
477 new Diagnostic(DiagID, DiagClient, /*ShouldOwnClient=*/false)); in MigrationProcess()
[all …]
/external/clang/include/clang/Sema/
DSemaInternal.h24 inline PartialDiagnostic Sema::PDiag(unsigned DiagID) { in PDiag() argument
25 return PartialDiagnostic(DiagID, Context.getDiagAllocator()); in PDiag()
DDeclSpec.h541 unsigned &DiagID, const LangOptions &Lang);
543 unsigned &DiagID);
545 unsigned &DiagID);
547 unsigned &DiagID);
549 unsigned &DiagID);
551 unsigned &DiagID);
553 unsigned &DiagID, ParsedType Rep);
555 unsigned &DiagID, Decl *Rep, bool Owned);
558 unsigned &DiagID, ParsedType Rep);
561 unsigned &DiagID, Decl *Rep, bool Owned);
[all …]
DDelayedDiagnostic.h92 PartialDiagnostic &setDiag(unsigned DiagID) { in setDiag() argument
94 assert(DiagID && "creating null diagnostic"); in setDiag()
95 Diag.Reset(DiagID); in setDiag()
/external/clang/examples/PrintFunctionNames/
DPrintFunctionNames.cpp49 unsigned DiagID = D.getCustomDiagID( in ParseArgs() local
51 D.Report(DiagID); in ParseArgs()
/external/clang/tools/driver/
Dcc1_main.cpp118 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in cc1_main() local
122 Diagnostic Diags(DiagID, new TextDiagnosticPrinter(llvm::errs(), in cc1_main()
138 Diagnostic Diags(DiagID, DiagsBuffer); in cc1_main()
/external/clang/include/clang/AST/
DASTImporter.h251 DiagnosticBuilder ToDiag(SourceLocation Loc, unsigned DiagID);
254 DiagnosticBuilder FromDiag(SourceLocation Loc, unsigned DiagID);
/external/clang/tools/arcmt-test/
Darcmt-test.cpp110 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in checkForMigration() local
111 llvm::IntrusiveRefCntPtr<Diagnostic> Diags(new Diagnostic(DiagID, DiagClient)); in checkForMigration()
156 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in performTransformations() local
157 llvm::IntrusiveRefCntPtr<Diagnostic> TopDiags(new Diagnostic(DiagID, DiagClient)); in performTransformations()
/external/clang/lib/Rewrite/
DFixItRewriter.cpp146 void FixItRewriter::Diag(SourceLocation Loc, unsigned DiagID) { in Diag() argument
153 Diags.Report(Loc, DiagID); in Diag()
/external/clang/examples/clang-interpreter/
Dmain.cpp76 llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in main() local
77 Diagnostic Diags(DiagID, DiagClient); in main()
/external/clang/include/clang/Driver/
DDriver.h52 DiagnosticBuilder Diag(unsigned DiagID) const { in Diag() argument
53 return Diags.Report(DiagID); in Diag()
/external/clang/include/clang/Lex/
DPreprocessor.h660 DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) { in Diag() argument
661 return Diags->Report(Loc, DiagID); in Diag()
664 DiagnosticBuilder Diag(const Token &Tok, unsigned DiagID) { in Diag() argument
665 return Diags->Report(Tok.getLocation(), DiagID); in Diag()
819 void SetPoisonReason(IdentifierInfo *II, unsigned DiagID);
/external/clang/lib/CodeGen/
DCGCXXABI.cpp25 unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error, in ErrorUnsupportedABI() local
28 DiagID) in ErrorUnsupportedABI()
/external/clang/include/clang/Rewrite/
DFixItRewriter.h101 void Diag(SourceLocation Loc, unsigned DiagID);

123