Skip to content

[clang-tidy] readability-use-concise-preprocessor-directives provides invalid fix-it #157527

@localspook

Description

@localspook

This:

#if(defined(FOO))
#endif

becomes

#ifdefFOO
#endif

(It fails to add a space.) Godbolt.

Metadata

Metadata

Assignees

Labels

clang-tidyinvalid-code-generationTool (e.g. clang-format) produced invalid code that no longer compiles

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions