[clang] [clang-format] Improve annotating templates (PR #165631)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 1 21:33:46 PDT 2025
owenca wrote:
> The static_assert hinted to be an expression and when the || was hit the fate was doomed. As far as I see we can never be sure if it's an expression or a template, but we can improve the situation for common cases.
It seems to me that `static_assert` is a declaration with a boolean expression as its first argument. IMO it would be safer to fix that instead.
https://github.com/llvm/llvm-project/pull/165631
More information about the cfe-commits
mailing list