Skip to content

Conversation

hekota
Copy link
Member

@hekota hekota commented Oct 14, 2025

work in progress - DO NOT MERGE

Copy link

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

You can test this locally with the following command:
git-clang-format --diff origin/main HEAD --extensions cpp -- clang/lib/AST/ASTContext.cpp clang/lib/Sema/SemaHLSL.cpp clang/lib/Sema/SemaOverload.cpp clang/utils/TableGen/ClangBuiltinsEmitter.cpp --diff_from_common_commit

⚠️
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.
⚠️

View the diff from clang-format here.
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 4b59cd3c4..fb0ae2e54 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -1833,13 +1833,12 @@ TryImplicitConversion(Sema &S, Expr *From, QualType ToType,
       auto *ToResType = cast<HLSLAttributedResourceType>(ToTy);
       auto *FromResType = cast<HLSLAttributedResourceType>(FromTy);
       if (S.Context.hasSameUnqualifiedType(ToResType->getWrappedType(),
-                                          FromResType->getWrappedType()) &&
+                                           FromResType->getWrappedType()) &&
           S.Context.hasSameUnqualifiedType(ToResType->getContainedType(),
-                                          FromResType->getContainedType()) &&
+                                           FromResType->getContainedType()) &&
           ToResType->getAttrs() == FromResType->getAttrs())
         CanConvert = true;
-    }
-    else if (ToTy->isHLSLResourceType()) {
+    } else if (ToTy->isHLSLResourceType()) {
       CanConvert = true;
     }
     if (CanConvert) {

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