Issue |
120285
|
Summary |
[clang-tidy] readability-simplify-boolean-expr requires redundant NOLINT to shush
|
Labels |
enhancement,
clang-tidy
|
Assignees |
|
Reporter |
LegalizeAdulthood
|
Consider the following code:
```
inline bool check( OptixResult res )
{
if( res != OPTIX_SUCCESS ) // NOLINT(readability-simplify-boolean-expr)
{
return true; // NOLINT(readability-simplify-boolean-expr)
}
return false;
}
```
The `NOLINT` on the `if` statement should also apply to the interior `return` statement, but currently clang-tidy requires both annotations to be quiet.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs