@@ -41,17 +41,17 @@ namespace {
4141class UniqueResourceFromUseTest : public testing ::Test {
4242protected:
4343 PassBuilder *PB;
44- ModuleAnalysisManager* MAM;
44+ ModuleAnalysisManager * MAM;
4545
4646 virtual void SetUp () {
47- MAM = new ModuleAnalysisManager ();
48- PB = new PassBuilder ();
49- PB->registerModuleAnalyses (*MAM);
50- MAM->registerPass ([&]{ return DXILResourceTypeAnalysis (); });
51- MAM->registerPass ([&] { return DXILResourceBindingAnalysis (); });
47+ MAM = new ModuleAnalysisManager ();
48+ PB = new PassBuilder ();
49+ PB->registerModuleAnalyses (*MAM);
50+ MAM->registerPass ([&] { return DXILResourceTypeAnalysis (); });
51+ MAM->registerPass ([&] { return DXILResourceBindingAnalysis (); });
5252 }
5353
54- virtual void TearDown () {
54+ virtual void TearDown () {
5555 delete PB;
5656 delete MAM;
5757 }
@@ -91,7 +91,8 @@ declare void @a.func(target("dx.RawBuffer", float, 1, 0) %handle)
9191 const Value *Handle = CI->getArgOperand (0 );
9292
9393 const auto Bindings = DBM.findByUse (Handle);
94- ASSERT_EQ (Bindings.size (), 1u ) << " Handle should resolve into one resource" ;
94+ ASSERT_EQ (Bindings.size (), 1u )
95+ << " Handle should resolve into one resource" ;
9596
9697 auto Binding = Bindings[0 ].getBinding ();
9798 EXPECT_EQ (0u , Binding.RecordID );
@@ -143,7 +144,8 @@ declare target("dx.RawBuffer", float, 1, 0) @ind.func(target("dx.RawBuffer", flo
143144 const Value *Handle = CI->getArgOperand (0 );
144145
145146 const auto Bindings = DBM.findByUse (Handle);
146- ASSERT_EQ (Bindings.size (), 1u ) << " Handle should resolve into one resource" ;
147+ ASSERT_EQ (Bindings.size (), 1u )
148+ << " Handle should resolve into one resource" ;
147149
148150 auto Binding = Bindings[0 ].getBinding ();
149151 EXPECT_EQ (0u , Binding.RecordID );
@@ -198,7 +200,8 @@ declare target("dx.RawBuffer", float, 1, 0) @ind.func(target("dx.RawBuffer", flo
198200 const Value *Handle = CI->getArgOperand (0 );
199201
200202 const auto Bindings = DBM.findByUse (Handle);
201- ASSERT_EQ (Bindings.size (), 4u ) << " Handle should resolve into four resources" ;
203+ ASSERT_EQ (Bindings.size (), 4u )
204+ << " Handle should resolve into four resources" ;
202205
203206 auto Binding = Bindings[0 ].getBinding ();
204207 EXPECT_EQ (0u , Binding.RecordID );
@@ -280,7 +283,8 @@ declare target("dx.RawBuffer", float, 1, 0) @ind.func(target("dx.RawBuffer", flo
280283 const Value *Handle = CI->getArgOperand (0 );
281284
282285 const auto Bindings = DBM.findByUse (Handle);
283- ASSERT_EQ (Bindings.size (), 2u ) << " Handle should resolve into four resources" ;
286+ ASSERT_EQ (Bindings.size (), 2u )
287+ << " Handle should resolve into four resources" ;
284288
285289 auto Binding = Bindings[0 ].getBinding ();
286290 EXPECT_EQ (0u , Binding.RecordID );
@@ -302,4 +306,4 @@ declare target("dx.RawBuffer", float, 1, 0) @ind.func(target("dx.RawBuffer", flo
302306 }
303307}
304308
305- } // namespace
309+ } // namespace
0 commit comments