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

Correctly Handle relative paths in JSON Compilation Databases #1797

Merged
merged 2 commits into from
Jan 27, 2020
Merged

Correctly Handle relative paths in JSON Compilation Databases #1797

merged 2 commits into from
Jan 27, 2020

Conversation

guwirth
Copy link
Collaborator

@guwirth guwirth commented Jan 25, 2020

According to the specification, all paths specified in a JSON Compilation
database must either be absolute, or relative to the location given
in the directory field.

Fixes #1790
Close #1791 & refactoring of include handling: using Path instead of String to be more platform independent


This change is Reviewable

tisoft and others added 2 commits January 20, 2020 14:49
According to the specification, all paths specified in a JSON Compilation
database must either be absolute, or relative to the location given
in the directory field.

Fixes #1790
@guwirth guwirth self-assigned this Jan 25, 2020
@guwirth guwirth added this to the 1.3.2 milestone Jan 25, 2020
@guwirth guwirth changed the title Relative paths in compilation database Correctly Handle relative paths in JSON Compilation Databases Jan 25, 2020
@guwirth
Copy link
Collaborator Author

guwirth commented Jan 25, 2020

@tisoft please review. I made it running on base of your proposal.

Copy link
Contributor

@tisoft tisoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 3 files at r1, 8 of 8 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Bertk, @ivangalkin, and @jmecosta)

@tisoft
Copy link
Contributor

tisoft commented Jan 27, 2020

Looks good to me. I have build it locally and it works for me:tm:.

@guwirth guwirth merged commit 2320ed2 into SonarOpenCommunity:master Jan 27, 2020
@guwirth guwirth mentioned this pull request Feb 10, 2020
@guwirth guwirth deleted the relative_paths_in_compilation_database branch February 14, 2020 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Correctly Handle relative paths in JSON Compilation Databases
2 participants