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 origin/main HEAD --extensions h,cpp -- 
clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp 
clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.h 
clang/test/Analysis/lifetime-bound.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp 
b/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp
index f447f9320..ebbccc2c7 100644
--- a/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp
@@ -105,7 +105,8 @@ std::string lifetime_modeling::getRegionName(const 
MemRegion *Reg) {
   return "the region";
 }
 
-// FIXME: Retrieving the MemRegions of nested struct fields is not yet 
supported.
+// FIXME: Retrieving the MemRegions of nested struct fields is not yet
+// supported.
 SmallVector<const MemRegion *, 4>
 lifetime_modeling::getRegionsFromAggrVal(SVal Val, CheckerContext &C) {
   SmallVector<const MemRegion *, 4> Reg;
diff --git a/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.h 
b/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.h
index 5f1950944..d6cacfd73 100644
--- a/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.h
+++ b/clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.h
@@ -25,7 +25,8 @@ std::string getRegionName(const MemRegion *Reg);
 
 /// Returns the MemRegions the fields of an aggregate value (CompoundVal,
 /// LazyCompoundVal) point to.
-SmallVector<const MemRegion *, 4> getRegionsFromAggrVal(SVal Val, 
CheckerContext &C);
+SmallVector<const MemRegion *, 4> getRegionsFromAggrVal(SVal Val,
+                                                        CheckerContext &C);
 } // namespace clang::ento::lifetime_modeling
 
 #endif // LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_LIFETIMEMODELING_H

``````````

</details>


https://github.com/llvm/llvm-project/pull/214589
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to