CompatSettings class
#include <slang/driver/CompatSettings.h>
Collected settings for increasing compatibility with other tools.
Public functions
- void setMode(CompatMode newMode)
- Sets the compatibility mode that should be used when calling other methods on this class.
-
std::
span<const ast:: CompilationFlags> getCompilationFlags() const - Gets the compilation flags implied by the current compat mode.
-
std::
span<const analysis:: AnalysisFlags> getAnalysisFlags() const - Gets the analysis flags implied by the current compat mode.
- void configureDiagnostics(DiagnosticEngine& diagEngine) const
- Configures the given diagnostic engine appropriately for the current compat mode.