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

[NOT for commit] test apply format workflow #5997

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

python3kgae
Copy link
Contributor

Add format issue to get format diff.

Copy link
Contributor

github-actions bot commented Nov 9, 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 93c4b3202c722b59197fffdccfa5d9ee1260bd51 47e8c2cafb7f24c870e43c06d4b834d0dab84576 -- lib/DXIL/DxilCompType.cpp
View the diff from clang-format here.
diff --git a/lib/DXIL/DxilCompType.cpp b/lib/DXIL/DxilCompType.cpp
index 840cb5db..19d8e71e 100644
--- a/lib/DXIL/DxilCompType.cpp
+++ b/lib/DXIL/DxilCompType.cpp
@@ -25,14 +25,14 @@ namespace hlsl {
 CompType::CompType() : m_Kind(Kind::Invalid) {}
 
 CompType::CompType(Kind K) : m_Kind(K) {
-    DXASSERT(m_Kind >= Kind::Invalid && m_Kind < Kind::LastEntry,
+  DXASSERT(m_Kind >= Kind::Invalid && m_Kind < Kind::LastEntry,
            "otherwise the caller passed out-of-range value");
 }
 
 CompType::CompType(unsigned int K) : CompType((Kind)K) {}
 
 bool CompType::operator==(const CompType &o) const {
-     return m_Kind == o.m_Kind;
+  return m_Kind == o.m_Kind;
 }
 
 CompType::Kind CompType::GetKind() const { return m_Kind; }
@@ -89,7 +89,7 @@ CompType CompType::getU32() { return CompType(Kind::U32); }
 
 CompType CompType::getU64() { return CompType(Kind::U64); }
 
-CompType CompType::getI1() {    return CompType(Kind::I1); }
+CompType CompType::getI1() { return CompType(Kind::I1); }
 
 CompType CompType::getSNormF16() { return CompType(Kind::SNormF16); }
 
@@ -298,7 +298,7 @@ PointerType *CompType::GetLLVMPtrType(LLVMContext &Ctx,
 }
 
 Type *CompType::GetLLVMBaseType(llvm::LLVMContext &C) const {
-     return GetBaseCompType().GetLLVMType(C);
+  return GetBaseCompType().GetLLVMType(C);
 }
 
 CompType CompType::GetCompType(Type *type) {
  • Check this box to apply formatting changes to this branch.

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

Successfully merging this pull request may close these issues.

1 participant