[PATCH] D116577: [clang-tidy] Added "boost-use-range-based-for-loop" check

Denis Mikhailov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 26 04:14:47 PST 2022


denzor200 planned changes to this revision.
denzor200 added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/boost-use-range-based-for-loop.cpp:22
+
+#define BOOST_FOREACH(VAR, COL)         for(VAR;(COL, false);)
+#define IDENTITY_TYPE(...) __VA_ARGS__
----------------
Unfortunately, example does not correspond to the real `BOOST_FOREACH`, the tests do not reveal real problems. Will have to redo. I will come back to this patch in the future


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116577/new/

https://reviews.llvm.org/D116577



More information about the cfe-commits mailing list