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,c -- 
clang/lib/Parse/ParseDeclCXX.cpp clang/lib/Sema/SemaDecl.cpp 
clang/lib/Sema/SemaDeclAttr.cpp clang/test/CodeCompletion/attr.cpp 
clang/test/Parser/cxx0x-attributes.cpp 
clang/test/Parser/cxx11-stmt-attributes.cpp 
clang/test/Parser/cxx1z-decomposition.cpp clang/test/Parser/stmt-attributes.c 
clang/test/Preprocessor/has_attribute.cpp 
clang/test/Preprocessor/macro-reserved-attrs-cxx11.cpp 
clang/test/SemaCXX/attr-cxx0x.cpp clang/test/SemaCXX/cxx2c-attributes.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/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 577f59a1b..89e867278 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -3455,8 +3455,7 @@ static void propagateAttributes(ParmVarDecl *To, const 
ParmVarDecl *From,
 /// mergeParamDeclAttributes - Copy attributes from the old parameter
 /// to the new one.
 static void mergeParamDeclAttributes(ParmVarDecl *newDecl,
-                                     const ParmVarDecl *oldDecl,
-                                     Sema &S) {
+                                     const ParmVarDecl *oldDecl, Sema &S) {
   propagateAttributes(
       newDecl, oldDecl, [&S](ParmVarDecl *To, const ParmVarDecl *From) {
         unsigned found = 0;

``````````

</details>


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

Reply via email to