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 dd8d85dba6e8f74a55fb5053107797e21894a0c6 
5c032267f263fb6b7f10d25745d14e63b2f7af59 --extensions cpp -- 
clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp 
clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git 
a/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp 
b/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp
index 299038262b..201b8770ad 100644
--- 
a/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp
+++ 
b/clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp
@@ -105,7 +105,7 @@ public:
         return true;
       }
 
-      LambdaExpr* findLambdaInArg(Expr* E) {
+      LambdaExpr *findLambdaInArg(Expr *E) {
         if (auto *Lambda = dyn_cast_or_null<LambdaExpr>(E))
           return Lambda;
         auto *TempExpr = dyn_cast_or_null<CXXBindTemporaryExpr>(E);
@@ -130,7 +130,7 @@ public:
         auto *VD = dyn_cast_or_null<VarDecl>(DRE->getDecl());
         if (!VD)
           return nullptr;
-        auto* Init = VD->getInit();
+        auto *Init = VD->getInit();
         if (!Init)
           return nullptr;
         TempExpr = dyn_cast<CXXBindTemporaryExpr>(Init->IgnoreParenCasts());
@@ -202,7 +202,7 @@ public:
   }
 
   bool protectThis(const ValueDecl *ValueDecl) const {
-    auto* VD = dyn_cast<VarDecl>(ValueDecl);
+    auto *VD = dyn_cast<VarDecl>(ValueDecl);
     if (!VD)
       return false;
     auto *Init = VD->getInit()->IgnoreParenCasts();
@@ -214,7 +214,7 @@ public:
     auto *CE = dyn_cast_or_null<CXXConstructExpr>(BTE->getSubExpr());
     if (!CE)
       return false;
-    auto* Ctor = CE->getConstructor();
+    auto *Ctor = CE->getConstructor();
     if (!Ctor)
       return false;
     auto clsName = safeGetName(Ctor->getParent());

``````````

</details>


https://github.com/llvm/llvm-project/pull/119932
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to