Index: clang/docs/JSONCompilationDatabase.rst =================================================================== --- clang/docs/JSONCompilationDatabase.rst +++ clang/docs/JSONCompilationDatabase.rst @@ -57,6 +57,7 @@ [ { "directory": "/home/user/llvm/build", + "compiler_arguments": "-Irelative -DSOMEDEF=\"With spaces, quotes and \\-es.\" -c -o file.o file.cc", "command": "/usr/bin/clang++ -Irelative -DSOMEDEF=\"With spaces, quotes and \\-es.\" -c -o file.o file.cc", "file": "file.cc" }, ... @@ -72,6 +73,7 @@ compilation database. There can be multiple command objects for the same file, for example if the same source file is compiled with different configurations. +- **compiler_arguments:** (Optional) The compiler arguments. - **command:** The compile command executed. After JSON unescaping, this must be a valid command to rerun the exact compilation step for the translation unit in the environment the build system uses.