Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing typo correction diagnostic in preprocessor conditionals #51598

Closed
Labels
bugzillaIssues migrated from bugzillac23clang:diagnosticsNew/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 feature
@AaronBallman

Description

@AaronBallman
Bugzilla Link52256
Versiontrunk
OSWindows 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

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac23clang:diagnosticsNew/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 feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp