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

SLVS-1690 Analyze CFamily header files as such to avoid FPs #5895

Conversation

michael-jabbour-sonarsource
Copy link
Contributor

@michael-jabbour-sonarsource michael-jabbour-sonarsource commented Dec 13, 2024

SLVS-1690

This is done by including a special environment variable in the compilation database entry generated for header files. This environment variable is recognized starting with CFamily analyzer v6.62 (CPP-5898).

Additionally, the PR adds some verbose logs to describe which env variables were overwritten/added (similar to what we used to have here).

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Add IsHeaderFile to FileConfig SLVS-1704 Add IsHeaderFile to FileConfig Dec 13, 2024
@michael-jabbour-sonarsource michael-jabbour-sonarsource changed the title SLVS-1704 Add IsHeaderFile to FileConfig SLVS-1690 Add IsHeaderFile to FileConfig Dec 13, 2024
@michael-jabbour-sonarsource michael-jabbour-sonarsource changed the title SLVS-1690 Add IsHeaderFile to FileConfig SLVS-1690 Analyze CFamily header files as such to avoid FPs Dec 13, 2024
@michael-jabbour-sonarsource michael-jabbour-sonarsource force-pushed the mj/SLVS-1690_header_analysis branch 19 times, most recently from 6c0c88c to eaf7185 Compare December 15, 2024 18:02
@michael-jabbour-sonarsource michael-jabbour-sonarsource marked this pull request as ready for review December 15, 2024 22:08
@michael-jabbour-sonarsource michael-jabbour-sonarsource force-pushed the mj/SLVS-1690_header_analysis branch 2 times, most recently from 646847c to ec44167 Compare December 16, 2024 00:06
Base automatically changed from gb/vcx-env-vars to feature/cfamily-migration December 16, 2024 13:40
@michael-jabbour-sonarsource michael-jabbour-sonarsource merged commit 82bdaab into feature/cfamily-migration Dec 16, 2024
3 checks passed
@michael-jabbour-sonarsource michael-jabbour-sonarsource deleted the mj/SLVS-1690_header_analysis branch December 16, 2024 14:24
georgii-borovinskikh-sonarsource pushed a commit that referenced this pull request Dec 24, 2024
[SLVS-1690](https://sonarsource.atlassian.net/browse/SLVS-1690)

This is done by including a special environment variable in the
compilation database entry generated for header files. This environment
variable is recognized starting with CFamily analyzer v6.62 (CPP-5898).

Additionally, the PR adds some verbose logs to describe which env
variables were overwritten/added (similar to what we used to have
[here](https://github.com/SonarSource/sonarlint-visualstudio/blob/6498da7a3788467884af7446966029aaab5625ce/src/CFamily/Subprocess/ProcessRunner.cs#L172-L1930)).

[SLVS-1690]:
https://sonarsource.atlassian.net/browse/SLVS-1690?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
georgii-borovinskikh-sonarsource pushed a commit that referenced this pull request Dec 24, 2024
[SLVS-1690](https://sonarsource.atlassian.net/browse/SLVS-1690)

This is done by including a special environment variable in the
compilation database entry generated for header files. This environment
variable is recognized starting with CFamily analyzer v6.62 (CPP-5898).

Additionally, the PR adds some verbose logs to describe which env
variables were overwritten/added (similar to what we used to have
[here](https://github.com/SonarSource/sonarlint-visualstudio/blob/6498da7a3788467884af7446966029aaab5625ce/src/CFamily/Subprocess/ProcessRunner.cs#L172-L1930)).

[SLVS-1690]:
https://sonarsource.atlassian.net/browse/SLVS-1690?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants