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/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeSafety.h
clang/lib/Analysis/LifetimeSafety/Checker.cpp
clang/lib/Sema/SemaLifetimeSafety.h
clang/test/Sema/LifetimeSafety/annotation-suggestions.cpp
clang/test/Sema/LifetimeSafety/inapplicable-lifetimebound.cpp
clang/test/Sema/LifetimeSafety/misplaced-lifetimebound-intra-tu.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/Analysis/LifetimeSafety/Checker.cpp
b/clang/lib/Analysis/LifetimeSafety/Checker.cpp
index bfb64d391..558259970 100644
--- a/clang/lib/Analysis/LifetimeSafety/Checker.cpp
+++ b/clang/lib/Analysis/LifetimeSafety/Checker.cpp
@@ -681,7 +681,7 @@ public:
const auto &OriginMgr = FactMgr.getOriginMgr();
const auto *Ctor = dyn_cast<CXXConstructorDecl>(FDef);
const QualType ReturnTy = Ctor ? AST.getCanonicalTagType(Ctor->getParent())
- : FDef->getReturnType();
+ : FDef->getReturnType();
const bool HasIntrinsic =
OriginMgr.hasOrigins(ReturnTy, /*IntrinsicOnly=*/true);
// Calls and constructions can register the result type for origin
tracking.
@@ -689,7 +689,7 @@ public:
auto ReportReturn = [&](const LifetimeBoundAttr &Attr) {
if (!HasIntrinsic)
SemaHelper->reportLifetimeboundReturn(Attr, ReturnTy, Ctor != nullptr,
- IsStrict);
+ IsStrict);
};
if (const auto *MD = dyn_cast<CXXMethodDecl>(FDef))
``````````
</details>
https://github.com/llvm/llvm-project/pull/203767
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits