Skip to content

Commit 880c9a2

Browse files
committed
fix: use-emplace.rst EmplacyFunctions option
1 parent a9f7d9b commit 880c9a2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clang-tools-extra/docs/clang-tidy/checks/modernize/use-emplace.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,8 @@ Options
163163
Semicolon-separated list of containers without their template parameters
164164
and some ``emplace``-like method of the container. Example:
165165
``vector::emplace_back``. Those methods will be checked for improper use and
166-
the check will report when a temporary is unnecessarily created. Default
167-
containers with their ``emplace``-like methods are ``vector``, ``deque``,
168-
``forward_list``, ``list``, ``set``, ``map``, ``multiset``, ``multimap``,
169-
``unordered_set``, ``unordered_map``, ``unordered_multiset``,
170-
``unordered_multimap``, ``stack``, ``queue``, ``priority_queue``.
166+
the check will report when a temporary is unnecessarily created. All STL
167+
containers with such member functions are supported by default.
171168

172169
Example
173170
^^^^^^^

0 commit comments

Comments
 (0)