llvm-project/clang-tools-extra/test/clang-tidy
Haojian Wu 1e3c32b38a [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert.
Reviewers: alexfh

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D16926

llvm-svn: 260107
2016-02-08 15:59:42 +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 [clang-tidy] Move the missing namespace comment warnings to the closing brace 2014-11-17 17:32:32 +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 [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 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-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 [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 [clang-tidy] google-explicit-constructor: improve the warning message 2015-11-28 02:25:02 +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] 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 [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 [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-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-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 [clang-tidy] Fix a crash issue on misc-virtual-near-miss check. 2016-02-03 17:21: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 [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-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 test/clang-tidy/performance-for-range-copy.cpp: Appease for targeting ms mode. 2016-01-30 02:15:19 +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-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 a false positive case in ContainerSizeEmpty check. 2015-12-28 17:20:33 +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] Use proper capitalization and punctuation for diagnostic messages. 2016-01-08 15:21:40 +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 Reverting r260096; it causes build bot failures: 2016-02-08 14:37:56 +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
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