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 cpp,h --
clang/test/Sema/warn-lifetime-safety-cfg-bailout.cpp
clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp
clang/unittests/Analysis/LifetimeSafetyTest.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/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
b/clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
index 2bc647d21..81bfeffee 100644
--- a/clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
+++ b/clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
@@ -123,7 +123,7 @@ class LifetimeSafetyAnalysis {
public:
LifetimeSafetyAnalysis(AnalysisDeclContext &AC,
LifetimeSafetySemaHelper *SemaHelper,
- const LifetimeSafetyOpts &LSOpts);
+ const LifetimeSafetyOpts &LSOpts);
void run();
diff --git a/clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp
b/clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp
index 61c5b837d..618292da0 100644
--- a/clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp
+++ b/clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp
@@ -48,9 +48,9 @@ static void DebugOnlyFunction(AnalysisDeclContext &AC, const
CFG &Cfg,
}
#endif
-
LifetimeSafetyAnalysis::LifetimeSafetyAnalysis(
- AnalysisDeclContext &AC, LifetimeSafetySemaHelper *SemaHelper, const
LifetimeSafetyOpts &LSOpts)
+ AnalysisDeclContext &AC, LifetimeSafetySemaHelper *SemaHelper,
+ const LifetimeSafetyOpts &LSOpts)
: AC(AC), SemaHelper(SemaHelper), LSOpts(LSOpts) {}
void LifetimeSafetyAnalysis::run() {
``````````
</details>
https://github.com/llvm/llvm-project/pull/170444
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits