aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorCarlos Galvez <carlosgalvezp@gmail.com>2023-03-28 13:53:48 +0000
committerCarlos Galvez <carlosgalvezp@gmail.com>2023-03-28 20:36:34 +0000
commit4d4c0f9734607bb0423593b060b8fa73c06fe3d3 (patch)
tree393a32f8a042a55608d36226675bf64e9e90409b /clang/lib/Lex/ModuleMap.cpp
parent302079ae9ac044acb2343fcc9abf7c47d88336ea (diff)
downloadllvm-4d4c0f9734607bb0423593b060b8fa73c06fe3d3.zip
llvm-4d4c0f9734607bb0423593b060b8fa73c06fe3d3.tar.gz
llvm-4d4c0f9734607bb0423593b060b8fa73c06fe3d3.tar.bz2
[clang-tidy] Add option to ignore capture default by reference in cppcoreguidelines-avoid-capture-default-when-capturing-this
The rule exists primarily for when using capture default by copy "[=]", since member variables will be captured by reference, which is against developer expectations. However when the capture default is by reference, then there is no doubt: everything will be captured by reference. Add an option to allow just that. Note: Release Notes do not need update since this check has been introduced in the current WIP release. A ticket has been opened at the C++ Core Guidelines repo to consider updating the rule such that this behavior is the default one: https://github.com/isocpp/CppCoreGuidelines/issues/2060 Differential Revision: https://reviews.llvm.org/D147062
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions