philipp-hackerman
philipp-hackerman
readability-trailing-comma — false positive + non-converging --fix on nested designated initializer
`clang-tidy --checks='-*,readability-trailing-comma' test.cpp -- -std=c++20 -Wno-c99-designator` What happens: --fix removes the trailing comma on .y.v = v, then a re-run complains it's missing and wants it back. The fix never...
`clang-tidy --checks='-*,readability-trailing-comma' test.cpp -- -std=c++20 -Wno-c99-designator` What happens: --fix removes the commas from .a = a, and .b = b,, turning them into .a = a.b = b, which is...
`clang-tidy --checks='-*,readability-redundant-parentheses' test.cpp -- -std=c++20` What happens: the check reports "redundant parentheses around expression" on (`ok()`) inside a requires-clause and offers to remove them. But `ok()` is a postfix-expression, not...
`clang-tidy --checks='-*,readability-trailing-comma' test.cpp -- -std=c++20` What happens: the check reports "enum should have a trailing comma" and inserts , right after `#endif`. But both branches already end their last enumerator...
[clang-tidy] readability-uppercase-literal-suffix: spurious warning for consteval UDL ending in 'z'
```c++ // Probe: clang-tidy's readability-uppercase-literal-suffix check // emits a spurious diagnostic when a user-defined literal's // identifier terminates in the character 'z' (e.g. 0_goz). // // The check fires with:...