llvm-project/clang-tools-extra/clang-tidy
Aaron Ballman 5a786ddf4c Add a new clang-tidy checker that flags throw expressions whose thrown type is not nothrow copy constructible. While the compiler is free to elide copy constructor calls in some cases, it is under no obligation to do so, which makes the code a portability concern as well as a security concern.
This checker corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/ERR60-CPP.+Exception+objects+must+be+nothrow+copy+constructible

llvm-svn: 253246
2015-11-16 19:17:43 +00:00
..
cert Add a new clang-tidy checker that flags throw expressions whose thrown type is not nothrow copy constructible. While the compiler is free to elide copy constructor calls in some cases, it is under no obligation to do so, which makes the code a portability concern as well as a security concern. 2015-11-16 19:17:43 +00:00
cppcoreguidelines [clang-tidy] add new check cppcoreguidelines-pro-type-cstyle-cast 2015-11-08 21:10:39 +00:00
google Refactors AST matching code to use the new AST matcher names. This patch correlates to r247885 which performs the AST matcher rename in Clang. 2015-09-17 13:31:25 +00:00
llvm [clang-tidy] Fix llvm-include-order check on Windows. 2015-09-04 15:46:51 +00:00
misc Fix bug in suggested fix that truncated variable names to 1 character. 2015-11-11 18:40:36 +00:00
modernize Allow the alias to be of a different type. 2015-11-06 15:47:04 +00:00
readability [clang-tidy] Fix message style (capitalization, trailing period). 2015-11-09 15:53:28 +00:00
tool Add a new module for the C++ Core Guidelines, and the first checker for those guidelines: cppcoreguidelines-pro-type-reinterpret-cast. 2015-10-06 13:31:00 +00:00
utils Make isExpensiveToCopy() tri-state. 2015-10-23 10:00:50 +00:00
CMakeLists.txt Add a new module for the C++ Core Guidelines, and the first checker for those guidelines: cppcoreguidelines-pro-type-reinterpret-cast. 2015-10-06 13:31:00 +00:00
ClangTidy.cpp [clang-tidy] Test commit (playing with git-svn) 2015-11-16 13:06:15 +00:00
ClangTidy.h Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes to modernize their code. 2015-08-28 13:20:46 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Test commit (playing with git-svn) 2015-11-16 13:06:15 +00:00
ClangTidyDiagnosticConsumer.h Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files. 2015-11-09 16:28:11 +00:00
ClangTidyModule.cpp [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModule.h Revert "Apply modernize-use-default to clang-tools-extra." 2015-10-20 21:45:52 +00:00
ClangTidyModuleRegistry.h [clang-tidy] Fixed header guards using clang-tidy llvm-header-guard check. NFC. 2015-03-09 16:52:33 +00:00
ClangTidyOptions.cpp Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files. 2015-11-09 16:28:11 +00:00
ClangTidyOptions.h Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files. 2015-11-09 16:28:11 +00:00
Makefile Add a new module for the C++ Core Guidelines, and the first checker for those guidelines: cppcoreguidelines-pro-type-reinterpret-cast. 2015-10-06 13:31:00 +00:00
add_new_check.py clang-tidy/add_new_check.py: Adapt to use %check_clang_tidy in tests 2015-10-26 21:48:08 +00:00
rename_check.py [clang-tidy] Python script for easy check rename 2015-10-11 07:58:34 +00:00