Missing typo correction diagnostic in preprocessor conditionals #51598
Labels
bugzilla
Issues migrated from bugzilla
c23
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
enhancement
Improving things as opposed to bug fixing, e.g. new or missing feature
Extended Description
Consider the following code, and assume that FOO is not defined:
In this case, we do not issue any diagnostic about the typo where
#elifdef
is misspelled as#elfidef
because it appears within a preprocessor branch that is discarded.When scanning for the end of the discarded block, we should consider typo corrections for non-directives to help catch this sort of mistake.
The text was updated successfully, but these errors were encountered: