Scarab  2.8.1
Project 8 C++ Utility Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Diagnostic Class Reference
Inheritance diagram for Diagnostic:
Inheritance graph

Public Member Functions

def __init__ (self, ptr)
 
def __del__ (self)
 
def severity (self)
 
def location (self)
 
def spelling (self)
 
def ranges (self)
 
def fixits (self)
 
def children (self)
 
def category_number (self)
 
def category_name (self)
 
def option (self)
 
def disable_option (self)
 
def __repr__ (self)
 
def from_param (self)
 

Public Attributes

 ptr
 
 diag
 
 diag_set
 

Static Public Attributes

int Ignored = 0
 
int Note = 1
 
int Warning = 2
 
int Error = 3
 
int Fatal = 4
 

Detailed Description

A Diagnostic is a single instance of a Clang diagnostic. It includes the
diagnostic severity, the message, the location the diagnostic occurred, as
well as additional source ranges and associated fix-it hints.

Definition at line 295 of file cindex.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  ptr 
)

Definition at line 308 of file cindex.py.

◆ __del__()

def __del__ (   self)

Definition at line 311 of file cindex.py.

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

Definition at line 402 of file cindex.py.

◆ category_name()

def category_name (   self)
The string name of the category for this diagnostic.

Definition at line 385 of file cindex.py.

◆ category_number()

def category_number (   self)
The category number for this diagnostic or 0 if unavailable.

Definition at line 380 of file cindex.py.

◆ children()

def children (   self)

Definition at line 363 of file cindex.py.

◆ disable_option()

def disable_option (   self)
The command-line option that disables this diagnostic.

Definition at line 395 of file cindex.py.

◆ fixits()

def fixits (   self)

Definition at line 343 of file cindex.py.

◆ from_param()

def from_param (   self)

Definition at line 406 of file cindex.py.

◆ location()

def location (   self)

Definition at line 319 of file cindex.py.

◆ option()

def option (   self)
The command-line option that enables this diagnostic.

Definition at line 390 of file cindex.py.

◆ ranges()

def ranges (   self)

Definition at line 327 of file cindex.py.

◆ severity()

def severity (   self)

Definition at line 315 of file cindex.py.

◆ spelling()

def spelling (   self)

Definition at line 323 of file cindex.py.

Member Data Documentation

◆ diag

diag

Definition at line 330 of file cindex.py.

◆ diag_set

diag_set

Definition at line 366 of file cindex.py.

◆ Error

int Error = 3
static

Definition at line 305 of file cindex.py.

◆ Fatal

int Fatal = 4
static

Definition at line 306 of file cindex.py.

◆ Ignored

int Ignored = 0
static

Definition at line 302 of file cindex.py.

◆ Note

int Note = 1
static

Definition at line 303 of file cindex.py.

◆ ptr

ptr

Definition at line 309 of file cindex.py.

◆ Warning

int Warning = 2
static

Definition at line 304 of file cindex.py.


The documentation for this class was generated from the following file: