Bug 495842 - Add a quick fix for codan warnings that ignores them by adding a @suppress comment
Summary: Add a quick fix for codan warnings that ignores them by adding a @suppress co...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: 9.4.0   Edit
Assignee: Felix Morgner CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on: 383576
Blocks:
  Show dependency tree
 
Reported: 2016-06-09 19:37 EDT by Nathan Ridge CLA
Modified: 2017-10-20 00:48 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2016-06-09 19:37:46 EDT
Bug 383576 implemented a mechanism to ignore codan warnings on a case-by-case basis by adding a comment of the form

  // @suppress("name of warning")

to the line that triggers the warning.

It would be great to have a quick fix that adds the comment for you, instead of having to type it out manually.
Comment 1 Eclipse Genie CLA 2017-05-16 08:46:30 EDT
New Gerrit change created: https://git.eclipse.org/r/97224
Comment 3 Nathan Ridge CLA 2017-10-04 11:18:04 EDT
Fixed for CDT 9.4, which will appear in Oxygen.2.

Thanks for adding this, Felix!
Comment 4 Nathan Ridge CLA 2017-10-20 00:48:51 EDT
Mentioned on the "New in 9.4" page:

https://wiki.eclipse.org/CDT/User/NewIn94#Code_Analysis