Repository navigation
Commit 663d816
Fix #15079 FP syntaxError for C-style cast before scope operator
The check added in a294079 (#15060) reports every `)` followed by `::`
unless the `(` belongs to a control flow keyword or decltype. That also
rejects valid code like `(HWND)::SendMessage(...)` or placement new
`new (p) ::N::T`, so whole translation units are skipped.
Only report when the parenthesis follows a non-keyword name, which is the
unknown macro case the check was added for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent fa6c1f1 commit 663d816
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9177 | 9177 | | |
9178 | 9178 | | |
9179 | 9179 | | |
| 9180 | + | |
| 9181 | + | |
9180 | 9182 | | |
9181 | | - | |
9182 | | - | |
| 9183 | + | |
| 9184 | + | |
9183 | 9185 | | |
9184 | 9186 | | |
9185 | 9187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8135 | 8135 | | |
8136 | 8136 | | |
8137 | 8137 | | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
| 8146 | + | |
| 8147 | + | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
| 8153 | + | |
8138 | 8154 | | |
8139 | 8155 | | |
8140 | 8156 | | |
| |||
0 commit comments