clang API Documentation

Classes | Namespaces | 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 "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/iterator_range.h"
#include <list>
#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::DiagnosticsEngine::DiagState
 Mapping information for diagnostics.
struct  clang::DiagnosticsEngine::DiagStatePoint
 Represents a point in source where the diagnostic state was modified because of a pragma.
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
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

namespace  clang
namespace  clang::tok

Functions

const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, const AddFlagValue V)
 Register a value for the flag in the current diagnostic. This value will be shown as the suffix "=value" after the flag name. It is useful in cases where the diagnostic flag accepts values (e.g.,.
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
< T, DeclContext >::value,
const DiagnosticBuilder & >
::type 
clang::operator<< (const DiagnosticBuilder &DB, T *DC)
const DiagnosticBuilder & clang::operator<< (const DiagnosticBuilder &DB, const 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)
void clang::ProcessWarningOptions (DiagnosticsEngine &Diags, const DiagnosticOptions &Opts, bool ReportDiags=true)

Variables

const char clang::ToggleHighlight = 127

Detailed Description

Defines the Diagnostic-related interfaces.

Definition in file Diagnostic.h.