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 c,h,cpp -- 
clang/test/CodeGen/bpf-attr-preserve-access-index-enum-nodebug.c 
clang/test/CodeGen/bpf-attr-preserve-access-index-enum.c 
clang/test/Sema/bpf-preserve-enum-value-parity.c 
clang/include/clang/Sema/Sema.h clang/include/clang/Sema/SemaBPF.h 
clang/lib/Basic/Targets/BPF.cpp clang/lib/Frontend/CompilerInstance.cpp 
clang/lib/Sema/Sema.cpp clang/lib/Sema/SemaBPF.cpp clang/lib/Sema/SemaExpr.cpp 
clang/test/Preprocessor/bpf-predefined-macros.c 
clang/test/Sema/bpf-attr-preserve-access-index.c --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/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 62ff36fe5..fda623582 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -280,8 +280,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer 
&consumer,
            bool HasReducedDebugInfoArg)
     : SemaBase(*this), CollectStats(false), TUKind(TUKind),
       CurFPFeatures(pp.getLangOpts()), LangOpts(pp.getLangOpts()),
-      HasReducedDebugInfo(HasReducedDebugInfoArg), PP(pp),
-      Context(ctxt), Consumer(consumer), Diags(PP.getDiagnostics()),
+      HasReducedDebugInfo(HasReducedDebugInfoArg), PP(pp), Context(ctxt),
+      Consumer(consumer), Diags(PP.getDiagnostics()),
       SourceMgr(PP.getSourceManager()), APINotes(SourceMgr, LangOpts),
       AnalysisWarnings(*this), ThreadSafetyDeclCache(nullptr),
       LateTemplateParser(nullptr), OpaqueParser(nullptr), CurContext(nullptr),

``````````

</details>


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

Reply via email to