[all-commits] [llvm/llvm-project] 142924: [clang][dataflow] Add convenience function for ana...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Wed Jul 26 10:12:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1429240ed63b05991e175e623b3fa5b72e59dc5b
https://github.com/llvm/llvm-project/commit/1429240ed63b05991e175e623b3fa5b72e59dc5b
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2023-07-26 (Wed, 26 Jul 2023)
Changed paths:
M clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h
M clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h
M clang/include/clang/Analysis/FlowSensitive/NoopAnalysis.h
M clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
Log Message:
-----------
[clang][dataflow] Add convenience function for analysing and `FunctionDecl` and diagnosing it.
The convenience function captures running the analysis and then collecting
diagnostics based on a `Diagnoser` object. This pattern is valuable to
clang-tidy checks which analyze a function at a time, though it could be more
generally useful for analysis clients.
Differential Revision: https://reviews.llvm.org/D156254
Commit: e9570d1e59ba381ea55327b5cbed0b5bc05677fe
https://github.com/llvm/llvm-project/commit/e9570d1e59ba381ea55327b5cbed0b5bc05677fe
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2023-07-26 (Wed, 26 Jul 2023)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp
M clang/include/clang/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.h
M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
M clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
Log Message:
-----------
[clang-tidy] Update unchecked-optiona-access-check to use convenience function for diagnosing `FunctionDecl`s.
Also changes code in the underlying model to fit the type expected by the convenience function.
Differential Revision: https://reviews.llvm.org/D156255
Compare: https://github.com/llvm/llvm-project/compare/e28307e93adb...e9570d1e59ba
More information about the All-commits
mailing list