[all-commits] [llvm/llvm-project] 575900: [clang-tidy] Add bugprone-optional-value-conversio...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Sun Jul 30 23:24:29 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 575900d0d98aafce9d534b6c1917861311f3cfaa
https://github.com/llvm/llvm-project/commit/575900d0d98aafce9d534b6c1917861311f3cfaa
Author: Piotr Zegar <piotr.zegar at nokia.com>
Date: 2023-07-31 (Mon, 31 Jul 2023)
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/OptionalValueConversionCheck.cpp
A clang-tools-extra/clang-tidy/bugprone/OptionalValueConversionCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/bugprone/optional-value-conversion.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/bugprone/optional-value-conversion.cpp
Log Message:
-----------
[clang-tidy] Add bugprone-optional-value-conversion check
Detects potentially unintentional and redundant conversions where a value is
extracted from an optional-like type and then used to create a new instance of
the same optional-like type.
Reviewed By: xgupta
Differential Revision: https://reviews.llvm.org/D147357
More information about the All-commits
mailing list