[clang] [HLSL] Fix resource kind for RasterizerOrderedStructuredBuffer (PR #116700)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 19 01:30:32 PST 2024
================
@@ -480,8 +480,8 @@ void HLSLExternalSemaSource::defineHLSLTypesWithForwardDeclarations() {
onCompletion(Decl, [this](CXXRecordDecl *Decl) {
setupBufferType(Decl, *SemaPtr, ResourceClass::UAV,
- ResourceKind::TypedBuffer,
- /*IsROV=*/false, /*RawBuffer=*/false)
+ ResourceKind::TypedBuffer, /*IsROV=*/false,
+ /*RawBuffer=*/false)
----------------
bogner wrote:
`clang-format` was complaining about the line I actually changed and I noticed that all of these looked funny. Seems like there's a "comment at the beginning of a line" heuristic that stops clang-format from messing with these, but if you collapse them to a single line and then run clang-format it does something pretty reasonable.
https://github.com/llvm/llvm-project/pull/116700
More information about the cfe-commits
mailing list