[clang-tools-extra] [clang-tidy]Add new check readability-avoid-nested-conditional-operator (PR #78022)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 13 23:00:32 PST 2024
================
@@ -0,0 +1,20 @@
+.. title:: clang-tidy - readability-avoid-nested-conditional-operator
+
+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.
+
----------------
PiotrZSL wrote:
Maybe:
`Nested conditional operators, also known as ternary operators, can contribute to reduced code readability and comprehension. `
https://github.com/llvm/llvm-project/pull/78022
More information about the cfe-commits
mailing list