@@ -363,7 +363,7 @@ enum ArBasicKind {
363
363
364
364
#define IS_BPROP_STREAM(_Props) (((_Props)&BPROP_STREAM) != 0)
365
365
366
- #define IS_BPROP_PATCH(_Props) (((_Props) & BPROP_PATCH) != 0)
366
+ #define IS_BPROP_PATCH(_Props) (((_Props)& BPROP_PATCH) != 0)
367
367
368
368
#define IS_BPROP_SAMPLER(_Props) (((_Props)&BPROP_SAMPLER) != 0)
369
369
@@ -3546,11 +3546,11 @@ class HLSLExternalSource : public ExternalSemaSource {
3546
3546
3547
3547
InheritableAttr *Attr = nullptr;
3548
3548
if (IS_BASIC_STREAM(kind))
3549
- Attr =
3550
- HLSLStreamOutputAttr::CreateImplicit(*m_context,
3551
- kind - AR_OBJECT_POINTSTREAM + 1);
3549
+ Attr = HLSLStreamOutputAttr::CreateImplicit(
3550
+ *m_context, kind - AR_OBJECT_POINTSTREAM + 1);
3552
3551
else if (IS_BASIC_PATCH(kind))
3553
- Attr = HLSLTessPatchAttr::CreateImplicit(*m_context, kind == AR_OBJECT_INPUTPATCH);
3552
+ Attr = HLSLTessPatchAttr::CreateImplicit(*m_context,
3553
+ kind == AR_OBJECT_INPUTPATCH);
3554
3554
else {
3555
3555
DXIL::ResourceKind ResKind = DXIL::ResourceKind::NumEntries;
3556
3556
DXIL::ResourceClass ResClass = DXIL::ResourceClass::Invalid;
@@ -3746,9 +3746,9 @@ class HLSLExternalSource : public ExternalSemaSource {
3746
3746
}
3747
3747
#endif
3748
3748
else if (templateArgCount == 0) {
3749
- recordDecl = DeclareRecordTypeWithHandle(*m_context, typeName,
3750
- /*isCompleteType*/ false ,
3751
- Attr);
3749
+ recordDecl =
3750
+ DeclareRecordTypeWithHandle(*m_context, typeName ,
3751
+ /*isCompleteType*/ false, Attr);
3752
3752
} else {
3753
3753
DXASSERT(templateArgCount == 1 || templateArgCount == 2,
3754
3754
"otherwise a new case has been added");
@@ -5237,8 +5237,9 @@ class HLSLExternalSource : public ExternalSemaSource {
5237
5237
}
5238
5238
// Allow object type for Constant/TextureBuffer.
5239
5239
HLSLResourceAttr *ResAttr =
5240
- Template->getTemplatedDecl()->getAttr<HLSLResourceAttr>();
5241
- if (ResAttr && ResAttr->getResClass() == (unsigned)DXIL::ResourceClass::CBuffer) {
5240
+ Template->getTemplatedDecl()->getAttr<HLSLResourceAttr>();
5241
+ if (ResAttr &&
5242
+ ResAttr->getResClass() == (unsigned)DXIL::ResourceClass::CBuffer) {
5242
5243
if (TemplateArgList.size() == 1) {
5243
5244
const TemplateArgumentLoc &argLoc = TemplateArgList[0];
5244
5245
const TemplateArgument &arg = argLoc.getArgument();
@@ -5353,7 +5354,7 @@ class HLSLExternalSource : public ExternalSemaSource {
5353
5354
if (ContainsVectorLongerThan(argType, DXIL::kDefaultMaxVectorLength)) {
5354
5355
m_sema->Diag(argLoc.getLocation(),
5355
5356
diag::err_hlsl_unsupported_long_vector)
5356
- << DXIL::kDefaultMaxVectorLength << "tessellation patches";
5357
+ << DXIL::kDefaultMaxVectorLength << "tessellation patches";
5357
5358
return true;
5358
5359
}
5359
5360
} else if (Template->getTemplatedDecl()->hasAttr<HLSLStreamOutputAttr>()) {
@@ -5367,7 +5368,7 @@ class HLSLExternalSource : public ExternalSemaSource {
5367
5368
if (ContainsVectorLongerThan(argType, DXIL::kDefaultMaxVectorLength)) {
5368
5369
m_sema->Diag(argLoc.getLocation(),
5369
5370
diag::err_hlsl_unsupported_long_vector)
5370
- << DXIL::kDefaultMaxVectorLength << "geometry streams";
5371
+ << DXIL::kDefaultMaxVectorLength << "geometry streams";
5371
5372
return true;
5372
5373
}
5373
5374
}
0 commit comments