do not allow floating point literals in preprocessor checks
cppcheck-opensource / simplecpp Public
-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
opened
#if A == 1.0 int i; #endif
This is handled properly but preprocessor checks only support integral expressions. It is also rejected by all major compilers.
Metadata
Metadata
Assignees
No one assigned
Labels
No labels
No labels
Type
No type
Fields
No fields configured for issues without a type.
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests