Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script for creating compilation database (#1617)
### Description of changes: * A [compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) is a JSON file that helps facilitate code assistance within a code/text editor. This is typically via the editor's integration with [Clangd/LSP](https://clangd.llvm.org/). It is supported by a variety of editors: [VSCode](https://code.visualstudio.com/docs/cpp/faq-cpp#_how-do-i-get-intellisense-to-work-correctly), [CLion](https://www.jetbrains.com/help/clion/compilation-database.html), [Neovim](https://neovim.io/), [Helix](https://helix-editor.com/) among others. * This script simplifies the creation of this database for AWS-LC: `compile_commands.json` * This adds the `compile_commands.json` file to `.gitignore`. ### Testing * I tested the script on both Linux and macOS. ``` ❯ ls -lh *.json -rw-rw-r-- 1 justsmth justsmth 456K Jun 3 14:04 compile_commands.json ``` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
- Loading branch information