[all-commits] [llvm/llvm-project] 980618: [clang-tidy][docs] Update check options with boole...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Dec 7 04:14:18 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 980618145bf00a8e212cf3c6db46fb0a83081d69
      https://github.com/llvm/llvm-project/commit/980618145bf00a8e212cf3c6db46fb0a83081d69
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-12-07 (Mon, 07 Dec 2020)

  Changed paths:
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-widening-cast.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-signed-char-misuse.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-sizeof-expression.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-unhandled-self-assignment.rst
    M clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-macro-usage.rst
    M clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-narrowing-conversions.rst
    M clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-prefer-member-initializer.rst
    M clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst
    M clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-special-member-functions.rst
    M clang-tools-extra/docs/clang-tidy/checks/hicpp-multiway-paths-covered.rst
    M clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst
    M clang-tools-extra/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst
    M clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst
    M clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst
    M clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-string-concatenation.rst
    M clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst
    M clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst
    M clang-tools-extra/docs/clang-tidy/checks/portability-simd-intrinsics.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst
    M clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst

  Log Message:
  -----------
  [clang-tidy][docs] Update check options with boolean values instead of non-zero/0/1

Using bools instead of integers better conveys the expected value of the option.

Reviewed By: Eugene.Zelenko, aaron.ballman

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




More information about the All-commits mailing list