llvm-project/mlir/utils/vscode
River Riddle fb5a59f6e1 [mlir][PDLL] Add initial support for a PDLL compilation database
The compilation database acts in a similar way to the compilation database
(compile_commands.json) used by clang-tidy, i.e. it provides additional
information about the compilation of project files to help the language
server. The main piece of information provided by the PDLL compilation
database in this commit is the set of include directories used when processing
the input .pdll file. This allows for the server to properly process .pdll files
that use includes anchored by the include directories set up in the build system.

The structure of the textual form of a compilation database is a yaml file
containing documents of the following form:

```
--- !FileInfo:
  filepath: <string> - Absolute file path of the file.
  includes: <string> - Semi-colon delimited list of include directories.
```

This commit also adds support to cmake for automatically generating
a `pdll_compile_commands.yml` file at the top-level of the build
directory.

Differential Revision: https://reviews.llvm.org/D124076
2022-04-26 18:33:17 -07:00
..
.vscode
src [mlir][PDLL] Add initial support for a PDLL compilation database 2022-04-26 18:33:17 -07:00
.gitignore
.vscodeignore
cpp-grammar.json [mlir][vscode] Don't inject inside strings 2022-03-16 21:57:56 -07:00
language-configuration.json
markdown-grammar.json [vscode-mlir] Add proper support for mlir markdown codeblocks 2021-08-03 19:55:31 +00:00
package-lock.json [mlir][PDLL] Add an initial language server for PDLL 2022-03-19 13:28:23 -07:00
package.json [mlir][PDLL] Add initial support for a PDLL compilation database 2022-04-26 18:33:17 -07:00
pdll-grammar.json [mlir][PDLL] Add an initial language server for PDLL 2022-03-19 13:28:23 -07:00
pdll-language-configuration.json [mlir][PDLL] Add an initial language server for PDLL 2022-03-19 13:28:23 -07:00
tsconfig.json