[all-commits] [llvm/llvm-project] 7e63a0: [clang-tidy] New check for safe usage of `std::opt...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Fri May 6 11:59:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7e63a0d479dd3ccce20de5cddb0f138b537c08bb
https://github.com/llvm/llvm-project/commit/7e63a0d479dd3ccce20de5cddb0f138b537c08bb
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-05-06 (Fri, 06 May 2022)
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/UncheckedOptionalAccessCheck.cpp
A clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/bugprone-unchecked-optional-access.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/Inputs/absl/types/optional.h
A clang-tools-extra/test/clang-tidy/checkers/bugprone-unchecked-optional-access.cpp
M clang/include/clang/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.h
M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
Log Message:
-----------
[clang-tidy] New check for safe usage of `std::optional` and like types.
This check verifies the safety of access to `std::optional` and related
types (including `absl::optional`). It is based on a corresponding Clang
Dataflow Analysis, which does most of the work. This check merely runs it and
converts its findings into diagnostics.
Differential Revision: https://reviews.llvm.org/D121120
More information about the All-commits
mailing list