[clang-tools-extra] [clang-tidy] readability-enum-initial-value: add AllowConsecutiveInitialValuesExceptLast (PR #228399)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 19:06:30 PST 2026
https://github.com/zeyi2 commented:
I notice that there is an assertion failure with the new option enabled:
```cpp
template <typename T, T V>
struct S { enum E { A = V, B = V + 1, Size }; };
```
It crashes with `Assertion `!isValueDependent() && "Expression evaluator can't be called on a dependent expression."' failed.`
Could you please fix this and also add a template test for this?
https://github.com/llvm/llvm-project/pull/228399
More information about the cfe-commits
mailing list