From e2eecd24b2b1430a0a9894828aea13cf728901de Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 27 Jun 2019 19:41:07 -0700 Subject: [PATCH] %cu directive --- Project-Setup.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Project-Setup.md b/Project-Setup.md index 03d9425..dd93c83 100644 --- a/Project-Setup.md +++ b/Project-Setup.md @@ -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++ @@ -276,4 +281,4 @@ mkdir Debug; cd Debug ../configure --enable-optimize=no --enable-debug --prefix=~/.local/stow/musl bear make -j cd ..; ln -s Debug/compile_commands.json -``` \ No newline at end of file +```