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 #3

Conversation

llvm-beanz
Copy link
Owner

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

PR description is empty, please add some valid description

@llvm-beanz llvm-beanz force-pushed the cbieneman/clang-format-upstream branch 2 times, most recently from dea3ced to 51ff0ac Compare October 6, 2023 19:57
@llvm-beanz llvm-beanz force-pushed the cbieneman/clang-format-upstream-test branch from f23da7c to 1c7e390 Compare October 6, 2023 19:58
@llvm-beanz llvm-beanz force-pushed the cbieneman/clang-format-upstream branch from 51ff0ac to 18c725f Compare October 6, 2023 20:01
@llvm-beanz llvm-beanz force-pushed the cbieneman/clang-format-upstream-test branch from 1c7e390 to 4ef7b06 Compare October 6, 2023 20:02
@github-actions
Copy link

github-actions bot commented Oct 6, 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 18c725feaab22003d80201f4d259c0312274491e 4ef7b06bd10113438d7394162a8de15a648ab1b5 -- tools/clang/lib/Sema/SemaExpr.cpp
View the diff from clang-format here.
diff --git a/tools/clang/lib/Sema/SemaExpr.cpp b/tools/clang/lib/Sema/SemaExpr.cpp
index bcebd6a6..43978820 100644
--- a/tools/clang/lib/Sema/SemaExpr.cpp
+++ b/tools/clang/lib/Sema/SemaExpr.cpp
@@ -10875,7 +10875,9 @@ ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc,
   // if-statement condition does not perfectly checks all the cases, but it
   // simply checks whether it is a user-defined type with operator overloading
   // methods or not.
-  if (getLangOpts().CPlusPlus && (!getLangOpts().HLSL || getLangOpts().HLSLVersion >= hlsl::LangStd::v2021) &&
+  if (getLangOpts().CPlusPlus &&
+      (!getLangOpts().HLSL ||
+       getLangOpts().HLSLVersion >= hlsl::LangStd::v2021) &&
       hlsl::IsUserDefinedRecordType(LHSExpr->getType()) &&
       hlsl::DoesTypeDefineOverloadedOperator(
           LHSExpr->getType(), clang::BinaryOperator::getOverloadedOperator(Opc),

@llvm-beanz llvm-beanz closed this Oct 25, 2023
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