llvm-project/clang-tools-extra/docs/clang-tidy/checks
Gabor Horvath 7510d9aa8a [clang-tidy] Add delete null pointer check.
This check detects and fixes redundant null checks before deletes.

Patch by: Gergely Angeli!

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

llvm-svn: 290784
2016-12-31 12:45:59 +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 Remove trailing whitespace in docs and clang-tidy sources. 2016-12-13 16:38:45 +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 [clang-tidy] Add missing meta refresh for cert-msc30-c doc. NFC 2016-11-10 16:19:17 +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-no-malloc.rst Fix sphinx build. 2016-12-13 16:49:10 +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 [docs] Remove doubled spaces 2016-11-17 14:26:45 +00:00
cppcoreguidelines-pro-type-member-init.rst [docs] Remove doubled spaces 2016-11-17 14:26:45 +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] Flag implicit conversion operators. 2016-12-23 15:03:12 +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 [clang-tidy] Add delete null pointer check. 2016-12-31 12:45:59 +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] Remove duplicated check from move-constructor-init 2016-12-17 20:23:14 +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 Remove trailing whitespace in docs and clang-tidy sources. 2016-12-13 16:38:45 +00:00
misc-static-assert.rst [Clang-tidy] Improve checks documentation consistency. 2016-04-02 01:07:18 +00:00
misc-string-compare.rst [clang-tidy] Add check 'misc-string-compare'. 2016-12-30 10:09:46 +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-enum-usage.rst [clang-tidy] Add enum misuse check. 2016-12-27 10:07:39 +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] Replace dead link in modernize-pass-by-value doc 2016-12-27 22:01:37 +00:00
modernize-raw-string-literal.rst [docs] Remove doubled spaces 2016-11-17 14:26:45 +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 templated function casts 2016-12-15 10:19:56 +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-member-init.rst [clang-tidy] Add modernize-use-default-member-init check 2016-12-20 21:26:07 +00:00
modernize-use-default.rst Add a blank line to make sphinx happy. 2016-12-01 17:38:54 +00:00
modernize-use-emplace.rst [docs] Remove doubled spaces 2016-11-17 14:26:45 +00:00
modernize-use-equals-default.rst [clang-tidy] Rename modernize-use-default to modernize-use-equals-default 2016-12-01 17:24:42 +00:00
modernize-use-equals-delete.rst [clang-tidy] Add modernize-use-equals-delete check 2016-11-10 16:46:59 +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-transparent-functors.rst Remove trailing whitespace in docs and clang-tidy sources. 2016-12-13 16:38:45 +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 [docs] Remove doubled spaces 2016-11-17 14:26:45 +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-type-promotion-in-math-fn.rst [ClangTidy] Add new performance-type-promotion-in-math-fn check. 2016-12-14 03:15:01 +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 [docs] Remove doubled spaces 2016-11-17 14:26:45 +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-delete-null-pointer.rst [clang-tidy] Add delete null pointer check. 2016-12-31 12:45:59 +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-function-ptr-dereference.rst [clang-tidy] Add check for redundant function pointer dereferences 2016-12-13 08:04:11 +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