aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorPascal Jungblut <github@pascalj.de>2024-07-01 21:12:42 +0200
committerGitHub <noreply@github.com>2024-07-01 21:12:42 +0200
commit7c50187b7d7a977144372ceff306d21d71e22e26 (patch)
tree0cd1a28a17687fd7258e79bd078ed45d38201777 /lldb/source/Commands/CommandObjectSource.cpp
parent9a4f57ec1e6e08db201d42137552b6d97c6d4d25 (diff)
downloadllvm-7c50187b7d7a977144372ceff306d21d71e22e26.zip
llvm-7c50187b7d7a977144372ceff306d21d71e22e26.tar.gz
llvm-7c50187b7d7a977144372ceff306d21d71e22e26.tar.bz2
[clang-tidy] Option to ignore anonymous namespaces in avoid-non-const-global-variables (#93827)
Add an option to ignore warnings for cppcoreguidelines avoid-non-const-global-variables. Understandably, the core guidelines discourage non const global variables, even at the TU level (see https://github.com/isocpp/CppCoreGuidelines/issues/2195). However, having a small TU with an interface that uses a non const variable from an anonymous namespace can be a valid choice. This adds an option that disables the warning just for anonymous namespaces, i.e. at the file level. The default is still to show a warning, just as before.
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
0 files changed, 0 insertions, 0 deletions