%cu directive

Fangrui Song 2019-06-27 19:41:07 -07:00
parent f5fea036be
commit e2eecd24b2

@ -160,6 +160,11 @@ _appended_ to the compiler flags for files found in `compile_commands.json`.
This argument should be added only when parsing C (`%c`), C++ (`%cpp`),
Objective-C (`%objective-c`), or Objective-C++ (`%objective-c++`) files.
### `%cu
This argument should be added only when parsing CUDA files. If you want an option to be added
to both CUDA and regular C++ files, write `%cpp %cu -DA`.
### `%h` / `%hpp`
This argument should be added only when indexing C header files (`%h`: `*.h`) or C++