Skip to content

Mistyped standard attributes should give a warning #14094

@cD1rtX3

Description

@cD1rtX3

Type: Feature Request

I recently typed code similar to this:

switch (rule) {
    case EXPRESSION:
        /* ... */
        [[falthrough]];
    default:
}
/* ... */

Where's the error? It's hard to notice, but [[fallthrough]], a statement which tells the compiler not to warn on falling through the bottom of a case, is mistyped as [[falthrough]], without one of the Ls. Technically, this isn't a syntax error, but it should be a warning in VS Code since the statement won't do anything.

Extension version: 1.29.2
VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Linux x64 6.8.0-88-generic
Modes:

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions