mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-10-31 04:32:33 +00:00 
			
		
		
		
	fix %h example since you can't put two options on the same line
							parent
							
								
									5f260563cd
								
							
						
					
					
						commit
						06ea6db0f9
					
				| @ -157,7 +157,12 @@ Objective-C (`%objective-c`), or Objective-C++ (`%objective-c++`) files. | |||||||
| This argument should be added only when indexing C header files (`%h`: `*.h`) or C++ | This argument should be added only when indexing C header files (`%h`: `*.h`) or C++ | ||||||
| header files (`%hpp`: `*.hh` `*.hpp`). Note, `*.h` files are considered as C, not C++. | header files (`%hpp`: `*.hh` `*.hpp`). Note, `*.h` files are considered as C, not C++. | ||||||
| 
 | 
 | ||||||
| You may add a line `%h -x c++-header` to make every `*.h` parsed as C++. | You may add these lines to make every `*.h` parsed as C++: | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | %h -x | ||||||
|  | %h c++-header | ||||||
|  | ``` | ||||||
| 
 | 
 | ||||||
| Note, if your project has both C and C++ files, `a.h`'s flags may be inferred from a C file and thus parsed as C. | Note, if your project has both C and C++ files, `a.h`'s flags may be inferred from a C file and thus parsed as C. | ||||||
| You may run into parsing errors like `unknown type name 'class'`. | You may run into parsing errors like `unknown type name 'class'`. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user