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/include/clang/Analysis/Analyses/LifetimeSafety/Checker.h
clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
clang/lib/Analysis/LifetimeSafety/Checker.cpp
clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp
clang/lib/Sema/AnalysisBasedWarnings.cpp clang/lib/Sema/SemaLifetimeSafety.h
--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/Sema/AnalysisBasedWarnings.cpp
b/clang/lib/Sema/AnalysisBasedWarnings.cpp
index d39763a87..08a0a33da 100644
--- a/clang/lib/Sema/AnalysisBasedWarnings.cpp
+++ b/clang/lib/Sema/AnalysisBasedWarnings.cpp
@@ -2931,8 +2931,10 @@ LifetimeSafetyTUAnalysis(Sema &S, TranslationUnitDecl
*TU,
if (AC.getCFG()) {
lifetimes::LifetimeSafetyOpts LSOpts;
LSOpts.MaxCFGBlocks = S.getLangOpts().LifetimeSafetyMaxCFGBlocks;
- LSOpts.SuggestAnnotations =
lifetimes::ShouldSuggestLifetimeAnnotations(S, FD);
- runLifetimeSafetyAnalysis(AC, &SemaHelper, LSOpts, LSStats,
S.CollectStats);
+ LSOpts.SuggestAnnotations =
+ lifetimes::ShouldSuggestLifetimeAnnotations(S, FD);
+ runLifetimeSafetyAnalysis(AC, &SemaHelper, LSOpts, LSStats,
+ S.CollectStats);
}
}
}
@@ -3170,7 +3172,8 @@ void clang::sema::AnalysisBasedWarnings::IssueWarnings(
lifetimes::LifetimeSafetySemaHelperImpl LifetimeSafetySemaHelper(S);
lifetimes::LifetimeSafetyOpts LSOpts;
LSOpts.MaxCFGBlocks = S.getLangOpts().LifetimeSafetyMaxCFGBlocks;
- LSOpts.SuggestAnnotations =
lifetimes::ShouldSuggestLifetimeAnnotations(S, D);
+ LSOpts.SuggestAnnotations =
+ lifetimes::ShouldSuggestLifetimeAnnotations(S, D);
lifetimes::runLifetimeSafetyAnalysis(AC, &LifetimeSafetySemaHelper,
LSOpts, LSStats, S.CollectStats);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/205764
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits