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

Suppression Comments Confuse Assignment of Code and Comment #236

Open
Reen opened this issue Jan 17, 2023 · 0 comments
Open

Suppression Comments Confuse Assignment of Code and Comment #236

Reen opened this issue Jan 17, 2023 · 0 comments

Comments

@Reen
Copy link

Reen commented Jan 17, 2023

In our codebase we are relying on a set of static analyzers. In some situations, these analyzers give warnings that we want to suppress, e.g. false positives or a given rule has to be dis-applied in that specific context. Some of these analyzers want there suppression comments right above the line it applies to, e.g.

    /** \brief Move ctor. */
    // cppcheck-suppress noExplicitConstructor
    Array(Array<T, SIZE>&&) noexcept = default;

Standardese is then confused by this additional comment and raises a warning like:
[standardese comment] [warning] /path/to/Array.hpp:122: comment does not have a remote entity specified

Is there any workaround for this or could you point me to the right place where to fix this?

Thanks,
René

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

No branches or pull requests

1 participant