Skip to content

Commit

Permalink
clang format fixes :)
Browse files Browse the repository at this point in the history
  • Loading branch information
grg committed Jan 4, 2024
1 parent 03f2907 commit 89435dc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/gtest/frontend_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ TEST_F(P4CFrontendEnumValidation, InvalidType) {
// Tests for MoveInitializers
struct P4CFrontendMoveInitializers : P4CFrontend {
P4CFrontendMoveInitializers() {
addPasses({new P4::ResolveReferences(&refMap),
new P4::MoveInitializers(&refMap)});
addPasses({new P4::ResolveReferences(&refMap), new P4::MoveInitializers(&refMap)});
}

P4::ReferenceMap refMap;
Expand All @@ -194,14 +193,13 @@ TEST_F(P4CFrontendMoveInitializers, P4ControlSrcInfo) {

// The P4Control->body should have a valid srcInfo if the information
// is correctly maintained by MoveInitializers.
const auto* p4prog = prog->to<IR::P4Program>();
const auto *p4prog = prog->to<IR::P4Program>();
ASSERT_TRUE(p4prog);
for (const auto* node : p4prog->objects) {
if (const auto* control = node->to<IR::P4Control>()) {
for (const auto *node : p4prog->objects) {
if (const auto *control = node->to<IR::P4Control>()) {
ASSERT_TRUE(control->body->srcInfo.isValid());
}
}
}


} // namespace Test

0 comments on commit 89435dc

Please sign in to comment.