mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #1038 from LittleWhite-tb/contributing-include
Add coding style about includes
This commit is contained in:
		
						commit
						ef7eb8bc4c
					
				
					 1 changed files with 16 additions and 0 deletions
				
			
		|  | @ -25,6 +25,22 @@ Follow the indentation/whitespace style shown below. Do not use tabs, use 4-spac | ||||||
| * For items that are both defined and declared in two separate files, put the doc-comment only next to the associated declaration. (In a header file, usually.) Otherwise, put it next to the implementation. Never duplicate doc-comments in both places. | * For items that are both defined and declared in two separate files, put the doc-comment only next to the associated declaration. (In a header file, usually.) Otherwise, put it next to the implementation. Never duplicate doc-comments in both places. | ||||||
| 
 | 
 | ||||||
| ```cpp | ```cpp | ||||||
|  | // Includes should be sorted lexicographically | ||||||
|  | // STD includes first | ||||||
|  | #include <map> | ||||||
|  | #include <memory> | ||||||
|  | 
 | ||||||
|  | // then, library includes | ||||||
|  | #include <nihstro/shared_binary.h> | ||||||
|  | 
 | ||||||
|  | // finally, citra includes | ||||||
|  | #include "common/math_util.h" | ||||||
|  | #include "common/vector_math.h" | ||||||
|  | 
 | ||||||
|  | // each major module is separated | ||||||
|  | #include "video_core/pica.h" | ||||||
|  | #include "video_core/video_core.h" | ||||||
|  | 
 | ||||||
| namespace Example { | namespace Example { | ||||||
| 
 | 
 | ||||||
| // Namespace contents are not indented | // Namespace contents are not indented | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue