| Issue | 55436 |
|---|---|
| Summary | clang-tidy: altera-unroll-loops triggers on do {} while(false) |
| Labels | |
| Assignees | |
| Reporter | Hedede |
Clang 14.0.0
I have a macro like this:
```
#define GET_ARG(...) do { get_arg_impl(__VA_ARGS__); } while(false)
```clang-tidy suggest adding `#pragma unroll` even though that doesn't make sense because this is a single-iteration loop.
_______________________________________________ llvm-bugs mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
