PiotrZSL added inline comments.
================ Comment at: clang-tools-extra/test/clang-tidy/checkers/readability/avoid-unconditional-preprocessor-if.cpp:67-69 +#if 10 > DDD +// some code +#endif ---------------- carlosgalvezp wrote: > Add case for if 10 < DDD ? > > Also, add test case for comparing 2 macros? If people follow the "no magic > numbers" policy they'll likely have defines for both sides of the comparison. I don't support currently macros, would need to check if they defined unconditionally in same file, and I didn't want to mess with this. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145617/new/ https://reviews.llvm.org/D145617 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits