Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.26 KB

CONTRIBUTING.md

File metadata and controls

29 lines (21 loc) · 1.26 KB

You can fork the repo and submit a pull request in Github. For more information send us an email ([email protected]).

Apache CLA

All developers must sign the P4.org CLA and return it to ([email protected]) before making contributions. The CLA is available here.

Coding guidelines

Any contribution to the C++ core code (in particular the bm_sim module) must respect the coding guidelines. We rely heavily on the Google C++ Style Guide, with some differences listed in this repository's wiki. Every submitted pull request will go through our CI tests, which include running cpplint.py to ensure correct style and formatting. You can run the following helper script to check code-style locally:

./tools/check_style.sh

Building locally

We recommend that you build with a recent C++ compiler and with -Werror since our CI tests use this flag. In order to build with the same flags as the CI tester, please run configure with the following flags:

./configure --with-pdfixed --with-pi --with-stress-tests --enable-debugger --enable-Werror