llvm-project/clang-tools-extra/clang-tidy
Jesse Towner 68546c9d6f bugprone-forwarding-reference-overload: support non-type template parameters
Many concepts emulation libraries, such as the one found in Range v3, tend to
use non-type template parameters for the enable_if type expression, due to
their versatility in template functions and constructors containing variadic
template parameter packs.

Unfortunately the bugprone-forwarding-reference-overload check does not
handle non-type template parameters, as was first noted in this bug report:
https://bugs.llvm.org/show_bug.cgi?id=38081

This patch fixes this long standing issue and allows for the check to be suppressed
with the use of a non-type template parameter containing enable_if or enable_if_t in
the type expression, so long as it has a default literal value.
2021-07-29 07:01:19 -04:00
..
abseil [ADT] Remove APInt/APSInt toString() std::string variants 2021-06-11 13:19:15 +01:00
altera [clang-tools-extra] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
android
boost
bugprone bugprone-forwarding-reference-overload: support non-type template parameters 2021-07-29 07:01:19 -04:00
cert [clang-tidy][NFC] Update tests and Default options to use boolean value 2021-05-04 18:17:56 +01:00
concurrency [clang-tidy] Add new check 'concurrency-thread-canceltype-asynchronous' and alias 'cert-pos47-c'. 2021-02-22 12:42:20 +01:00
cppcoreguidelines Fix assigned-but-unused (except in an assert) warning with a void cast 2021-07-21 17:12:22 -07:00
darwin
fuchsia
google
hicpp
linuxkernel
llvm [clang-tidy][NFC] Update tests and Default options to use boolean value 2021-05-04 18:17:56 +01:00
llvmlibc
misc [clang-tidy] Don't suggest "inline" fix for main function in 2021-07-20 14:24:38 +02:00
modernize [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
mpi [clang-tidy] Fix mpi checks when running multiple TUs per clang-tidy process 2021-03-25 14:38:37 +00:00
objc
openmp
performance [clang-tidy] performance-unnecessary-copy-initialization: Create option to exclude container types from triggering the check. 2021-07-22 16:20:20 -04:00
plugin
portability [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
readability [clang-tidy] Add 'readability-suspicious-call-argument' check 2021-07-19 10:18:09 +02:00
tool [clang-tidy] ensure run-clang-tidy reports children killed by signals 2021-07-19 14:18:26 +02:00
utils [clang-tidy] bugprone-infinite-loop: forFunction() -> forCallable(). 2021-05-13 11:25:01 -07:00
zircon
CMakeLists.txt
ClangTidy.cpp [libtooling][clang-tidy] Fix diagnostics not highlighting fed SourceRanges 2021-04-10 16:43:44 +02:00
ClangTidy.h [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00
ClangTidyCheck.cpp [clang-tools-extra] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
ClangTidyCheck.h [clang-tidy] Remove OptionError 2021-03-01 17:55:17 +00:00
ClangTidyDiagnosticConsumer.cpp Remark was added to clang tooling Diagnostic 2021-05-24 11:21:44 -04:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00
ClangTidyForceLinker.h
ClangTidyModule.cpp
ClangTidyModule.h
ClangTidyModuleRegistry.h
ClangTidyOptions.cpp
ClangTidyOptions.h
ClangTidyProfiling.cpp
ClangTidyProfiling.h
ExpandModularHeadersPPCallbacks.cpp [NFC] Unify FIME with FIXME in comments 2021-03-10 14:00:51 +01:00
ExpandModularHeadersPPCallbacks.h
GlobList.cpp [clang-tidy] Ignore all spaces in the list of checks 2021-03-24 06:43:13 -07:00
GlobList.h
add_new_check.py
clang-tidy-config.h.cmake
rename_check.py