[PATCH] D33497: clang-tidy check for __func__/__FUNCTION__ in lambdas
Bryce Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 24 07:41:27 PDT 2017
brycel created this revision.
Herald added a subscriber: mgorny.
Add a clang-tidy check for using __func__/__FUNCTION__ inside lambdas. This evaluates to the string `operator()`, which is almost never useful and almost certainly not what the author intended.
https://reviews.llvm.org/D33497
Files:
clang-tidy/misc/CMakeLists.txt
clang-tidy/misc/LambdaFunctionNameCheck.cpp
clang-tidy/misc/LambdaFunctionNameCheck.h
clang-tidy/misc/MiscTidyModule.cpp
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/misc-lambda-function-name.rst
test/clang-tidy/misc-lambda-function-name.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33497.100085.patch
Type: text/x-patch
Size: 6812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170524/5b1d42ea/attachment.bin>
More information about the cfe-commits
mailing list