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

Added feature to generate compile_commands.json file #692

Merged
merged 2 commits into from
May 16, 2024

Commits on May 15, 2024

  1. Added feature to generate compile_commands.json file

    Includes:
    
    - Created a new extension point to provide the opportunity to
    incorporate additional information into the file
    - New tests for the generator
    - Preference page to enable/disable generator
    
    Fixes eclipse-cdt#689
    alicetrifu authored and jonahgraham committed May 15, 2024
    Configuration menu
    Copy the full SHA
    1be4ce0 View commit details
    Browse the repository at this point in the history
  2. Generate compile_commands.json into standard build directory

    That it is the file ends up in Debug/compile_commands.json
    instead of build/compile_commands.json.
    
    This lines up the behaviour of the generator with that
    of the code that generates a .clangd file in [ClangdConfigurationFileManager.java](https://github.com/eclipse-cdt/cdt-lsp/blob/ee297ee0ced1747352039e6ee25bcc80c10c7462/bundles/org.eclipse.cdt.lsp.clangd/src/org/eclipse/cdt/lsp/clangd/internal/config/ClangdConfigurationFileManager.java)
    This code already supports vendors overriding to supply their
    own (or extended) .clangd contents.
    jonahgraham committed May 15, 2024
    Configuration menu
    Copy the full SHA
    f13b0cb View commit details
    Browse the repository at this point in the history