clang 20.0.0git
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.
 

Enumerations

enum  { NUM_BUILTIN_ANALYSIS_DIAGNOSTICS }
 
enum  { NUM_BUILTIN_AST_DIAGNOSTICS }
 
enum  { DiagCat_NUM_CATEGORIES }
 
enum class  Group { DIAG_ENTRY }
 
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 = 400 , DIAG_SIZE_FRONTEND = 200 , DIAG_SIZE_SERIALIZATION = 120 ,
  DIAG_SIZE_LEX = 400 , DIAG_SIZE_PARSE = 700 , DIAG_SIZE_AST = 300 , DIAG_SIZE_COMMENT = 100 ,
  DIAG_SIZE_CROSSTU = 100 , DIAG_SIZE_SEMA = 4500 , DIAG_SIZE_ANALYSIS = 100 , DIAG_SIZE_REFACTORING = 1000 ,
  DIAG_SIZE_INSTALLAPI = 100
}
 
enum  {
  DIAG_START_COMMON = 0 , DIAG_START_DRIVER = DIAG_START_COMMON + static_cast<int>(DIAG_SIZE_COMMON) , DIAG_START_FRONTEND = DIAG_START_DRIVER + static_cast<int>(DIAG_SIZE_DRIVER) , DIAG_START_SERIALIZATION = DIAG_START_FRONTEND + static_cast<int>(DIAG_SIZE_FRONTEND) ,
  DIAG_START_LEX = DIAG_START_SERIALIZATION + static_cast<int>(DIAG_SIZE_SERIALIZATION) , DIAG_START_PARSE = DIAG_START_LEX + static_cast<int>(DIAG_SIZE_LEX) , DIAG_START_AST = DIAG_START_PARSE + static_cast<int>(DIAG_SIZE_PARSE) , DIAG_START_COMMENT = DIAG_START_AST + static_cast<int>(DIAG_SIZE_AST) ,
  DIAG_START_CROSSTU = DIAG_START_COMMENT + static_cast<int>(DIAG_SIZE_COMMENT) , DIAG_START_SEMA = DIAG_START_CROSSTU + static_cast<int>(DIAG_SIZE_CROSSTU) , DIAG_START_ANALYSIS = DIAG_START_SEMA + static_cast<int>(DIAG_SIZE_SEMA) , DIAG_START_REFACTORING = DIAG_START_ANALYSIS + static_cast<int>(DIAG_SIZE_ANALYSIS) ,
  DIAG_START_INSTALLAPI = DIAG_START_REFACTORING + static_cast<int>(DIAG_SIZE_REFACTORING) , DIAG_UPPER_LIMIT = DIAG_START_INSTALLAPI + static_cast<int>(DIAG_SIZE_INSTALLAPI)
}
 
enum  { NUM_BUILTIN_COMMON_DIAGNOSTICS }
 
enum class  Severity {
  Ignored = 1 , Remark = 2 , Warning = 3 , Error = 4 ,
  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 class  Flavor { WarningOrError , Remark }
 Flavors of diagnostics we can emit. More...
 
enum  { NUM_BUILTIN_INSTALLAPI_DIAGNOSTICS }
 
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

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

Definition at line 68 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 
DIAG_SIZE_INSTALLAPI 

Definition at line 32 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_START_INSTALLAPI 
DIAG_UPPER_LIMIT 

Definition at line 48 of file DiagnosticIDs.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_COMMON_DIAGNOSTICS 

Definition at line 71 of file DiagnosticIDs.h.

◆ anonymous enum

anonymous enum
Enumerator
NUM_BUILTIN_INSTALLAPI_DIAGNOSTICS 

Definition at line 15 of file DiagnosticInstallAPI.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 class 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 96 of file DiagnosticIDs.h.

◆ Group

enum class clang::diag::Group
strong
Enumerator
DIAG_ENTRY 

Definition at line 23 of file DiagnosticCategories.h.

◆ Severity

enum class 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 85 of file DiagnosticIDs.h.