llvm-project/clang-tools-extra/docs/clang-tidy/checks
Malcolm Parsons 8b70e2631c [clang-tidy] Handle data() in readability-redundant-string-cstr
Summary:
std::string::data() and std::string::c_str() are equivalent.
Enhance the readability-redundant-string-cstr check to also handle
calls to data().

Reviewers: etienneb, alexfh, aaron.ballman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D26279

llvm-svn: 285901
2016-11-03 12:56:48 +00:00
..
boost-use-to-string.rst Add boost-use-to-string 2016-04-29 17:58:29 +00:00
cert-dcl03-c.rst [clang-tidy] Fixed wording ("clang-tidy check", not "clang-tidy checker") 2016-01-18 22:51:09 +00:00
cert-dcl50-cpp.rst Renaming CERT documentation files to use the CERT rule identifiers. This is for consistency with other checkers, where the documentation file name matches the checker name. NFC of the checkers. 2015-12-27 19:14:55 +00:00
cert-dcl54-cpp.rst [clang-tidy] Fixed wording ("clang-tidy check", not "clang-tidy checker") 2016-01-18 22:51:09 +00:00
cert-dcl59-cpp.rst [clang-tidy] Fixed wording ("clang-tidy check", not "clang-tidy checker") 2016-01-18 22:51:09 +00:00
cert-env33-c.rst 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-err09-cpp.rst [clang-tidy] Add cert-err09-cpp check alias. 2016-10-19 14:28:19 +00:00
cert-err34-c.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
cert-err52-cpp.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
cert-err58-cpp.rst [clang-tidy] Update cert-err58-cpp to match its new generalised form. 2016-10-31 22:47:04 +00:00
cert-err60-cpp.rst Renaming CERT documentation files to use the CERT rule identifiers. This is for consistency with other checkers, where the documentation file name matches the checker name. NFC of the checkers. 2015-12-27 19:14:55 +00:00
cert-err61-cpp.rst [clang-tidy] Fixed wording ("clang-tidy check", not "clang-tidy checker") 2016-01-18 22:51:09 +00:00
cert-fio38-c.rst [clang-tidy] Fixed wording ("clang-tidy check", not "clang-tidy checker") 2016-01-18 22:51:09 +00:00
cert-flp30-c.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
cert-msc30-c.rst Add a new clang-tidy check for cert-msc50-cpp (and cert-msc30-c) that corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/MSC50-CPP.+Do+not+use+std%3A%3Arand%28%29+for+generating+pseudorandom+numbers 2016-11-02 14:16:36 +00:00
cert-msc50-cpp.rst [Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style and misspelling. 2016-11-02 18:23:52 +00:00
cert-oop11-cpp.rst [clang-tidy] Fixed wording ("clang-tidy check", not "clang-tidy checker") 2016-01-18 22:51:09 +00:00
cppcoreguidelines-interfaces-global-init.rst [clang-tidy] cppcoreguidelines-interfaces-global-init 2016-04-08 09:51:06 +00:00
cppcoreguidelines-pro-bounds-array-to-pointer-decay.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-pro-bounds-constant-array-index.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
cppcoreguidelines-pro-bounds-pointer-arithmetic.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-pro-type-const-cast.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-pro-type-cstyle-cast.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-pro-type-member-init.rst [clang-tidy docs] Further cleanup of options 2016-08-22 17:19:23 +00:00
cppcoreguidelines-pro-type-reinterpret-cast.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-pro-type-static-cast-downcast.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-pro-type-union-access.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-pro-type-vararg.rst [clang-tidy] Fix documentation. 2016-01-27 11:37:19 +00:00
cppcoreguidelines-slicing.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
cppcoreguidelines-special-member-functions.rst Fix some typos in the doc 2016-08-28 20:33:42 +00:00
google-build-explicit-make-pair.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
google-build-namespaces.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
google-build-using-namespace.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
google-default-arguments.rst [clang-tidy] new google-default-arguments check 2016-05-09 13:43:58 +00:00
google-explicit-constructor.rst [clang-tidy] update links to Google Code Style in docs 2016-02-25 14:31:10 +00:00
google-global-names-in-headers.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
google-readability-braces-around-statements.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
google-readability-casting.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
google-readability-function-size.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
google-readability-namespace-comments.rst Clang-tidy documentation style. Two Google checks are aliases. 2016-08-24 20:05:36 +00:00
google-readability-redundant-smartptr-get.rst Clang-tidy documentation style. Two Google checks are aliases. 2016-08-24 20:05:36 +00:00
google-readability-todo.rst [clang-tidy] Fix/add style guide links. 2016-05-19 09:31:30 +00:00
google-runtime-int.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
google-runtime-member-string-references.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
google-runtime-memset.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
google-runtime-operator.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
google-runtime-references.rst Fix typo in documentation 2016-10-11 09:42:13 +00:00
list.rst Add a new clang-tidy check for cert-msc50-cpp (and cert-msc30-c) that corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/MSC50-CPP.+Do+not+use+std%3A%3Arand%28%29+for+generating+pseudorandom+numbers 2016-11-02 14:16:36 +00:00
llvm-header-guard.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
llvm-include-order.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
llvm-namespace-comment.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
llvm-twine-local.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-argument-comment.rst Fix style in some Clang-tidy checks documentation. 2016-08-23 00:19:43 +00:00
misc-assert-side-effect.rst [clang-tidy docs] Move option descriptions to the Options section 2016-08-18 18:43:47 +00:00
misc-bool-pointer-implicit-conversion.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-dangling-handle.rst [clang-tidy docs] Move option descriptions to the Options section 2016-08-18 18:43:47 +00:00
misc-definitions-in-headers.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
misc-fold-init-type.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-forward-declaration-namespace.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-inaccurate-erase.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-incorrect-roundings.rst [clang-tidy] Fix doc titles. 2016-05-19 09:29:46 +00:00
misc-inefficient-algorithm.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-macro-parentheses.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-macro-repeated-side-effects.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-misplaced-const.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-misplaced-widening-cast.rst Fix style in some Clang-tidy checks documentation. 2016-08-23 00:19:43 +00:00
misc-move-const-arg.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-move-constructor-init.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
misc-move-forwarding-reference.rst [clang-tidy] Add check 'misc-move-forwarding-reference' 2016-08-30 12:11:12 +00:00
misc-multiple-statement-macro.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-new-delete-overloads.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
misc-noexcept-move-constructor.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-non-copyable-objects.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
misc-redundant-expression.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-sizeof-container.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-sizeof-expression.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
misc-static-assert.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
misc-string-constructor.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
misc-string-integer-assignment.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-string-literal-with-embedded-nul.rst Fix some typos in the doc 2016-08-28 20:33:42 +00:00
misc-suspicious-missing-comma.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
misc-suspicious-semicolon.rst Fix some typos in the doc 2016-08-28 20:33:42 +00:00
misc-suspicious-string-compare.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
misc-swapped-arguments.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-throw-by-value-catch-by-reference.rst [clang-tidy] Add cert-err09-cpp check alias. 2016-10-19 14:28:19 +00:00
misc-unconventional-assign-operator.rst [Clang-tidy] Alphabetical checks order in release notes. 2016-06-07 18:38:42 +00:00
misc-undelegated-constructor.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-uniqueptr-reset-release.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-unused-alias-decls.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
misc-unused-parameters.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
misc-unused-raii.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-unused-using-decls.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
misc-use-after-move.rst [Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style and misspelling. 2016-11-02 18:23:52 +00:00
misc-virtual-near-miss.rst [clang-tidy] Fix doc titles. 2016-05-19 09:29:46 +00:00
modernize-avoid-bind.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
modernize-deprecated-headers.rst [clang-tidy] minor improvements in modernise-deprecated-headers check 2016-08-10 18:01:45 +00:00
modernize-loop-convert.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
modernize-make-shared.rst [clang-tidy] Enhance modernize-make-unique to handle unique_ptr.reset() 2016-10-31 15:48:01 +00:00
modernize-make-unique.rst [clang-tidy] Enhance modernize-make-unique to handle unique_ptr.reset() 2016-10-31 15:48:01 +00:00
modernize-pass-by-value.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
modernize-raw-string-literal.rst clang-tidy: Add check modernize-raw-string-literal 2016-03-27 16:43:44 +00:00
modernize-redundant-void-arg.rst [clang-tidy] Added documentation for modernize-redundant-void-arg 2015-12-22 18:13:00 +00:00
modernize-replace-auto-ptr.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
modernize-shrink-to-fit.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
modernize-use-auto.rst [clang-tidy] Enhance modernize-use-auto to casts 2016-10-31 14:43:37 +00:00
modernize-use-bool-literals.rst [clang-tidy] enhance modernize-use-bool-literals to check ternary operator 2016-08-08 17:11:56 +00:00
modernize-use-default.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
modernize-use-emplace.rst [clang-tidy docs] Further cleanup of options 2016-08-22 17:19:23 +00:00
modernize-use-nullptr.rst [clang-tidy docs] Further cleanup of options 2016-08-22 17:19:23 +00:00
modernize-use-override.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00
modernize-use-using.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
mpi-buffer-deref.rst [clang-tidy docs] Fix build errors on Sphinx 1.4.5 2016-08-18 11:06:09 +00:00
mpi-type-mismatch.rst [clang-tidy docs] Minor fix 2016-08-18 11:12:03 +00:00
performance-faster-string-find.rst [clang-tidy docs] Further cleanup of options 2016-08-22 17:19:23 +00:00
performance-for-range-copy.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
performance-implicit-cast-in-loop.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
performance-inefficient-string-concatenation.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
performance-unnecessary-copy-initialization.rst Add check for unneeded copies of locals 2016-03-23 09:33:07 +00:00
performance-unnecessary-value-param.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
readability-avoid-const-params-in-decls.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
readability-braces-around-statements.rst Fix style in some Clang-tidy checks documentation. 2016-08-23 00:19:43 +00:00
readability-container-size-empty.rst [clang-tidy] Extend readability-container-size-empty to arbitrary class with size() and empty() 2016-09-13 08:58:11 +00:00
readability-deleted-default.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
readability-else-after-return.rst [Documentation] Fix style and grammar mistake in Clang-tidy readability-else-after-return description spotted by Alexander Kornienko. 2016-08-10 19:49:38 +00:00
readability-function-size.rst [clang-tidy docs] Fix build errors on Sphinx 1.4.5 2016-08-18 11:06:09 +00:00
readability-identifier-naming.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
readability-implicit-bool-cast.rst [clang-tidy docs] Add missing option docs. 2016-08-31 13:21:18 +00:00
readability-inconsistent-declaration-parameter-name.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
readability-misplaced-array-index.rst [clang-tidy] readability-misplaced-array-index: add new check that warns when array index is misplaced. 2016-09-12 12:04:13 +00:00
readability-named-parameter.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
readability-non-const-parameter.rst [Documentation] Fix style of Clang-tidy readability-non-const-parameter. 2016-08-23 17:57:24 +00:00
readability-redundant-control-flow.rst Clang-tidy documentation style. Two Google checks are aliases. 2016-08-24 20:05:36 +00:00
readability-redundant-declaration.rst [Documentation] Clang-tidy readability-redundant-declaration consistency. 2016-11-02 00:43:23 +00:00
readability-redundant-member-init.rst [clang-tidy] Add check 'readability-redundant-member-init' 2016-10-20 16:08:03 +00:00
readability-redundant-smartptr-get.rst Clang-tidy documentation style. Two Google checks are aliases. 2016-08-24 20:05:36 +00:00
readability-redundant-string-cstr.rst [clang-tidy] Handle data() in readability-redundant-string-cstr 2016-11-03 12:56:48 +00:00
readability-redundant-string-init.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
readability-simplify-boolean-expr.rst [clang-tidy docs] Further cleanup of options 2016-08-22 17:19:23 +00:00
readability-static-definition-in-anonymous-namespace.rst [Clang-tidy] Fix some checks documentation style. 2016-08-26 17:46:51 +00:00
readability-uniqueptr-delete-release.rst [clang-tidy] Updates to documentation: formatting, titles, etc. 2015-12-22 17:36:49 +00:00