-
Notifications
You must be signed in to change notification settings - Fork 77
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
SLVS-1668 Include header file language in the VCX command #5861
Merged
georgii-borovinskikh-sonarsource
merged 4 commits into
feature/cfamily-migration
from
mj/workaround_for_cfamily_headers
Dec 10, 2024
Merged
SLVS-1668 Include header file language in the VCX command #5861
georgii-borovinskikh-sonarsource
merged 4 commits into
feature/cfamily-migration
from
mj/workaround_for_cfamily_headers
Dec 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hashicorp-vault-sonar-prod
bot
changed the title
[WIP] Workaround for cfamily headers
SLVS-1668 [WIP] Workaround for cfamily headers
Nov 29, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 [WIP] Workaround for cfamily headers
[WIP] SLVS-1668 Workaround for cfamily headers
Nov 29, 2024
michael-jabbour-sonarsource
changed the title
[WIP] SLVS-1668 Workaround for cfamily headers
[WIP] SLVS-1668 Workaround for CFamily headers
Nov 29, 2024
michael-jabbour-sonarsource
force-pushed
the
mj/workaround_for_cfamily_headers
branch
5 times, most recently
from
November 29, 2024 13:36
3a5f1f7
to
0594303
Compare
georgii-borovinskikh-sonarsource
force-pushed
the
gb/vcx-migration
branch
from
November 29, 2024 14:13
715e7da
to
7acbb94
Compare
michael-jabbour-sonarsource
force-pushed
the
mj/workaround_for_cfamily_headers
branch
4 times, most recently
from
November 29, 2024 16:14
02beb4c
to
8995923
Compare
michael-jabbour-sonarsource
changed the title
[WIP] SLVS-1668 Workaround for CFamily headers
SLVS-1668 Workaround for CFamily headers
Nov 29, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 Workaround for CFamily headers
SLVS-1668 Workaround for CFamily header language
Dec 2, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 Workaround for CFamily header language
SLVS-1668 Communicate header file language in the VCX generated compilation database
Dec 2, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 Communicate header file language in the VCX generated compilation database
SLVS-1668 Include header file language in the VCX generated compilation database
Dec 2, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 Include header file language in the VCX generated compilation database
SLVS-1668 Include header file language in the VCX generated compdb
Dec 2, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 Include header file language in the VCX generated compdb
SLVS-1668 Include header language in the VCX generated compdb
Dec 2, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 Include header language in the VCX generated compdb
SLVS-1668 Include header file language in the VCX generated command
Dec 2, 2024
michael-jabbour-sonarsource
changed the title
SLVS-1668 Include header file language in the VCX generated command
SLVS-1668 Include header file language in the VCX command
Dec 2, 2024
michael-jabbour-sonarsource
requested a review
from mostafa-mohammed-sonarsource
December 2, 2024 10:36
mostafa-mohammed-sonarsource
approved these changes
Dec 2, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Base automatically changed from
gb/vcx-migration
to
feature/cfamily-migration
December 4, 2024 13:44
michael-jabbour-sonarsource
force-pushed
the
mj/workaround_for_cfamily_headers
branch
from
December 4, 2024 15:07
aec5103
to
d58d1bc
Compare
georgii-borovinskikh-sonarsource
deleted the branch
feature/cfamily-migration
December 9, 2024 12:49
This helps analyze headers in C projects as C code. This is needed now that we no longer pass HeaderFileLanguage separately to the analyzer.
Normally, the CFamily analyzer deduces that the file being analyzed is a header when there is no exact match for the file name in the given compilation database. This is a temporary workaround to communicate with the analyzer that the current file is a header file. This helps the analyzer avoid reporting some FPs. See https://sonarsource.atlassian.net/browse/CPP-2743
michael-jabbour-sonarsource
force-pushed
the
mj/workaround_for_cfamily_headers
branch
from
December 9, 2024 13:33
d58d1bc
to
471a48f
Compare
Quality Gate passedIssues Measures |
georgii-borovinskikh-sonarsource
approved these changes
Dec 10, 2024
georgii-borovinskikh-sonarsource
merged commit Dec 10, 2024
37eb38b
into
feature/cfamily-migration
4 checks passed
georgii-borovinskikh-sonarsource
deleted the
mj/workaround_for_cfamily_headers
branch
December 10, 2024 11:23
georgii-borovinskikh-sonarsource
pushed a commit
that referenced
this pull request
Dec 24, 2024
[SLVS-1668](https://sonarsource.atlassian.net/browse/SLVS-1668) Part of SLVS-1637 See the linked ticket for details about the problems we identified. This PR introduces the following changes: - To communicate the header file language, I am adding the relevant switches to the generated command in the header case as well. This helps analyze C headers as such when they are located inside C VCX projects. - Since `HeaderFileLanguage` is no longer needed, I am removing it from `FileConfig`. [SLVS-1668]: https://sonarsource.atlassian.net/browse/SLVS-1668?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
georgii-borovinskikh-sonarsource
pushed a commit
that referenced
this pull request
Dec 24, 2024
[SLVS-1668](https://sonarsource.atlassian.net/browse/SLVS-1668) Part of SLVS-1637 See the linked ticket for details about the problems we identified. This PR introduces the following changes: - To communicate the header file language, I am adding the relevant switches to the generated command in the header case as well. This helps analyze C headers as such when they are located inside C VCX projects. - Since `HeaderFileLanguage` is no longer needed, I am removing it from `FileConfig`. [SLVS-1668]: https://sonarsource.atlassian.net/browse/SLVS-1668?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SLVS-1668
Part of SLVS-1637
See the linked ticket for details about the problems we identified. This PR introduces the following changes:
HeaderFileLanguage
is no longer needed, I am removing it fromFileConfig
.