 Google C++ Style Guideand if you are unsure, please don’t hesitate to ask your project leads to get additional input. Header Files In general, every .cc file should have an associated .h file. There are some com- mon exceptions Correct use of header files can make a huge difference to the readability, size and performance of your code. The following rules will guide you through the various pitfalls of using header files. Self-contained Self-contained Headers Header files should be self-contained (compile on their own) and end in .h. Non-header files that are meant for inclusion should end in .inc. 3 All header files should be self-contained0 码力 | 83 页 | 238.71 KB | 1 年前3 Google C++ Style Guideand if you are unsure, please don’t hesitate to ask your project leads to get additional input. Header Files In general, every .cc file should have an associated .h file. There are some com- mon exceptions Correct use of header files can make a huge difference to the readability, size and performance of your code. The following rules will guide you through the various pitfalls of using header files. Self-contained Self-contained Headers Header files should be self-contained (compile on their own) and end in .h. Non-header files that are meant for inclusion should end in .inc. 3 All header files should be self-contained0 码力 | 83 页 | 238.71 KB | 1 年前3
共 1 条
- 1













