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

Congcong Cai via All-commits all-commits at lists.llvm.org
Mon Jan 15 02:19:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e21557d0401a0046ff110daa50f21d02b71a2ee
      https://github.com/llvm/llvm-project/commit/8e21557d0401a0046ff110daa50f21d02b71a2ee
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-01-15 (Mon, 15 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 (#78022)

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