[clang] [alpha.webkit.UncountedLocalVarsChecker] Ignore local vars of JSC::VM& type (PR #91068)
via cfe-commits
cfe-commits at lists.llvm.org
Sat May 4 09:15:26 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 76aa042dde6ba9ba57c680950f5818259ee02690 7f59654193385e78e1635c9bb2a627522f888b8d -- clang/lib/StaticAnalyzer/Checkers/WebKit/ASTUtils.h clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLocalVarsChecker.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLocalVarsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLocalVarsChecker.cpp
index 2d33e63f66..2f5e8e1397 100644
--- a/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLocalVarsChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLocalVarsChecker.cpp
@@ -226,11 +226,13 @@ public:
}
bool isVarIsAVMRefType(const VarDecl *V) const {
- auto* type = V->getType()->getAs<LValueReferenceType>();
- if(!type)
+ auto *type = V->getType()->getAs<LValueReferenceType>();
+ if (!type)
return false;
- auto ClassDecl = type->getPointeeType()->getUnqualifiedDesugaredType()->getAsCXXRecordDecl();
+ auto ClassDecl = type->getPointeeType()
+ ->getUnqualifiedDesugaredType()
+ ->getAsCXXRecordDecl();
if (!ClassDecl)
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/91068
More information about the cfe-commits
mailing list