/external/clang/lib/Basic/ |
D | DiagnosticIDs.cpp | 40 uint16_t DiagID; member 67 return DiagID < RHS.DiagID; in operator <() 98 static const StaticDiagInfoRec *GetDiagInfo(unsigned DiagID) { in GetDiagInfo() argument 113 if (DiagID >= DIAG_UPPER_LIMIT || DiagID <= DIAG_START_COMMON) in GetDiagInfo() 125 unsigned ID = DiagID - DIAG_START_COMMON - 1; in GetDiagInfo() 127 if (DiagID > DIAG_START_##NAME) { \ in GetDiagInfo() 152 if (Found->DiagID != DiagID) in GetDiagInfo() 157 static DiagnosticMapping GetDefaultDiagMapping(unsigned DiagID) { in GetDefaultDiagMapping() argument 161 if (const StaticDiagInfoRec *StaticInfo = GetDiagInfo(DiagID)) { in GetDefaultDiagMapping() 176 unsigned DiagnosticIDs::getCategoryNumberForDiag(unsigned DiagID) { in getCategoryNumberForDiag() argument [all …]
|
/external/llvm-project/clang/lib/Basic/ |
D | DiagnosticIDs.cpp | 111 uint16_t DiagID; member 141 return DiagID < RHS.DiagID; in operator <() 207 static const StaticDiagInfoRec *GetDiagInfo(unsigned DiagID) { in GetDiagInfo() argument 210 if (DiagID >= DIAG_UPPER_LIMIT || DiagID <= DIAG_START_COMMON) in GetDiagInfo() 222 unsigned ID = DiagID - DIAG_START_COMMON - 1; in GetDiagInfo() 224 if (DiagID > DIAG_START_##NAME) { \ in GetDiagInfo() 251 if (Found->DiagID != DiagID) in GetDiagInfo() 256 static DiagnosticMapping GetDefaultDiagMapping(unsigned DiagID) { in GetDefaultDiagMapping() argument 260 if (const StaticDiagInfoRec *StaticInfo = GetDiagInfo(DiagID)) { in GetDefaultDiagMapping() 275 unsigned DiagnosticIDs::getCategoryNumberForDiag(unsigned DiagID) { in getCategoryNumberForDiag() argument [all …]
|
/external/llvm-project/clang/include/clang/Basic/ |
D | PartialDiagnostic.h | 41 mutable unsigned DiagID = 0; 49 PartialDiagnostic(unsigned DiagID, DiagStorageAllocator &Allocator_) in PartialDiagnostic() argument 50 : StreamingDiagnostic(Allocator_), DiagID(DiagID) {} in PartialDiagnostic() 53 : StreamingDiagnostic(), DiagID(Other.DiagID) { in PartialDiagnostic() 78 PartialDiagnostic(PartialDiagnostic &&Other) : DiagID(Other.DiagID) { in PartialDiagnostic() 86 : DiagID(Other.DiagID) { in PartialDiagnostic() 94 : DiagID(Other.getID()) { in PartialDiagnostic() 114 DiagID = Other.DiagID; 130 DiagID = Other.DiagID; 139 std::swap(DiagID, PD.DiagID); in swap() [all …]
|
D | DiagnosticIDs.h | 195 StringRef getDescription(unsigned DiagID) const; 202 static bool isBuiltinWarningOrExtension(unsigned DiagID); 206 static bool isDefaultMappingAsError(unsigned DiagID); 209 static bool isBuiltinNote(unsigned DiagID); 213 static bool isBuiltinExtensionDiag(unsigned DiagID) { in isBuiltinExtensionDiag() argument 215 return isBuiltinExtensionDiag(DiagID, ignored); in isBuiltinExtensionDiag() 225 static bool isBuiltinExtensionDiag(unsigned DiagID, bool &EnabledByDefault); 232 static StringRef getWarningOptionForDiag(unsigned DiagID); 236 static unsigned getCategoryNumberForDiag(unsigned DiagID); 246 static bool isARCDiagnostic(unsigned DiagID); [all …]
|
/external/clang/include/clang/Basic/ |
D | DiagnosticIDs.h | 147 StringRef getDescription(unsigned DiagID) const; 154 static bool isBuiltinWarningOrExtension(unsigned DiagID); 158 static bool isDefaultMappingAsError(unsigned DiagID); 161 static bool isBuiltinNote(unsigned DiagID); 165 static bool isBuiltinExtensionDiag(unsigned DiagID) { in isBuiltinExtensionDiag() argument 167 return isBuiltinExtensionDiag(DiagID, ignored); in isBuiltinExtensionDiag() 177 static bool isBuiltinExtensionDiag(unsigned DiagID, bool &EnabledByDefault); 184 static StringRef getWarningOptionForDiag(unsigned DiagID); 188 static unsigned getCategoryNumberForDiag(unsigned DiagID); 198 static bool isARCDiagnostic(unsigned DiagID); [all …]
|
D | PartialDiagnostic.h | 117 mutable unsigned DiagID; 182 : DiagID(0), DiagStorage(nullptr), Allocator(nullptr) { } in PartialDiagnostic() 184 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) in PartialDiagnostic() argument 185 : DiagID(DiagID), DiagStorage(nullptr), Allocator(&Allocator) { } in PartialDiagnostic() 188 : DiagID(Other.DiagID), DiagStorage(nullptr), Allocator(Other.Allocator) in PartialDiagnostic() 197 : DiagID(Other.DiagID), DiagStorage(Other.DiagStorage), in PartialDiagnostic() 203 : DiagID(Other.DiagID), DiagStorage(DiagStorage), in PartialDiagnostic() 211 : DiagID(Other.getID()), DiagStorage(nullptr), Allocator(&Allocator) in PartialDiagnostic() 231 DiagID = Other.DiagID; 247 DiagID = Other.DiagID; [all …]
|
/external/clang/lib/Sema/ |
D | DeclSpec.cpp | 383 unsigned &DiagID, in BadSpecifier() argument 387 DiagID = diag::err_invalid_decl_spec_combination; in BadSpecifier() 389 DiagID = IsExtension ? diag::ext_duplicate_declspec : in BadSpecifier() 504 unsigned &DiagID, in SetStorageClassSpec() argument 520 DiagID = diag::err_opencl_unknown_type_specifier; in SetStorageClassSpec() 527 DiagID = diag::err_opencl_unknown_type_specifier; in SetStorageClassSpec() 540 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID, Policy); in SetStorageClassSpec() 543 PrevSpec, DiagID, Policy); in SetStorageClassSpec() 555 return BadSpecifier(SC, (SCS)StorageClassSpec, PrevSpec, DiagID); in SetStorageClassSpec() 565 unsigned &DiagID) { in SetStorageClassSpecThread() argument [all …]
|
D | SemaExceptionSpec.cpp | 114 unsigned DiagID = diag::err_incomplete_in_exception_spec; in CheckSpecifiedExceptionType() local 117 DiagID = diag::ext_incomplete_in_exception_spec; in CheckSpecifiedExceptionType() 122 RequireCompleteType(Range.getBegin(), PointeeT, DiagID, Kind, Range)) in CheckSpecifiedExceptionType() 218 unsigned DiagID = diag::err_mismatched_exception_spec; in CheckEquivalentExceptionSpec() local 221 DiagID = diag::ext_mismatched_exception_spec; in CheckEquivalentExceptionSpec() 228 PDiag(DiagID), PDiag(diag::note_previous_declaration), in CheckEquivalentExceptionSpec() 296 DiagID = diag::ext_ms_missing_exception_specification; in CheckEquivalentExceptionSpec() 302 DiagID = diag::ext_missing_exception_specification; in CheckEquivalentExceptionSpec() 305 DiagID = diag::err_missing_exception_specification; in CheckEquivalentExceptionSpec() 358 Diag(New->getLocation(), DiagID) in CheckEquivalentExceptionSpec() [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | DeclSpec.cpp | 470 unsigned &DiagID, in BadSpecifier() argument 474 DiagID = diag::err_invalid_decl_spec_combination; in BadSpecifier() 476 DiagID = IsExtension ? diag::ext_warn_duplicate_declspec : in BadSpecifier() 617 unsigned &DiagID, in SetStorageClassSpec() argument 634 DiagID = diag::err_opencl_unknown_type_specifier; in SetStorageClassSpec() 641 DiagID = diag::err_opencl_unknown_type_specifier; in SetStorageClassSpec() 654 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID, Policy); in SetStorageClassSpec() 657 PrevSpec, DiagID, Policy); in SetStorageClassSpec() 669 return BadSpecifier(SC, (SCS)StorageClassSpec, PrevSpec, DiagID); in SetStorageClassSpec() 679 unsigned &DiagID) { in SetStorageClassSpecThread() argument [all …]
|
D | SemaExceptionSpec.cpp | 157 unsigned DiagID = diag::err_incomplete_in_exception_spec; in CheckSpecifiedExceptionType() local 160 DiagID = diag::ext_incomplete_in_exception_spec; in CheckSpecifiedExceptionType() 165 RequireCompleteType(Range.getBegin(), PointeeT, DiagID, Kind, Range)) in CheckSpecifiedExceptionType() 258 Sema &S, const PartialDiagnostic &DiagID, const PartialDiagnostic &NoteID, 297 unsigned DiagID = diag::err_mismatched_exception_spec; in CheckEquivalentExceptionSpec() local 300 DiagID = diag::ext_mismatched_exception_spec; in CheckEquivalentExceptionSpec() 315 *this, PDiag(DiagID), PDiag(diag::note_previous_declaration), in CheckEquivalentExceptionSpec() 390 DiagID = diag::ext_ms_missing_exception_specification; in CheckEquivalentExceptionSpec() 396 DiagID = diag::ext_missing_exception_specification; in CheckEquivalentExceptionSpec() 401 DiagID = diag::ext_missing_exception_specification; in CheckEquivalentExceptionSpec() [all …]
|
/external/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 246 unsigned DiagID); 312 unsigned DiagID; in InlineAsmDiagHandler2() local 315 DiagID = diag::err_fe_inline_asm; in InlineAsmDiagHandler2() 318 DiagID = diag::warn_fe_inline_asm; in InlineAsmDiagHandler2() 321 DiagID = diag::note_fe_inline_asm; in InlineAsmDiagHandler2() 328 Diags.Report(LocCookie, DiagID).AddString(Message); in InlineAsmDiagHandler2() 346 Diags.Report(Loc, DiagID).AddString(Message); in InlineAsmDiagHandler2() 349 #define ComputeDiagID(Severity, GroupName, DiagID) \ argument 353 DiagID = diag::err_fe_##GroupName; \ 356 DiagID = diag::warn_fe_##GroupName; \ [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 414 unsigned DiagID); 481 unsigned DiagID; in InlineAsmDiagHandler2() local 484 DiagID = diag::err_fe_inline_asm; in InlineAsmDiagHandler2() 487 DiagID = diag::warn_fe_inline_asm; in InlineAsmDiagHandler2() 490 DiagID = diag::note_fe_inline_asm; in InlineAsmDiagHandler2() 499 Diags.Report(LocCookie, DiagID).AddString(Message); in InlineAsmDiagHandler2() 517 Diags.Report(Loc, DiagID).AddString(Message); in InlineAsmDiagHandler2() 520 #define ComputeDiagID(Severity, GroupName, DiagID) \ argument 524 DiagID = diag::err_fe_##GroupName; \ 527 DiagID = diag::warn_fe_##GroupName; \ [all …]
|
/external/llvm-project/clang/tools/diagtool/ |
D | ShowEnabledWarnings.cpp | 117 unsigned DiagID = DR.DiagID; in run() local 119 if (DiagnosticIDs::isBuiltinNote(DiagID)) in run() 122 if (!DiagnosticIDs::isBuiltinWarningOrExtension(DiagID)) in run() 126 Diags->getDiagnosticLevel(DiagID, SourceLocation()); in run() 130 StringRef WarningOpt = DiagnosticIDs::getWarningOptionForDiag(DiagID); in run()
|
D | FindDiagnosticID.cpp | 21 int DiagID; in getNameFromID() local 22 if(!Name.getAsInteger(0, DiagID)) { in getNameFromID() 23 const DiagnosticRecord &Diag = getDiagnosticForID(DiagID); in getNameFromID() 71 OS << Diag->DiagID << "\n"; in run()
|
D | DiagnosticNames.cpp | 50 return Left.DiagID < Right.DiagID; in orderByID() 53 const DiagnosticRecord &diagtool::getDiagnosticForID(short DiagID) { in getDiagnosticForID() argument 54 DiagnosticRecord Key = {nullptr, DiagID, 0}; in getDiagnosticForID()
|
D | TreeView.cpp | 32 static bool isIgnored(unsigned DiagID) { in isIgnored() argument 36 return Diags.isIgnored(DiagID, SourceLocation()); in isIgnored() 52 if (isIgnored(DR.DiagID)) in enabledByDefault() 83 if (!isIgnored(DR.DiagID)) in printGroup()
|
/external/llvm-project/clang/unittests/Driver/ |
D | ToolChainTest.cpp | 32 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() local 34 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() 86 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() local 88 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() 126 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() local 128 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() 157 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() local 160 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() 266 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() local 268 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() [all …]
|
/external/clang/tools/diagtool/ |
D | ShowEnabledWarnings.cpp | 121 unsigned DiagID = I->DiagID; in run() local 123 if (DiagnosticIDs::isBuiltinNote(DiagID)) in run() 126 if (!DiagnosticIDs::isBuiltinWarningOrExtension(DiagID)) in run() 130 Diags->getDiagnosticLevel(DiagID, SourceLocation()); in run() 134 StringRef WarningOpt = DiagnosticIDs::getWarningOptionForDiag(DiagID); in run()
|
D | DiagnosticNames.cpp | 49 return Left.DiagID < Right.DiagID; in orderByID() 52 const DiagnosticRecord &diagtool::getDiagnosticForID(short DiagID) { in getDiagnosticForID() argument 53 DiagnosticRecord Key = {nullptr, DiagID, 0}; in getDiagnosticForID()
|
/external/llvm-project/clang/include/clang/Tooling/Refactoring/ |
D | RefactoringRuleContext.h | 57 llvm::Error createDiagnosticError(SourceLocation Loc, unsigned DiagID) { in createDiagnosticError() argument 58 return DiagnosticError::create(Loc, PartialDiagnostic(DiagID, DiagStorage)); in createDiagnosticError() 61 llvm::Error createDiagnosticError(unsigned DiagID) { in createDiagnosticError() argument 62 return createDiagnosticError(SourceLocation(), DiagID); in createDiagnosticError()
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 1756 unsigned DiagID; in ParseDeclGroup() local 1760 bool Fixit = !DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); in ParseDeclGroup() 2299 unsigned DiagID; in ParseImplicitInt() local 2300 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt() 2429 unsigned DiagID; in ParseImplicitInt() local 2430 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt() 2695 unsigned DiagID = 0; in ParseDeclarationSpecifiers() local 2861 PrevSpec, DiagID, T, Policy); in ParseDeclarationSpecifiers() 2920 DiagID, TypeRep, Policy); in ParseDeclarationSpecifiers() 2939 DiagID, T, Policy); in ParseDeclarationSpecifiers() [all …]
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseDecl.cpp | 1592 unsigned DiagID) { in ProhibitCXX11Attributes() argument 1600 Diag(AL.getLoc(), DiagID) << AL; in ProhibitCXX11Attributes() 1937 unsigned DiagID; in ParseDeclGroup() local 1941 bool Fixit = !DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); in ParseDeclGroup() 2558 unsigned DiagID; in ParseImplicitInt() local 2559 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt() 2695 unsigned DiagID; in ParseImplicitInt() local 2696 DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID, T, in ParseImplicitInt() 2949 const char *&PrevSpec, unsigned &DiagID, in SetupFixedPointError() argument 2952 DiagID = diag::err_fixed_point_not_enabled; in SetupFixedPointError() [all …]
|
/external/clang/unittests/Driver/ |
D | ToolChainTest.cpp | 31 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() local 33 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST() 84 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() local 86 DiagnosticsEngine Diags(DiagID, &*DiagOpts, new TestDiagnosticConsumer); in TEST()
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 183 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in createInvocationForMigration() local 185 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(), in createInvocationForMigration() 222 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in emitPremigrationErrors() local 224 new DiagnosticsEngine(DiagID, diagOpts, &printer, in emitPremigrationErrors() 262 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in checkForManualIssues() local 264 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(), in checkForManualIssues() 371 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in applyTransforms() local 373 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(), in applyTransforms() 408 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in getFileRemappings() local 410 new DiagnosticsEngine(DiagID, new DiagnosticOptions, in getFileRemappings() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 182 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in createInvocationForMigration() local 184 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(), in createInvocationForMigration() 223 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in emitPremigrationErrors() local 225 new DiagnosticsEngine(DiagID, diagOpts, &printer, in emitPremigrationErrors() 263 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in checkForManualIssues() local 265 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(), in checkForManualIssues() 372 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in applyTransforms() local 374 new DiagnosticsEngine(DiagID, &origCI.getDiagnosticOpts(), in applyTransforms() 409 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in getFileRemappings() local 411 new DiagnosticsEngine(DiagID, new DiagnosticOptions, in getFileRemappings() [all …]
|