#include "clang/Frontend/SARIFDiagnostic.h"
|
| void | emitDiagnosticMessage (FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef< CharSourceRange > Ranges, DiagOrStoredDiag D) override |
| void | emitDiagnosticLoc (FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, ArrayRef< CharSourceRange > Ranges) override |
| | Print out the file/line/column information and include trace.
|
| void | emitCodeContext (FullSourceLoc Loc, DiagnosticsEngine::Level Level, SmallVectorImpl< CharSourceRange > &Ranges, ArrayRef< FixItHint > Hints) override |
| void | emitIncludeLocation (FullSourceLoc Loc, PresumedLoc PLoc) override |
| void | emitImportLocation (FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) override |
| void | emitBuildingModuleLocation (FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) override |
| | DiagnosticRenderer (const LangOptions &LangOpts, DiagnosticOptions &DiagOpts) |
| virtual | ~DiagnosticRenderer () |
| virtual void | beginDiagnostic (DiagOrStoredDiag D, DiagnosticsEngine::Level Level) |
| virtual void | endDiagnostic (DiagOrStoredDiag D, DiagnosticsEngine::Level Level) |
Definition at line 32 of file SARIFDiagnostic.h.
◆ SARIFDiagnostic() [1/3]
◆ ~SARIFDiagnostic()
| clang::SARIFDiagnostic::~SARIFDiagnostic |
( |
| ) |
|
|
default |
◆ SARIFDiagnostic() [2/3]
◆ SARIFDiagnostic() [3/3]
◆ emitBuildingModuleLocation()
◆ emitCodeContext()
|
|
inlineoverrideprotectedvirtual |
◆ emitDiagnosticLoc()
Print out the file/line/column information and include trace.
This method handlen the emission of the diagnostic location information. This includes extracting as much location information as is present for the diagnostic and printing it, as well as any include stack or source ranges necessary.
Implements clang::DiagnosticRenderer.
Definition at line 245 of file SARIFDiagnostic.cpp.
◆ emitDiagnosticMessage()
Implements clang::DiagnosticRenderer.
Definition at line 77 of file SARIFDiagnostic.cpp.
References clang::addDiagnosticLevelToRule(), clang::SarifResult::create(), clang::SarifRule::create(), Diag(), clang::DiagnosticIDs::getLegacyStableIDs(), clang::DiagnosticIDs::getStableID(), clang::SourceLocation::isValid(), clang::Result, clang::SarifRule::setDeprecatedIds(), clang::SarifResult::setDiagnosticMessage(), and clang::SarifRule::setRuleId().
◆ emitImportLocation()
◆ emitIncludeLocation()
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: