mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
%cu directive
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`),
|
This argument should be added only when parsing C (`%c`), C++ (`%cpp`),
|
||||||
Objective-C (`%objective-c`), or Objective-C++ (`%objective-c++`) files.
|
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`
|
### `%h` / `%hpp`
|
||||||
|
|
||||||
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++
|
||||||
@ -276,4 +281,4 @@ mkdir Debug; cd Debug
|
|||||||
../configure --enable-optimize=no --enable-debug --prefix=~/.local/stow/musl
|
../configure --enable-optimize=no --enable-debug --prefix=~/.local/stow/musl
|
||||||
bear make -j
|
bear make -j
|
||||||
cd ..; ln -s Debug/compile_commands.json
|
cd ..; ln -s Debug/compile_commands.json
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user