-
Notifications
You must be signed in to change notification settings - Fork 258
Coding Style
Chao Liu edited this page Feb 23, 2022
·
19 revisions
- For index, only opaque type
index_tandlong_index_tshould be used, concrete integer type likeint,int32_t,longis not allowed - If tensor data that is integer type, only concrete type like
int32_t,uint32_t,int64_tare allow. Also, useint32_tinstead ofint, useuint32_tinstead ofunsigned
- Class:
ClassName - Class member function:
MemberFunctionName() - Class member variable:
class_member_ - Template argument:
TemplateArgument - Function:
void function_name() - Local variable:
local_variable - Compiler time constant:
kConstant??? - pointer:
p_pointer
- Must add bracket for all
ifandelse