Query module AV Rule 30

name
AV Rule 30
description
The #define pre-processor directive shall not be used to define constant values. Instead, the const qualifier shall be applied to variable declarations to specify constant values.
kind
problem
id
cpp/jsf/av-rule-30
problem.severity
error
tags
maintainability external/jsf

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Predicates

commonMacro

List macros that are ‘common’ and should be excluded

Classes

ConstantDefMacro

A macro defining a simple constant.