Open Hedede opened 2 years ago
Clang 14.0.0 I have a macro like this:
#define GET_ARG(...) do { get_arg_impl(__VA_ARGS__); } while(false)
clang-tidy suggests adding #pragma unroll even though that doesn't make sense because this is a single-iteration loop.
#pragma unroll
@llvm/issue-subscribers-clang-tidy
I have the same issue with the log macros in Zephyr. I'm surprised that this isn't a bigger issue for people. Is there a easy work around I'm missing?
Clang 14.0.0 I have a macro like this:
clang-tidy suggests adding
#pragma unroll
even though that doesn't make sense because this is a single-iteration loop.