llvm-project/clang-tools-extra/test/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
..
Inputs Only copy small types in modernize-loop-convert. 2015-10-30 09:37:57 +00:00
basic.cpp [clang-tidy] Move the missing namespace comment warnings to the closing brace 2014-11-17 17:32:32 +00:00
cert-setlongjmp.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
cert-throw-exception-type.cpp 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
cert-variadic-function-def.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
check_clang_tidy.py Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
clang-tidy-diff.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
config-files.cpp [clang-tidy] Don't ignore default set of checks when a config file is found. 2015-02-05 14:50:17 +00:00
cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp [clang-tidy] Add new check cppcoreguidelines-pro-bounds-array-to-pointer-decay 2015-10-26 21:56:02 +00:00
cppcoreguidelines-pro-bounds-pointer-arithmetic.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
cppcoreguidelines-pro-type-const-cast.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
cppcoreguidelines-pro-type-cstyle-cast.cpp [clang-tidy] add new check cppcoreguidelines-pro-type-cstyle-cast 2015-11-08 21:10:39 +00:00
cppcoreguidelines-pro-type-reinterpret-cast.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
cppcoreguidelines-pro-type-static-cast-downcast.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
cppcoreguidelines-pro-type-union-access.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
cppcoreguidelines-pro-type-vararg.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
custom-diagnostics.cpp Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files. 2015-11-09 16:28:11 +00:00
deduplication.cpp [clang-tidy] Support initializer_list in google-explicit-constructor check 2014-11-27 11:11:47 +00:00
diagnostic.cpp [clang-tidy] Added missing check lines, made the checking stricter. 2015-09-30 13:32:42 +00:00
file-filter.cpp Tweak clang-tools-extra/test/clang-tidy/file-filter.cpp to pass on win32. 2015-08-20 15:04:39 +00:00
fix-errors.cpp [clang-tidy] Added -fix-errors option 2014-11-03 14:06:31 +00:00
fix.cpp [clang-tidy] Add an option to export suggested fixes into a file. 2014-09-04 10:31:23 +00:00
google-build-explicit-make-pair.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
google-explicit-constructor.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
google-module.cpp [clang-tidy] Set google-readability-namespace-comments.ShortNamespaceLines to 10 2014-11-20 15:05:32 +00:00
google-namespaces.cpp [clang-tidy] Add namespaces checkers. 2014-07-16 14:16:56 +00:00
google-overloaded-unary-and.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
google-readability-casting.c Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
google-readability-casting.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
google-readability-namespace-comments.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
google-readability-todo.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
google-runtime-int-std.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
google-runtime-int.c [clang-tidy] google-runtime-int: Don't check C code. 2014-12-08 11:17:25 +00:00
google-runtime-int.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
google-runtime-member-string-references.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
google-runtime-memset-zero-length.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
line-filter.cpp [clang-tidy] Support initializer_list in google-explicit-constructor check 2014-11-27 11:11:47 +00:00
llvm-include-order.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
llvm-twine-local.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
macros.cpp [clang-tidy] Support initializer_list in google-explicit-constructor check 2014-11-27 11:11:47 +00:00
misc-argument-comment.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-assert-side-effect.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
misc-assign-operator-signature.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-bool-pointer-implicit-conversion.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-inaccurate-erase.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-inefficient-algorithm.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-macro-parentheses.cpp [clang-tidy] misc-macro-parentheses: fix fp when using object member pointers 2015-11-10 14:32:25 +00:00
misc-move-constructor-init.cpp Make isExpensiveToCopy() tri-state. 2015-10-23 10:00:50 +00:00
misc-new-delete-overloads-sized-dealloc.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
misc-new-delete-overloads.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
misc-noexcept-move-constructor.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-non-copyable-objects.c Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-non-copyable-objects.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-repeated-side-effects-in-macro.c Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-sizeof-container.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
misc-static-assert.c Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
misc-static-assert.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-swapped-arguments.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-throw-by-value-catch-by-reference.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
misc-undelegated-constructor-cxx98.cpp Disable clang-tidy misc checkers when not compiling in C++ mode. Many of the checkers do not require additional testing as the tests will not compile for other languages or modes, or the checkers would never match a valid construct. 2015-08-28 19:27:19 +00:00
misc-undelegated-constructor.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-uniqueptr-reset-release.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-unused-alias-decls.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-unused-parameters.c Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
misc-unused-parameters.cpp Fix bug in suggested fix that truncated variable names to 1 character. 2015-11-11 18:40:36 +00:00
misc-unused-raii.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
modernize-loop-convert-basic.cpp Use the old index identifier by default, instead of 'elem'. 2015-11-06 15:03:14 +00:00
modernize-loop-convert-camelback.cpp Use the old index identifier by default, instead of 'elem'. 2015-11-06 15:03:14 +00:00
modernize-loop-convert-const.cpp Use the old index identifier by default, instead of 'elem'. 2015-11-06 15:03:14 +00:00
modernize-loop-convert-extra.cpp Allow the alias to be of a different type. 2015-11-06 15:47:04 +00:00
modernize-loop-convert-lowercase.cpp Use the old index identifier by default, instead of 'elem'. 2015-11-06 15:03:14 +00:00
modernize-loop-convert-negative.cpp Handle correctly containers that are data members in modernize-loop-convert. 2015-11-03 16:38:31 +00:00
modernize-loop-convert-uppercase.cpp Use the old index identifier by default, instead of 'elem'. 2015-11-06 15:03:14 +00:00
modernize-loop-convert.c Disable several more clang-tidy modernize checkers when not compiling in C++ mode. Loop conversion would make recommendations for C code, so added a test to ensure that does not happen. The pass by value, use auto and replace auto_ptr checkers would not make recommendations for C code, and are disabled for performance reasons, but do not require an extra test. 2015-08-28 17:58:10 +00:00
modernize-make-unique.cpp Improve modernize-make-unique matcher. 2015-11-04 10:27:51 +00:00
modernize-pass-by-value.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
modernize-redundant-void-arg.c Change test to just define NULL instead of #including stddef.h. In some 2015-10-28 14:51:09 +00:00
modernize-redundant-void-arg.cpp Fix another crash in the redundant-void-arg check. 2015-11-02 16:18:23 +00:00
modernize-replace-auto-ptr.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
modernize-shrink-to-fit.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
modernize-use-auto-iterator.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
modernize-use-auto-new.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
modernize-use-default-copy.cpp Try to fix buildbots failure. 2015-11-02 10:54:50 +00:00
modernize-use-default.cpp Try to fix buildbots failure. 2015-11-02 10:54:50 +00:00
modernize-use-nullptr-basic.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
modernize-use-nullptr.c 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
modernize-use-nullptr.cpp Remove unreachable that was reached in modernize-use-nullptr. 2015-11-02 15:28:06 +00:00
modernize-use-override-cxx98.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
modernize-use-override.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
nolint.cpp [clang-tidy] Support initializer_list in google-explicit-constructor check 2014-11-27 11:11:47 +00:00
overlapping.cpp Replacements in different files do not overlap. 2015-10-16 16:15:27 +00:00
readability-braces-around-statements-few-lines.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-braces-around-statements-same-line.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-braces-around-statements-single-line.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-braces-around-statements.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
readability-container-size-empty.cpp [clang-tidy] Fix message style (capitalization, trailing period). 2015-11-09 15:53:28 +00:00
readability-else-after-return.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
readability-function-size.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-identifier-naming.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-implicit-bool-cast-allow-conditional-casts.cpp [clang-tidy] Add check readability-implicit-bool-cast 2015-10-25 15:31:25 +00:00
readability-implicit-bool-cast-cxx98.cpp [clang-tidy] Another fix for failing buildbots regarding signedness of char 2015-10-25 17:11:13 +00:00
readability-implicit-bool-cast.cpp [clang-tidy] Another fix for failing buildbots regarding signedness of char 2015-10-25 17:11:13 +00:00
readability-inconsistent-declaration-parameter-name.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-named-parameter.cpp [clang-tidy] readability-named-parameter: don't complain about implicit parameters 2015-11-06 00:19:21 +00:00
readability-redundant-smartptr-get.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
readability-redundant-string-cstr.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
readability-simplify-bool-expr-chained-conditional-assignment.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-simplify-bool-expr-chained-conditional-return.cpp Switch check_clang_tidy to argparse and add a -resource-dir argument. 2015-10-22 14:54:50 +00:00
readability-simplify-bool-expr.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
readability-uniqueptr-delete-release.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
select-checks.cpp [clang-tidy] Move the missing namespace comment warnings to the closing brace 2014-11-17 17:32:32 +00:00
serialize-diagnostics.cpp [clang-tidy] Make a test independent of the default check set. 2014-12-03 13:48:46 +00:00
static-analyzer-config.cpp [clang-tidy] Static Analyzer checker configuration options pass-through. 2015-03-11 17:25:22 +00:00
static-analyzer.cpp Change the behavior of clang-tidy -checks=, remove -disable-checks. 2014-05-15 14:27:36 +00:00
temporaries.cpp Change the behavior of clang-tidy -checks=, remove -disable-checks. 2014-05-15 14:27:36 +00:00
validate-check-names.cpp [clang-tidy] Allow use of -list-checks option without need to pass source files. 2015-08-17 10:03:27 +00:00