[all-commits] [llvm/llvm-project] 0988bb: [clang-tidy]Add new check readability-avoid-nested...

Congcong Cai via All-commits all-commits at lists.llvm.org
Sat Jan 13 00:01:39 PST 2024


  Branch: refs/heads/users/ccc/create-AvoidnestedternaryconditionaloperatorCheck
  Home:   https://github.com/llvm/llvm-project
  Commit: 0988bb25a35e5d50b44bf53d459098777280c3e5
      https://github.com/llvm/llvm-project/commit/0988bb25a35e5d50b44bf53d459098777280c3e5
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-01-13 (Sat, 13 Jan 2024)

  Changed paths:
    A clang-tools-extra/clang-tidy/readability/AvoidNestedConditionalOperatorCheck.cpp
    A clang-tools-extra/clang-tidy/readability/AvoidNestedConditionalOperatorCheck.h
    M clang-tools-extra/clang-tidy/readability/CMakeLists.txt
    M clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/readability/avoid-nested-conditional-operator.rst
    A clang-tools-extra/test/clang-tidy/checkers/readability/avoid-nested-conditional-operator.cpp

  Log Message:
  -----------
  [clang-tidy]Add new check readability-avoid-nested-conditional-operator
Finds nested conditional operator.
Nested conditional operators lead code hard to understand, so they should be
splited as several statement and stored in temporary varibale.




More information about the All-commits mailing list