struct PathDiagnosticConsumerOptions

Declaration

struct PathDiagnosticConsumerOptions { /* full declaration omitted */ };

Description

These options tweak the behavior of path diangostic consumers. Most of these options are currently supported by very few consumers.

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:61

Member Variables

public std::string ToolInvocation
Run-line of the tool that produced the diagnostic. It can be included with the diagnostic for debugging purposes.
public bool ShouldDisplayMacroExpansions = false
Whether to include additional information about macro expansions with the diagnostics, because otherwise they can be hard to obtain without re-compiling the program under analysis.
public bool ShouldSerializeStats = false
Whether to include LLVM statistics of the process in the diagnostic. Useful for profiling the tool on large real-world codebases.
public bool ShouldWriteVerboseReportFilename = false
If the consumer intends to produce multiple output files, should it use a pseudo-random file name name or a human-readable file name.
public bool ShouldDisplayWarningsAsErrors = false
Whether the consumer should treat consumed diagnostics as hard errors. Useful for breaking your build when issues are found.
public bool ShouldApplyFixIts = false
Whether the consumer should attempt to rewrite the source file with fix-it hints attached to the diagnostics it consumes.
public bool ShouldDisplayDiagnosticName = false
Whether the consumer should present the name of the entity that emitted the diagnostic (eg., a checker) so that the user knew how to disable it.