clang  6.0.0svn
Classes | Typedefs | Enumerations
clang::diag Namespace Reference

Classes

class  CustomDiagInfo
 

Typedefs

typedef unsigned kind
 All of the diagnostics that can be emitted by the frontend. More...
 

Enumerations

enum  { NUM_BUILTIN_ANALYSIS_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_AST_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_COMMENT_DIAGNOSTICS }
 
enum  { DiagCat_NUM_CATEGORIES }
 
enum  {
  DIAG_SIZE_COMMON = 300, DIAG_SIZE_DRIVER = 200, DIAG_SIZE_FRONTEND = 100, DIAG_SIZE_SERIALIZATION = 120,
  DIAG_SIZE_LEX = 400, DIAG_SIZE_PARSE = 500, DIAG_SIZE_AST = 150, DIAG_SIZE_COMMENT = 100,
  DIAG_SIZE_CROSSTU = 100, DIAG_SIZE_SEMA = 3500, DIAG_SIZE_ANALYSIS = 100, DIAG_SIZE_REFACTORING = 1000
}
 
enum  {
  DIAG_START_COMMON = 0, DIAG_START_DRIVER = DIAG_START_COMMON + DIAG_SIZE_COMMON, DIAG_START_FRONTEND = DIAG_START_DRIVER + DIAG_SIZE_DRIVER, DIAG_START_SERIALIZATION = DIAG_START_FRONTEND + DIAG_SIZE_FRONTEND,
  DIAG_START_LEX = DIAG_START_SERIALIZATION + DIAG_SIZE_SERIALIZATION, DIAG_START_PARSE = DIAG_START_LEX + DIAG_SIZE_LEX, DIAG_START_AST = DIAG_START_PARSE + DIAG_SIZE_PARSE, DIAG_START_COMMENT = DIAG_START_AST + DIAG_SIZE_AST,
  DIAG_START_CROSSTU = DIAG_START_COMMENT + DIAG_SIZE_CROSSTU, DIAG_START_SEMA = DIAG_START_CROSSTU + DIAG_SIZE_COMMENT, DIAG_START_ANALYSIS = DIAG_START_SEMA + DIAG_SIZE_SEMA, DIAG_START_REFACTORING = DIAG_START_ANALYSIS + DIAG_SIZE_ANALYSIS,
  DIAG_UPPER_LIMIT = DIAG_START_REFACTORING + DIAG_SIZE_REFACTORING
}
 
enum  { NUM_BUILTIN_COMMON_DIAGNOSTICS }
 
enum  Severity {
  Severity::Ignored = 1, Severity::Remark = 2, Severity::Warning = 3, Severity::Error = 4,
  Severity::Fatal = 5
}
 Enum values that allow the client to map NOTEs, WARNINGs, and EXTENSIONs to either Ignore (nothing), Remark (emit a remark), Warning (emit a warning) or Error (emit as an error). More...
 
enum  Flavor { Flavor::WarningOrError, Flavor::Remark }
 Flavors of diagnostics we can emit. More...
 
enum  { NUM_BUILTIN_CROSSTU_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_DRIVER_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_FRONTEND_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_LEX_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_PARSE_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_SEMA_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_SERIALIZATION_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_REFACTORING_DIAGNOSTICS }
 

Typedef Documentation

◆ kind

typedef unsigned clang::diag::kind

All of the diagnostics that can be emitted by the frontend.

Definition at line 61 of file DiagnosticIDs.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_ANALYSIS_DIAGNOSTICS 

Definition at line 17 of file AnalysisDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
DiagCat_NUM_CATEGORIES 

Definition at line 15 of file DiagnosticCategories.h.

◆ anonymous enum

anonymous enum
Enumerator
DIAG_SIZE_COMMON 
DIAG_SIZE_DRIVER 
DIAG_SIZE_FRONTEND 
DIAG_SIZE_SERIALIZATION 
DIAG_SIZE_LEX 
DIAG_SIZE_PARSE 
DIAG_SIZE_AST 
DIAG_SIZE_COMMENT 
DIAG_SIZE_CROSSTU 
DIAG_SIZE_SEMA 
DIAG_SIZE_ANALYSIS 
DIAG_SIZE_REFACTORING 

Definition at line 30 of file DiagnosticIDs.h.

◆ anonymous enum

anonymous enum
Enumerator
DIAG_START_COMMON 
DIAG_START_DRIVER 
DIAG_START_FRONTEND 
DIAG_START_SERIALIZATION 
DIAG_START_LEX 
DIAG_START_PARSE 
DIAG_START_AST 
DIAG_START_COMMENT 
DIAG_START_CROSSTU 
DIAG_START_SEMA 
DIAG_START_ANALYSIS 
DIAG_START_REFACTORING 
DIAG_UPPER_LIMIT 

Definition at line 45 of file DiagnosticIDs.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_COMMON_DIAGNOSTICS 

Definition at line 67 of file DiagnosticIDs.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_CROSSTU_DIAGNOSTICS 

Definition at line 17 of file CrossTUDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_DRIVER_DIAGNOSTICS 

Definition at line 17 of file DriverDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_FRONTEND_DIAGNOSTICS 

Definition at line 17 of file FrontendDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_LEX_DIAGNOSTICS 

Definition at line 17 of file LexDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_PARSE_DIAGNOSTICS 

Definition at line 17 of file ParseDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_COMMENT_DIAGNOSTICS 

Definition at line 17 of file CommentDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_SEMA_DIAGNOSTICS 

Definition at line 17 of file SemaDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_SERIALIZATION_DIAGNOSTICS 

Definition at line 17 of file SerializationDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_REFACTORING_DIAGNOSTICS 

Definition at line 18 of file RefactoringDiagnostic.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_AST_DIAGNOSTICS 

Definition at line 17 of file ASTDiagnostic.h.

◆ Flavor

enum clang::diag::Flavor
strong

Flavors of diagnostics we can emit.

Used to filter for a particular kind of diagnostic (for instance, for -W/-R flags).

Enumerator
WarningOrError 

A diagnostic that indicates a problem or potential problem.

Can be made fatal by -Werror.

Remark 

A diagnostic that indicates normal progress through compilation.

Definition at line 91 of file DiagnosticIDs.h.

◆ Severity

enum clang::diag::Severity
strong

Enum values that allow the client to map NOTEs, WARNINGs, and EXTENSIONs to either Ignore (nothing), Remark (emit a remark), Warning (emit a warning) or Error (emit as an error).

It allows clients to map ERRORs to Error or Fatal (stop emitting diagnostics after this one).

Enumerator
Ignored 

Do not present this diagnostic, ignore it.

Remark 

Present this diagnostic as a remark.

Warning 

Present this diagnostic as a warning.

Error 

Present this diagnostic as an error.

Fatal 

Present this diagnostic as a fatal error.

Definition at line 80 of file DiagnosticIDs.h.