summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/ReleaseNotes.rst
diff options
context:
space:
mode:
authorZachary Turner <zturner@roblox.com>2019-11-20 11:27:14 -0800
committerZachary Turner <zturner@roblox.com>2019-12-02 15:36:26 -0800
commit64f74bf72eb484aa32e1104050cb54745116decf (patch)
tree16787356f6c7c67b23b603098880a12eb55fca28 /clang-tools-extra/docs/ReleaseNotes.rst
parent87f146767ed709f6e354fe46f325c5b6848ad428 (diff)
downloadbcm5719-llvm-64f74bf72eb484aa32e1104050cb54745116decf.tar.gz
bcm5719-llvm-64f74bf72eb484aa32e1104050cb54745116decf.zip
[clang-tidy] Rewrite modernize-avoid-bind check.
This represents largely a full re-write of modernize-avoid-bind, adding significant new functionality in the process. In particular: * Both boost::bind and std::bind are now supported * Function objects are supported in addition to functions * Member functions are supported * Nested calls are supported using capture-init syntax * std::ref() and boost::ref() are now recognized, and will capture by reference. * Rather than capturing with a global =, we now build up an individual capture list that is both necessary and sufficient for the call. * Fixits are supported in a much larger variety of scenarios than before. All previous tests pass under the re-write, but a large number of new tests have been added as well. Differential Revision: https://reviews.llvm.org/D70368
Diffstat (limited to 'clang-tools-extra/docs/ReleaseNotes.rst')
-rw-r--r--clang-tools-extra/docs/ReleaseNotes.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst
index b96feecdf3d..91a196deb6f 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -196,6 +196,14 @@ Improvements to clang-tidy
<clang-tidy/checks/readability-redundant-string-init>` check now supports a
`StringNames` option enabling its application to custom string classes.
+- Improved :doc:`modernize-avoid-bind
+ <clang-tidy/checks/modernize-avoid-bind>` check.
+
+ The check now supports supports diagnosing and fixing arbitrary callables instead of
+ only simple free functions. The `PermissiveParameterList` option has also been
+ added to address situations where the existing fix-it logic would sometimes generate
+ code that no longer compiles.
+
Improvements to include-fixer
-----------------------------
OpenPOWER on IntegriCloud