clang  9.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  { DiagCat_NUM_CATEGORIES }
 
enum  { NUM_BUILTIN_COMMENT_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_CROSSTU_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_DRIVER_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_FRONTEND_DIAGNOSTICS }
 
enum  {
  DIAG_SIZE_COMMON = 300, DIAG_SIZE_DRIVER = 200, DIAG_SIZE_FRONTEND = 150, 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_LEX_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_PARSE_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_REFACTORING_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_SEMA_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_SERIALIZATION_DIAGNOSTICS }
 

Typedef Documentation

◆ kind

typedef unsigned clang::diag::kind

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

Definition at line 60 of file DiagnosticIDs.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_ANALYSIS_DIAGNOSTICS 

Definition at line 16 of file DiagnosticAnalysis.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_AST_DIAGNOSTICS 

Definition at line 16 of file DiagnosticAST.h.

◆ anonymous enum

anonymous enum
Enumerator
DiagCat_NUM_CATEGORIES 

Definition at line 14 of file DiagnosticCategories.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_COMMENT_DIAGNOSTICS 

Definition at line 16 of file DiagnosticComment.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_CROSSTU_DIAGNOSTICS 

Definition at line 16 of file DiagnosticCrossTU.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_DRIVER_DIAGNOSTICS 

Definition at line 16 of file DiagnosticDriver.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_FRONTEND_DIAGNOSTICS 

Definition at line 16 of file DiagnosticFrontend.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 29 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 44 of file DiagnosticIDs.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_COMMON_DIAGNOSTICS 

Definition at line 66 of file DiagnosticIDs.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_LEX_DIAGNOSTICS 

Definition at line 16 of file DiagnosticLex.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_PARSE_DIAGNOSTICS 

Definition at line 16 of file DiagnosticParse.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_REFACTORING_DIAGNOSTICS 

Definition at line 16 of file DiagnosticRefactoring.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_SEMA_DIAGNOSTICS 

Definition at line 16 of file DiagnosticSema.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_SERIALIZATION_DIAGNOSTICS 

Definition at line 16 of file DiagnosticSerialization.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 90 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 79 of file DiagnosticIDs.h.