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

RULE-2-2, etc: use new macro deduplication module for improved results #838

Open
MichaelRFairhurst opened this issue Jan 16, 2025 · 0 comments
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address enhancement New feature or request false positive/false negative An issue related to observed false positives or false negatives. false-negative An issue representing a false negative report. Impact-Low Standard-AUTOSAR Standard-MISRA-C Stardard-MISRA-C++

Comments

@MichaelRFairhurst
Copy link
Contributor

Affected rules

  • RULE-2-2, and likely others

Description

These rules look for dead code and exclude results from macros to reduce noise, since macros may be expanded dozens or hundreds of times. A new module in this PR can reduce noise for these results, and should be integrated into these dead code queries.

Example

#define FOO(x) (1 + x)
void f() {
  int l;
  FOO(l);
}
@MichaelRFairhurst MichaelRFairhurst added Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address enhancement New feature or request false positive/false negative An issue related to observed false positives or false negatives. false-negative An issue representing a false negative report. Impact-Low Standard-AUTOSAR Standard-MISRA-C Stardard-MISRA-C++ labels Jan 16, 2025
@lcartey lcartey moved this from Reported to Triaged in Coding Standards Public Development Board Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address enhancement New feature or request false positive/false negative An issue related to observed false positives or false negatives. false-negative An issue representing a false negative report. Impact-Low Standard-AUTOSAR Standard-MISRA-C Stardard-MISRA-C++
Projects
Development

No branches or pull requests

1 participant