Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad formatting #5

Closed
wants to merge 9 commits into from
Closed

bad formatting #5

wants to merge 9 commits into from

Conversation

llvm-beanz
Copy link
Owner

No description provided.

Copy link

github-actions bot commented Nov 1, 2023

PR description is empty, please add some valid description

@llvm-beanz llvm-beanz force-pushed the cbieneman/clang-format-break branch 2 times, most recently from c407d4a to 707ff61 Compare November 1, 2023 17:51
Copy link

github-actions bot commented Nov 1, 2023

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff dc746f5ede287ace71032f9e9ba39741a5bfc8b9 fc40253c05fc8b1d3d79fc00ecd2aa34a9f55c0e -- tools/clang/lib/CodeGen/CGHLSLMS.cpp
View the diff from clang-format here.
diff --git a/tools/clang/lib/CodeGen/CGHLSLMS.cpp b/tools/clang/lib/CodeGen/CGHLSLMS.cpp
index d42f9d89..441add14 100644
--- a/tools/clang/lib/CodeGen/CGHLSLMS.cpp
+++ b/tools/clang/lib/CodeGen/CGHLSLMS.cpp
@@ -831,7 +831,8 @@ static void ConstructFieldInterpolation(DxilFieldAnnotation &fieldAnnotation,
     fieldAnnotation.SetInterpolationMode(InterpMode);
 }
 
-static unsigned AlignBaseOffset(unsigned baseOffset, unsigned size, QualType Ty, bool bDefaultRowMajor) {
+static unsigned AlignBaseOffset(unsigned baseOffset, unsigned size, QualType Ty,
+                                bool bDefaultRowMajor) {
   // Do not align if resource, since resource isn't really here.
   if (IsHLSLResourceType(Ty))
     return baseOffset;
@@ -858,7 +859,8 @@ static unsigned AlignBaseOffset(unsigned baseOffset, unsigned size, QualType Ty,
     BT = hlsl::GetElementTypeOrType(Ty)->getAs<clang::BuiltinType>();
   }
   if (BT) {
-    if (BT->getKind() == clang::BuiltinType::Kind::Double || BT->getKind() == clang::BuiltinType::Kind::LongLong ||
+    if (BT->getKind() == clang::BuiltinType::Kind::Double ||
+        BT->getKind() == clang::BuiltinType::Kind::LongLong ||
         BT->getKind() == clang::BuiltinType::Kind::ULongLong)
       scalarSizeInBytes = 8;
     else if (BT->getKind() == clang::BuiltinType::Kind::Half ||

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant