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

David Blaikie via cfe-users cfe-users at lists.llvm.org
Sun Jan 26 13:15:02 PST 2020


+Sam in case he's got some thoughts or can rope in others who might.

On Sun, Jan 26, 2020 at 1:03 PM tastytea via cfe-users <
cfe-users at lists.llvm.org> wrote:

> 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>
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20200126/c997916c/attachment.html>


More information about the cfe-users mailing list