[cfe-users] clangd --clang-tidy: // NOLINT only works sometimes

tastytea via cfe-users cfe-users at lists.llvm.org
Sun Jan 26 13:03:06 PST 2020


Hi,
I recently started using clangd (9.0.1) with --clang-tidy. I noticed
that suppressing diagnostics only sometimes works.

For example:
    using std::array; // NOLINT(misc-unused-using-decls)
works with clang-tidy and clangd, but
    curl_global_init(CURL_GLOBAL_ALL); // NOLINT(hicpp-signed-bitwise)
works only with clang-tidy, not with clangd.

I found the review[1] of the feature when it was introduced but I don't
really understand what's going on thereā€¦

Is this a bug or can some warnings not be suppressed?

Kind regards, tastytea

[1] <https://reviews.llvm.org/D60953>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20200126/2e0220d7/attachment.sig>


More information about the cfe-users mailing list