[clang-tools-extra] [clang-tidy] Make range source classes configurable (PR #226193)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 29 00:16:40 PDT 2026
================
@@ -59,6 +59,15 @@ Options
Semicolon-separated list of names of vector-like classes. By default only
``::std::vector`` is considered.
+.. option:: ForRangeLoopClasses
+
+ Semicolon-separated list of names of container classes that can be used as
+ sources in range-based for loops. Each configured class must provide an
+ accessible ``size()`` method whose result is the number of elements visited
+ by the loop. Defaults to
+ ``::std::vector``, ``::std::set``, ``::std::unordered_set``, ``::std::map``,
+ ``::std::unordered_map``, ``::std::array``, and ``::std::deque``.
----------------
algol83 wrote:
Done in 022c83d. I sorted both the documented list and the default option value alphabetically. I also fixed the duplicate `std::unordered_set` entry in the preceding list.
https://github.com/llvm/llvm-project/pull/226193
More information about the cfe-commits
mailing list