Skip to content

Commit d06b57b

Browse files
committed
address most comments
Signed-off-by: wangbaiping <[email protected]>
1 parent 2acb420 commit d06b57b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

DEVELOPMENT.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# How to Develop Proxy Wasm Cpp Host
1+
# Development guidelines
22

3-
## Generate compile commands
3+
## Generate compilation database
44

5-
You could use the following commands to generate the `compile_commands.json` file:
5+
[JSON Compilation Database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) files can be used by [clangd](https://clangd.llvm.org/) or similar tools to add source code cross-references and code completion functionality to editors.
6+
7+
The following command can be used to generate the `compile_commands.json` file:
68

79
```
8-
BAZEL_BUILD_OPTION_LIST="--define=engine=multi" ./tools/gen_compdb.py --include_all //test/... //:lib
10+
BAZEL_BUILD_OPTION_LIST="--define=engine=multi" ./tools/gen_compilation_database.py --include_all //test/... //:lib
911
```
1012

11-
Then you could use clangd (or other tools the could parse `compile_commands.json`) to setup editors with cross reference, code completion.
File renamed without changes.

0 commit comments

Comments
 (0)