enum class JSONCommandLineSyntax

Description

A JSON based compilation database. JSON compilation database files must contain a list of JSON objects which provide the command lines in the attributes 'directory', 'command', 'arguments' and 'file': [ { "directory": "<working directory of the compile>", "command": "<compile command line>", "file": "<path to source file>" }, { "directory": "<working directory of the compile>", "arguments": ["<raw>", "<command>" "<line>" "<parameters>"], "file": "<path to source file>" }, ... ] Each object entry defines one compile action. The specified file is considered to be the main source file for the translation unit. 'command' is a full command line that will be unescaped. 'arguments' is a list of command line arguments that will not be unescaped. JSON compilation databases can for example be generated in CMake projects by setting the flag -DCMAKE_EXPORT_COMPILE_COMMANDS.

Declared at: clang/include/clang/Tooling/JSONCompilationDatabase.h:60

Enumerators

NameValueComment
Windows0
Gnu1
AutoDetect2