Closed hesingh closed 1 year ago
When this issue is fixed, please also fix this typo in typeSpecConverter.cpp. Add a 't' to 'bistring'.
"Only bistring fields expected in header type declaration %1%", type);
The CMakefile for control-plane has specifically a comment that indicates that this file should not be processed by cpplint.
Maybe we can change this Issue to an enhancement so that one can run control-plane files through cpplint. It's not good that any source code in p4c does not go through cpplint. thanks.
A PR to fix this issue has been sent out.
When I run ‘make cpplint’ from p4c/build/, I see three .cpp files in p4c/control-plane being processed. However, when I use p4c/tools/cpplint.py to lint one file, I see errors. I have actually fixed several cpplint errors in this file and see these pending ones. I know how to fix them, but my question is why ‘make cpplint’ does not catch this file and other files in p4c/control-plane but p4c/tools/cpplint.py does?