hanchenye-llvm-project/clang-tools-extra/test/clang-tidy
Aaron Ballman 527a420550 Add a new check, cert-env33-c, that diagnoses uses of system(), popen(), and _popen() to execute a command processor. This check corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=2130132
llvm-svn: 261530
2016-02-22 16:01:06 +00:00
..
Inputs [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert. 2016-02-08 15:59:42 +00:00
basic.cpp
cert-env33-c.c Add a new check, cert-env33-c, that diagnoses uses of system(), popen(), and _popen() to execute a command processor. This check corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=2130132 2016-02-22 16:01:06 +00:00
cert-flp30-c.c Add a new check, cert-flp30-c, that diagnoses loop induction expressions of floating-point type. This check corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/display/c/FLP30-C.+Do+not+use+floating-point+variables+as+loop+counters 2016-02-19 14:03:20 +00:00
cert-oop11-cpp.cpp Disable part of the misc-move-constructor-init checker when the check is enabled through cert-oop11-cpp. The CERT guideline does not cover moveable parameters as part of the OOP11-CPP recommendation, just copy construction from move constructors. 2016-01-08 15:50:51 +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-static-object-exception.cpp Force test to a target that supports thread_local 2015-12-02 01:12:06 +00:00
cert-throw-exception-type.cpp Test to ensure the function does not have an unresolved or unevaluated exception specification before testing whether the function throws or not. Fixes PR25574. 2015-11-19 20:45:35 +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 [clang-tidy] Python scripts shebang fixes 2016-01-19 16:10:39 +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
cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp Fix bug 25362 "cppcoreguidelines-pro-bounds-array-to-pointer-decay does not consider const" 2015-11-17 23:35:39 +00:00
cppcoreguidelines-pro-bounds-constant-array-index-gslheader.cpp clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-constant-array-index*.cpp: Don't assume size_t were unsigned int. 2015-12-13 22:49:37 +00:00
cppcoreguidelines-pro-bounds-constant-array-index.cpp clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-constant-array-index*.cpp: Don't assume size_t were unsigned int. 2015-12-13 22:49:37 +00:00
cppcoreguidelines-pro-bounds-pointer-arithmetic.cpp [clang-tidy] cppcoreguidelines-pro-bounds-pointer-arithmetic: ignore generated pointer arithmetic 2015-11-26 22:32:11 +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-member-init-cxx98.cpp [clang-tidy] ClangTidy check to flag uninitialized builtin and pointer fields. 2016-02-15 04:27:56 +00:00
cppcoreguidelines-pro-type-member-init.cpp [clang-tidy] ClangTidy check to flag uninitialized builtin and pointer fields. 2016-02-15 04:27:56 +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] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +00:00
diagnostic.cpp [clang-tidy] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +00:00
file-filter.cpp [clang-tidy] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +00:00
fix-errors.cpp
fix.cpp
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 [clang-tidy] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +00:00
google-module.cpp
google-namespaces.cpp [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +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 [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +00:00
google-readability-namespace-comments.cpp [clang-tidy] google-readability-namespace-comments: ignore stray semicolons 2015-12-16 15:44:42 +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
google-runtime-int.cpp [clang-tidy] google-runtime-int: fix a false positive in implicit code. 2016-02-11 16:22:58 +00:00
google-runtime-member-string-references.cpp [clang-tidy] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +00:00
google-runtime-memset-zero-length.cpp [clang-tidy] Fix a false positive in google-runtime-memset 2016-01-11 10:26:29 +00:00
google-runtime-references.cpp [clang-tidy] More friendly warning in "google-runtime-references" when meeting an unnamed function parameter. 2016-02-04 14:06:49 +00:00
line-filter.cpp [clang-tidy] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +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] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +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 Add support to the misc-assert-side-effect check for MSVC-style assert macros, which use !! instead of an if statement or a conditional operator. 2016-01-25 20:00:53 +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-definitions-in-headers.hpp [clang-tidy] bug fix: Don't warn on partial template specialization in `misc-definitions-in-headers` check. 2016-02-03 12:10:27 +00:00
misc-inaccurate-erase.cpp Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +00:00
misc-incorrect-roundings.cpp [clang-tidy] Move incorrect-roundings to upstream. 2016-02-08 10:16:13 +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-misplaced-widening-cast.cpp [clang-tidy] improve misc-misplaced-widening-cast so it also detects portability problems. 2016-02-12 07:51:10 +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 [clang-tidy] Fix a crash in misc-new-delete-overloads 2015-12-16 10:58:14 +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-string-integer-assignment.cpp [clang-tidy] Check for suspicious string assignments. 2015-12-15 08:47:20 +00:00
misc-suspicious-semicolon.cpp [clang-tidy] Add a check to find unintended semicolons that changes the semantics. 2016-02-11 09:23:33 +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
misc-virtual-near-miss.cpp Merge branch 'arcpatch-D16922' 2016-02-11 16:03:27 +00:00
modernize-loop-convert-assert-failure.cpp [clang-tidy] Fix an assert failure in `modernize-loop-convert`. 2016-02-16 10:36:51 +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 [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert. 2016-02-08 15:59:42 +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-delayed.cpp Make modernize-use-default tolerant of delayed template parsing; this code was previously causing failed assertions because dyn_cast was being passed a null pointer due to the delay-parsed body. 2016-01-20 22:14:10 +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 extra tests for handling throw() and noexcept() specifiers. 2016-01-12 21:08:27 +00:00
move-const-arg.cpp [clang-tidy] Const std::move() argument ClangTidy check 2015-11-25 15:56:11 +00:00
nolint.cpp [clang-tidy] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +00:00
overlapping.cpp Replacements in different files do not overlap. 2015-10-16 16:15:27 +00:00
performance-faster-string-find.cpp [clang-tidy] Add check performance-faster-string-find 2016-02-12 19:28:14 +00:00
performance-for-range-copy-warn-on-all-auto-copies.cpp [clang-tidy] ForRangeCopyCheck that warns on and fixes unnecessary copies of loop variables. 2016-01-29 15:54:26 +00:00
performance-for-range-copy.cpp [clang-tidy] Only invoke ForRangeCopyCheck on expensive-to-copy types. 2016-02-15 03:36:23 +00:00
performance-implicit-cast-in-loop.cpp [clang-tidy] Fix style issues. NFC 2016-01-29 15:21:43 +00:00
performance-unnecessary-copy-initialization.cpp [clang-tidy] Use hasLocalStorage() to identify unnecessary copy initializations to exclude static local variables. 2015-12-30 11:35:50 +00:00
readability-braces-around-statements-assert-failure.cpp [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check. 2016-02-16 10:31:33 +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] Make readability-container-size-empty work with inline namespaces. Fix PR25812. 2016-02-09 10:20:48 +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 clang-tidy readability identifiers: better diagnostic location 2015-12-04 20:57:03 +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-control-flow.cpp Add a new check, readability-redundant-control-flow, that check for some forms of redundant control flow statements. Currently checks for return statements at the end of a function with a void return type and continue statements at the end of looping statements. 2016-02-01 15:31:15 +00:00
readability-redundant-smartptr-get.cpp [clang-tidy] Match the type against the get() method we are calling, 2016-02-17 16:13:14 +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 Reapply r260096. 2016-02-12 15:09:05 +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
serialize-diagnostics.cpp
static-analyzer-config.cpp
static-analyzer.cpp
temporaries.cpp
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
werrors-plural.cpp Teach clang-tidy how to upgrade warnings into errors. 2016-01-13 17:36:41 +00:00
werrors.cpp Teach clang-tidy how to upgrade warnings into errors. 2016-01-13 17:36:41 +00:00