Menu

Inline suppress with C-comment-syntax

2021-08-17
2021-08-19
  • Tobias Wollgam

    Tobias Wollgam - 2021-08-17

    Hello

    is it possible to use the inline suppress with C comment syntax like /* cppcheck-suppress memleak */?

    c++ comments can not be used in macros even they are multiline.

    Generally we avoid macros but there are some rare cases for which this feature would be great.

     
  • Daniel Marjamäki

    You should be able to inline suppress with C comments. But not in macros as far as I know.

    so you have some memleak when a macro is used and you want to suppress it.. could you show some rough code example? can we somehow let you write such code.
    we often do not write warnings when we see certain strange stuff in macros because the macros are often written in certain ways by intention and there will not be a real problem..

     
  • Tobias Wollgam

    Tobias Wollgam - 2021-08-19

    I am very sorry. I think I must take a look at the problem again. May be there is no real problem.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.