forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PR description is empty, please add some valid description |
llvm-beanz
force-pushed
the
cbieneman/clang-format-break
branch
2 times, most recently
from
November 1, 2023 17:51
c407d4a
to
707ff61
Compare
llvm-beanz
force-pushed
the
cbieneman/clang-format-break
branch
from
November 1, 2023 17:53
707ff61
to
349b2a4
Compare
llvm-beanz
force-pushed
the
cbieneman/clang-format-break
branch
from
November 1, 2023 17:59
349b2a4
to
2539f79
Compare
llvm-beanz
force-pushed
the
cbieneman/clang-format-break
branch
from
November 1, 2023 18:01
2539f79
to
d7dca50
Compare
llvm-beanz
force-pushed
the
cbieneman/clang-format-break
branch
from
November 1, 2023 18:03
d7dca50
to
72f861c
Compare
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 ||
|
llvm-beanz
force-pushed
the
cbieneman/clang-format-break
branch
from
November 1, 2023 18:08
72f861c
to
fc40253
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.