| Issue |
110089
|
| Summary |
[clang-tidy] false positive for misc-redundant-_expression_ with fold-_expression_
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
schenker
|
In some cases, clang-tidy reports a false-positive misc-redundant-_expression_ for fold expressions that contain the same value more than once (https://godbolt.org/z/YfThnE9Wh):
```
#include <type_traits>
template<typename... Args>
constexpr bool all_true = (... && Args::value);
constexpr bool result = all_true<std::true_type, std::true_type, std::true_type>;
```
Output:
```
<source>:4:28: warning: both sides of operator are equivalent [misc-redundant-_expression_]
4 | constexpr bool all_true = (... && Args::value);
|
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs