[clang] Update clang static analyzers per rename of member functions in CanMakeCheckedPtr. (PR #114636)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 1 20:44:39 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 0cfcd387f968f2c9de0648673b5db9e221e5c84e 5675106782f0226297ea3e53fe7bca9137f710c4 --extensions cpp,h -- clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedCallArgsChecker.cpp clang/test/Analysis/Checkers/WebKit/mock-types.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp b/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
index 3f8fa636ee..487cde2601 100644
--- a/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
@@ -108,7 +108,8 @@ std::optional<bool> isRefCountable(const clang::CXXRecordDecl *R) {
}
std::optional<bool> isCheckedPtrCapable(const clang::CXXRecordDecl *R) {
- return isSmartPtrCompatible(R, "incrementCheckedPtrCount", "decrementCheckedPtrCount");
+ return isSmartPtrCompatible(R, "incrementCheckedPtrCount",
+ "decrementCheckedPtrCount");
}
bool isRefType(const std::string &Name) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/114636
More information about the cfe-commits
mailing list