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 9edbe566bfaff6af03c309ebbb229e6e9a717de3 
805195ccece41dfa2591e7652879b0ded0acc3e9 --extensions cpp -- 
clang/lib/Sema/SemaExprMember.cpp clang/test/SemaCXX/vector-bool.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaExprMember.cpp 
b/clang/lib/Sema/SemaExprMember.cpp
index 394ad775f5..c74d57e5b1 100644
--- a/clang/lib/Sema/SemaExprMember.cpp
+++ b/clang/lib/Sema/SemaExprMember.cpp
@@ -434,9 +434,10 @@ CheckExtVectorComponent(Sema &S, QualType baseType, 
ExprValueKind &VK,
   if (!HalvingSwizzle && *compStr) {
     // We didn't get to the end of the string. This means the component names
     // didn't come from the same set *or* we encountered an illegal name.
-    size_t Offset = compStr - CompName->getNameStart() + 1; 
-    S.Diag(OpLoc.getLocWithOffset(Offset), 
diag::err_ext_vector_component_name_illegal)
-      << StringRef({'\'', *compStr, '\''}) << SourceRange(CompLoc);
+    size_t Offset = compStr - CompName->getNameStart() + 1;
+    S.Diag(OpLoc.getLocWithOffset(Offset),
+           diag::err_ext_vector_component_name_illegal)
+        << StringRef({'\'', *compStr, '\''}) << SourceRange(CompLoc);
     return QualType();
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/118186
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to