vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Mistyped standard attributes should give a warning

Open cD1rtX3 opened this issue 1 week ago • 6 comments

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:

cD1rtX3 avatar Dec 08 '25 22:12 cD1rtX3