summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-08-10 12:54:05 +0000
committerAlexander Kornienko <alexfh@google.com>2017-08-10 12:54:05 +0000
commit83eae8724ef6dc32725a6c634b67194596f2000d (patch)
tree7d5f86a3ad92b4518422f5687e67613fa52f7da9 /clang-tools-extra
parenta4d94689fc9eaa23706d6dcea8a99124c4ff2a17 (diff)
downloadbcm5719-llvm-83eae8724ef6dc32725a6c634b67194596f2000d.tar.gz
bcm5719-llvm-83eae8724ef6dc32725a6c634b67194596f2000d.zip
[clang-tidy] Updated docs and release notes for r310584
llvm-svn: 310587
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/docs/ReleaseNotes.rst11
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst12
2 files changed, 19 insertions, 4 deletions
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst
index f67a03ec6a0..3cdfeeb00b4 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -57,26 +57,29 @@ The improvements are...
Improvements to clang-tidy
--------------------------
-* Renamed checks to use correct term "implicit conversion" instead of "implicit
+- Renamed checks to use correct term "implicit conversion" instead of "implicit
cast" and modified messages and option names accordingly:
- - **performance-implicit-cast-in-loop** was renamed to
+ * **performance-implicit-cast-in-loop** was renamed to
`performance-implicit-conversion-in-loop
<http://clang.llvm.org/extra/clang-tidy/checks/performance-implicit-conversion-in-loop.html>`_
- - **readability-implicit-bool-cast** was renamed to
+ * **readability-implicit-bool-cast** was renamed to
`readability-implicit-bool-conversion
<http://clang.llvm.org/extra/clang-tidy/checks/readability-implicit-bool-conversion.html>`_;
the check's options were renamed as follows:
``AllowConditionalIntegerCasts`` -> ``AllowIntegerConditions``,
``AllowConditionalPointerCasts`` -> ``AllowPointerConditions``.
-
- New `readability-static-accessed-through-instance
<http://clang.llvm.org/extra/clang-tidy/checks/readability-static-accessed-through-instance.html>`_ check
Finds member expressions that access static members through instances and
replaces them with uses of the appropriate qualified-id.
+- Added `modernize-use-emplace.IgnoreImplicitConstructors
+ <http://clang.llvm.org/extra/clang-tidy/checks/modernize-use-emplace.html#cmdoption-arg-IgnoreImplicitConstructors>`_
+ option.
+
Improvements to include-fixer
-----------------------------
diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst
index dee79ab8e3a..533125e9bf0 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst
@@ -102,6 +102,18 @@ Options
Semicolon-separated list of class names of custom containers that support
``push_back``.
+.. option:: IgnoreImplicitConstructors
+
+ When non-zero, the check will ignore implicitly constructed arguments of
+ ``push_back``, e.g.
+
+ .. code-block:: c++
+
+ std::vector<std::string> v;
+ v.push_back("a"); // Ignored when IgnoreImplicitConstructors is ``1``.
+
+ Default is ``0``.
+
.. option:: SmartPointers
Semicolon-separated list of class names of custom smart pointers.
OpenPOWER on IntegriCloud