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/Basic/LangOptions.h clang/include/clang/Parse/Parser.h 
clang/include/clang/Sema/Sema.h clang/lib/AST/Decl.cpp 
clang/lib/Parse/ParseDecl.cpp clang/lib/Sema/SemaBoundsSafety.cpp 
clang/lib/Sema/SemaType.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/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index 66e5c45d2..ae9a9a260 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -9041,8 +9041,8 @@ static void 
HandleHLSLParamModifierAttr(TypeProcessingState &State,
   }
 }
 
-static CountAttributedType::BoundsAttrKind
-getCountAttrKind(bool CountInBytes, bool OrNull) {
+static CountAttributedType::BoundsAttrKind getCountAttrKind(bool CountInBytes,
+                                                            bool OrNull) {
   if (CountInBytes)
     return OrNull ? CountAttributedType::SizedByOrNull
                   : CountAttributedType::SizedBy;
@@ -9124,7 +9124,6 @@ static bool validateBoundsAttrTypeForTypePosition(
   return true;
 }
 
-
 static void processTypeAttrs(TypeProcessingState &state, QualType &type,
                              TypeAttrLocation TAL,
                              const ParsedAttributesView &attrs,

``````````

</details>


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

Reply via email to