Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script for creating compilation database #1617

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

justsmth
Copy link
Contributor

@justsmth justsmth commented Jun 3, 2024

Description of changes:

  • A compilation database 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. It is supported by a variety of editors: VSCode, CLion, Neovim, Helix 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.
❯ ./util/build_compilation_database.sh
...
❯ 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.

@justsmth justsmth requested a review from a team as a code owner June 3, 2024 14:29
@justsmth justsmth force-pushed the compilation-database branch 3 times, most recently from a604b46 to 63ca4fe Compare June 3, 2024 15:27
@justsmth justsmth force-pushed the compilation-database branch from 63ca4fe to 149dd6f Compare June 3, 2024 21:21
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.05%. Comparing base (8258d73) to head (149dd6f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1617   +/-   ##
=======================================
  Coverage   78.05%   78.05%           
=======================================
  Files         562      562           
  Lines       94600    94600           
  Branches    13575    13574    -1     
=======================================
+ Hits        73840    73844    +4     
+ Misses      20168    20161    -7     
- Partials      592      595    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justsmth justsmth merged commit 7735598 into aws:main Jun 5, 2024
91 of 92 checks passed
@justsmth justsmth deleted the compilation-database branch June 5, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants