diff options
| author | Alexander Kornienko <alexfh@google.com> | 2018-02-28 14:47:20 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2018-02-28 14:47:20 +0000 |
| commit | a1a29336340080d33893f82d5bf369df11615d58 (patch) | |
| tree | 201f199921c8ee58b8abe9665390d829128af9f8 /clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst | |
| parent | 7e4eee98311dcecc782a93265e62934570e096c1 (diff) | |
| download | bcm5719-llvm-a1a29336340080d33893f82d5bf369df11615d58.tar.gz bcm5719-llvm-a1a29336340080d33893f82d5bf369df11615d58.zip | |
Rename a few checks from misc- to bugprone-.
Summary:
rename_check.py {misc,bugprone}-forwarding-reference-overload
rename_check.py {misc,bugprone}-macro-repeated-side-effects
rename_check.py {misc,bugprone}-lambda-function-name
rename_check.py {misc,bugprone}-misplaced-widening-cast
Reviewers: hokein, sammccall, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: klimek, cfe-commits, mgorny
Differential Revision: https://reviews.llvm.org/D43867
llvm-svn: 326327
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst')
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst deleted file mode 100644 index 1ab584c1411..00000000000 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-lambda-function-name.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. title:: clang-tidy - misc-lambda-function-name - -misc-lambda-function-name -========================= - -Checks for attempts to get the name of a function from within a lambda -expression. The name of a lambda is always something like ``operator()``, which -is almost never what was intended. - -Example: - -.. code-block:: c++ - - void FancyFunction() { - [] { printf("Called from %s\n", __func__); }(); - [] { printf("Now called from %s\n", __FUNCTION__); }(); - } - -Output:: - - Called from operator() - Now called from operator() - -Likely intended output:: - - Called from FancyFunction - Now called from FancyFunction |

