-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac23clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerenhancementImproving things as opposed to bug fixing, e.g. new or missing featureImproving things as opposed to bug fixing, e.g. new or missing feature
Description
| Bugzilla Link | 52256 |
| Version | trunk |
| OS | Windows NT |
| CC | @zygoloid |
Extended Description
Consider the following code, and assume that FOO is not defined:
#ifdef FOO
#elfidef BAR
#endif
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.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac23clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerenhancementImproving things as opposed to bug fixing, e.g. new or missing featureImproving things as opposed to bug fixing, e.g. new or missing feature