[clang-tools-extra] [clang-tidy] Ignore `if consteval` in else-after-return (PR #91588)
Danny Mösch via cfe-commits
cfe-commits at lists.llvm.org
Mon May 13 04:05:22 PDT 2024
================
@@ -337,6 +337,10 @@ Changes in existing checks
<clang-tidy/checks/readability/duplicate-include>` check by excluding include
directives that form the filename using macro.
+- Improved :doc:`readability-else-after-return
+ <clang-tidy/checks/readability/else-after-return>` check to ignore
+ `consteval if` condition, where need to retain the else statement.
----------------
SimplyDanny wrote:
```suggestion
`if consteval` statements, for which the `else` branch must not be removed.
```
https://github.com/llvm/llvm-project/pull/91588
More information about the cfe-commits
mailing list