clang-tools  3.9.0
Public Types | Public Member Functions | Public Attributes | List of all members
clang::tidy::ClangTidyError Struct Reference

A detected error complete with information to display diagnostic and automatic fix. More...

#include <ClangTidyDiagnosticConsumer.h>

Collaboration diagram for clang::tidy::ClangTidyError:
[legend]

Public Types

enum  Level { Warning = DiagnosticsEngine::Warning, Error = DiagnosticsEngine::Error }
 

Public Member Functions

 ClangTidyError (StringRef CheckName, Level DiagLevel, bool IsWarningAsError, StringRef BuildDirectory)
 

Public Attributes

std::string CheckName
 
ClangTidyMessage Message
 
tooling::Replacements Fix
 
SmallVector< ClangTidyMessage, 1 > Notes
 
std::string BuildDirectory
 
Level DiagLevel
 
bool IsWarningAsError
 

Detailed Description

A detected error complete with information to display diagnostic and automatic fix.

This is used as an intermediate format to transport Diagnostics without a dependency on a SourceManager.

FIXME: Make Diagnostics flexible enough to support this directly.

Definition at line 54 of file ClangTidyDiagnosticConsumer.h.

Member Enumeration Documentation

Enumerator
Warning 
Error 

Definition at line 55 of file ClangTidyDiagnosticConsumer.h.

Constructor & Destructor Documentation

ClangTidyError::ClangTidyError ( StringRef  CheckName,
ClangTidyError::Level  DiagLevel,
bool  IsWarningAsError,
StringRef  BuildDirectory 
)

Definition at line 117 of file ClangTidyDiagnosticConsumer.cpp.

Member Data Documentation

std::string clang::tidy::ClangTidyError::BuildDirectory

Definition at line 75 of file ClangTidyDiagnosticConsumer.h.

std::string clang::tidy::ClangTidyError::CheckName

Definition at line 63 of file ClangTidyDiagnosticConsumer.h.

Level clang::tidy::ClangTidyError::DiagLevel

Definition at line 77 of file ClangTidyDiagnosticConsumer.h.

tooling::Replacements clang::tidy::ClangTidyError::Fix

Definition at line 65 of file ClangTidyDiagnosticConsumer.h.

bool clang::tidy::ClangTidyError::IsWarningAsError

Definition at line 78 of file ClangTidyDiagnosticConsumer.h.

ClangTidyMessage clang::tidy::ClangTidyError::Message

Definition at line 64 of file ClangTidyDiagnosticConsumer.h.

SmallVector<ClangTidyMessage, 1> clang::tidy::ClangTidyError::Notes

Definition at line 66 of file ClangTidyDiagnosticConsumer.h.


The documentation for this struct was generated from the following files: