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

Incremental support for changes in compilation commands #372

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

mcserep
Copy link
Collaborator

@mcserep mcserep commented Jan 19, 2020

CodeCompass is already capable of detecting modified and deleted files, cleaning them from the workspace database, thus providing an incremental parsing functionality.

This PR extends incremental parsing to detect changes in the compilation commands. This is achieved as follows:

  1. The compile commands from the given JSON file(s) are loaded.
  2. All BuildAction entities are loaded from the workspace database.
  3. For each BuildAction in the workspace database it is checked: if a BuildAction stores a command, which is not present in the compile commands database loaded from the JSON file(s), the source files for that build action are marked for cleanup. (This will ultimately clean up the given source file, the related AST info and the related build action itself.)

@mcserep mcserep added Kind: Enhancement 🌟 Plugin: C++ Issues related to the parsing and presentation of C++ projects. labels Jan 19, 2020
@mcserep mcserep added this to the Release Flash milestone Jan 19, 2020
@mcserep mcserep merged commit ebed74a into Ericsson:master Feb 19, 2020
@mcserep mcserep deleted the incremental-build-actions branch February 19, 2020 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind: Enhancement 🌟 Plugin: C++ Issues related to the parsing and presentation of C++ projects.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants