-
Notifications
You must be signed in to change notification settings - Fork 444
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
Migrate P4Testgen tooling to core P4C (IWYU, clang-format, cpplint, clang-tidy, git hooks) #3663
Conversation
Permissions. Small updates.
c5b1af5
to
6eefb32
Compare
Perms.
6eefb32
to
3455faa
Compare
0063552
to
c4a04cd
Compare
Git hooks.
@@ -29,7 +29,6 @@ set (BMV2_SIMPLE_SWITCH_SRCS | |||
simple_switch/simpleSwitch.h | |||
simple_switch/options.h | |||
) | |||
add_cpplint_files (${CMAKE_CURRENT_SOURCE_DIR} "${BMV2_SIMPLE_SWITCH_SRCS}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these still checked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are checked by a new CI run now. It should actually more thorough than what we had before because you do not have to manually add files for linting any more.
We are adding yet another CI test, but, thankfully, this one only takes about 1-2 minutes.
backends/ubpf/ubpfTable.cpp
Outdated
@@ -144,7 +143,8 @@ void UBPFTableBase::emitInstance(EBPF::CodeBuilder *builder, EBPF::TableKind tab | |||
auto scalar = new UBPFScalarType(tb); | |||
keyTypeStr = scalar->getAsString(); | |||
} else if (keyType->is<IR::Type_StructLike>()) { | |||
keyTypeStr = cstring("struct ") + keyTypeName.c_str();; | |||
keyTypeStr = cstring("struct ") + keyTypeName.c_str(); | |||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
Very nice, thanks! |
This PR does a couple things.
Open for comments on this one. @davidbolvansky This PR might also be interesting to you.
Fixes #3516.