-
Notifications
You must be signed in to change notification settings - Fork 168
Code Style
-
C code should pass
cpplint
using theCPPLINT.cfg
configuration file in the root of the AFDKO repo.cpplint
will 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
bool
fromstdbool.h
for the type. For Boolean values, please usetrue
andfalse
instead of1
and0
.
-
All Python code (including test code) should pass
flake8
using the.flake8
configuration file in the root of the AFDKO repo.flake8
will be run automatically when code is submitted, but we recommend checking locally first. -
For Boolean values, please use
True
andFalse
instead of1
and0
.