Lustre Style Guide Includes: Difference between revisions

From Lustre Wiki
Jump to navigation Jump to search
(Creation)
 
No edit summary
Line 2: Line 2:
Includes should be ordered in the following way:
Includes should be ordered in the following way:
# linux headers
# linux headers
# libcfs headers
# lnet headers
# lnet headers
# lustre/include/lustre/* headers  
# lustre/include/lustre/* headers  

Revision as of 07:17, 8 October 2015

When adding new #include files

Includes should be ordered in the following way:

  1. linux headers
  2. libcfs headers
  3. lnet headers
  4. lustre/include/lustre/* headers
  5. lustre/include/*
  6. *_internal.h and any other "local.h" files

Each group shall be sorted alphanumerically