clang 20.0.0git
Classes | Namespaces | Macros | Typedefs | Enumerations
DiagnosticIDs.h File Reference

Defines the Diagnostic IDs-related interfaces. More...

#include "clang/Basic/LLVM.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/ErrorHandling.h"
#include <optional>
#include <vector>
#include "clang/Basic/DiagnosticCommonKinds.inc"

Go to the source code of this file.

Classes

class  clang::DiagnosticMapping
 
class  clang::DiagnosticIDs
 Used for handling and querying diagnostic IDs. More...
 

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::diag
 

Macros

#define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, CATEGORY, NOWERROR, SHOWINSYSHEADER, SHOWINSYSMACRO, DEFFERABLE)    ENUM,
 
#define COMMONSTART
 

Typedefs

typedef unsigned clang::diag::kind
 All of the diagnostics that can be emitted by the frontend.
 

Enumerations

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

Detailed Description

Defines the Diagnostic IDs-related interfaces.

Definition in file DiagnosticIDs.h.

Macro Definition Documentation

◆ COMMONSTART

#define COMMONSTART

Definition at line 77 of file DiagnosticIDs.h.

◆ DIAG

#define DIAG (   ENUM,
  FLAGS,
  DEFAULT_MAPPING,
  DESC,
  GROUP,
  SFINAE,
  CATEGORY,
  NOWERROR,
  SHOWINSYSHEADER,
  SHOWINSYSMACRO,
  DEFFERABLE 
)     ENUM,

Definition at line 74 of file DiagnosticIDs.h.