-
Notifications
You must be signed in to change notification settings - Fork 173
Code Style
-
C code should pass
cpplintusing theCPPLINT.cfgconfiguration file in the root of the AFDKO repo.cpplintwill be run automatically when code is submitted to the repo, but we recommend checking locally first. -
For integer variables, please use types with explicit bit widths (i.e.
int8_t,int16_t,int32_t,int64_t,uint8_t,uint16_t,uint32_t,uint64_t). -
For Boolean variables, please use the standard
boolfromstdbool.hfor the type. For Boolean values, please usetrueandfalseinstead of1and0.
-
All Python code (including test code) should pass
flake8using the.flake8configuration file in the root of the AFDKO repo.flake8will be run automatically when code is submitted, but we recommend checking locally first. -
For Boolean values, please use
TrueandFalseinstead of1and0.