[all-commits] [llvm/llvm-project] 06c3c3: [clang-tidy] Add bugprone-chained-comparison check...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Mon Jan 22 08:11:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06c3c3b67cb0287856145806cfb0179def3214bd
https://github.com/llvm/llvm-project/commit/06c3c3b67cb0287856145806cfb0179def3214bd
Author: Piotr Zegar <piotr.zegar at nokia.com>
Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
M clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
A clang-tools-extra/clang-tidy/bugprone/ChainedComparisonCheck.cpp
A clang-tools-extra/clang-tidy/bugprone/ChainedComparisonCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/bugprone/chained-comparison.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/bugprone/chained-comparison.c
A clang-tools-extra/test/clang-tidy/checkers/bugprone/chained-comparison.cpp
Log Message:
-----------
[clang-tidy] Add bugprone-chained-comparison check (#76365)
Check that flags chained comparison expressions,
such as a < b < c or a == b == c, which may have
unintended behavior due to implicit operator
associativity.
Moved from Phabricator (D144429).
More information about the All-commits
mailing list