================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits