clang  6.0.0svn
Classes | Namespaces | Typedefs | Functions | Variables
Diagnostic.h File Reference

Defines the Diagnostic-related interfaces. More...

#include "clang/Basic/DiagnosticIDs.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/Specifiers.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <list>
#include <map>
#include <memory>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
Include dependency graph for Diagnostic.h:

Go to the source code of this file.

Classes

class  clang::FixItHint
 Annotates a diagnostic with some code that should be inserted, removed, or replaced to fix the problem. More...
 
class  clang::DiagnosticsEngine
 Concrete class used by the front-end to report problems and issues. More...
 
class  clang::DiagnosticErrorTrap
 RAII class that determines when any errors have occurred between the time the instance was created and the time it was queried. More...
 
class  clang::DiagnosticBuilder
 A little helper class used to produce diagnostics. More...
 
struct  clang::AddFlagValue
 
class  clang::Diagnostic
 A little helper class (which is basically a smart pointer that forwards info from DiagnosticsEngine) that allows clients to enquire about the currently in-flight diagnostic. More...
 
class  clang::StoredDiagnostic
 Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed. More...
 
class  clang::DiagnosticConsumer
 Abstract interface, implemented by clients of the front-end, which formats and prints fully processed diagnostics. More...
 
class  clang::IgnoringDiagConsumer
 A diagnostic client that ignores all diagnostics. More...
 
class  clang::ForwardingDiagnosticConsumer
 Diagnostic consumer that forwards diagnostics along to an existing, already-initialized diagnostic consumer. More...
 
struct  clang::TemplateDiffTypes
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::tok
 

Typedefs

typedef std::pair< NullabilityKind, boolclang::DiagNullabilityKind
 A nullability kind paired with a bit indicating whether it used a context-sensitive keyword. More...
 

Functions

const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, const AddFlagValue V)
 Register a value for the flag in the current diagnostic. More...
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, StringRef S)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, const char *Str)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, int I)
 
template<typename T >
std::enable_if< std::is_same< T, bool >::value, const DiagnosticBuilder & >::type clang::operator<< (const DiagnosticBuilder &DB, T I)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, unsigned I)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, tok::TokenKind I)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, const IdentifierInfo *II)
 
template<typename T >
std::enable_if< std::is_same< typename std::remove_const< T >::type, DeclContext >::value, const DiagnosticBuilder & >::type clang::operator<< (const DiagnosticBuilder &DB, T *DC)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, SourceRange R)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, ArrayRef< SourceRange > Ranges)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, const CharSourceRange &R)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, const FixItHint &Hint)
 
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, ArrayRef< FixItHint > Hints)
 
const DiagnosticBuilderclang::operator<< (const DiagnosticBuilder &DB, DiagNullabilityKind nullability)
 
void clang::ProcessWarningOptions (DiagnosticsEngine &Diags, const DiagnosticOptions &Opts, bool ReportDiags=true)
 ProcessWarningOptions - Initialize the diagnostic client and process the warning options specified on the command line. More...
 

Variables

const char clang::ToggleHighlight = 127
 Special character that the diagnostic printer will use to toggle the bold attribute. More...
 

Detailed Description

Defines the Diagnostic-related interfaces.

Definition in file Diagnostic.h.