-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server] Fix suppressing bug on the server
It is possible that the start line and end line of a bug reported by the analyzer are different. Example: ```cpp int main() { // codechecker_suppress [all] This will not be suppressed because of a bug. int x = 1 / 0; return x; } ``` In the above example the bug start line is where `x` variable is declared and the end line is in the next line. On the server we stored the start line as the line where the report can be found but for suppression we checked whether there is a source code comment above the end line. So if someone inserted a source code comment above the start line the server hasn't suppressed that report. With this patch we will solve this problem and we will check the source code comment above the start line and not the end line.
- Loading branch information
1 parent
26f7f42
commit 362e6a8
Showing
3 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
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
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
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