ClangKit diagnostic class
Gets diagnostics objects for a translation unit
+ ( NSArray * )diagnosticsForTranslationUnit: ( CKTranslationUnit * )translationUnit;
An array with instances of 'CKFixIt'
Gets a specific diagnostic from a translation unit
+ ( id )diagnosticWithTranslationUnit: ( CKTranslationUnit * )translationUnit
index: ( NSUInteger )index;
The returned object is autoreleased.
The diagnostic object
Initializes a specific diagnostic with a translation unit
- ( id )initWithTranslationUnit: ( CKTranslationUnit * )translationUnit
index: ( NSUInteger )index;
The diagnostic object
Initializes a specific diagnostic with a translation unit
- ( id )initWithTranslationUnit: ( CKTranslationUnit * )translationUnit
index: ( NSUInteger )index;
Internal libclang diagnostic object
@property( atomic,
readonly ) CXDiagnostic cxDiagnostic;
An array containing instances of 'CKFixIt'
@property( atomic,
readonly ) NSArray * fixIts;
Range of the diagnostic, based on the source code
@property( atomic,
readonly ) NSRange range;
Diagnostic severity - Error
FOUNDATION_EXPORT CKDiagnosticSeverity CKDiagnosticSeverityError;
Diagnostic severity - Fatal error
FOUNDATION_EXPORT CKDiagnosticSeverity CKDiagnosticSeverityFatal;
Diagnostic severity - Ignored
FOUNDATION_EXPORT CKDiagnosticSeverity CKDiagnosticSeverityIgnored;
Diagnostic severity - Notice
FOUNDATION_EXPORT CKDiagnosticSeverity CKDiagnosticSeverityNote;
Diagnostic severity - Warning
FOUNDATION_EXPORT CKDiagnosticSeverity CKDiagnosticSeverityWarning;