Skip to content

Unknown preprocessor symbol (UnknownPreprocessorSymbol)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL
OS
Critical Yes 5 standard
error

Description

The use of unknown preprocessor symbols is unacceptable, this can lead to various errors, including logical ones, when, for some reason, the platform will miss an error by simply ignoring the written code.

Snippets

Diagnostic ignorance in code

// BSLLS:UnknownPreprocessorSymbol-off
// BSLLS:UnknownPreprocessorSymbol-on

Parameter for config

"UnknownPreprocessorSymbol": false