Issue 83339
Summary [clang-tidy] method for NOLINT whole file
Labels clang-tidy
Assignees
Reporter nickdesaulniers
    https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics mentions that:

> The NOLINT comment instructs clang-tidy to ignore warnings on the same line (it doesn’t apply to a function, a block of code or any other language construct; it applies to the line of code it is on).

For implementing assert.h in llvm-libc, you literally do not want a header guard. To suppress `llvm-header-guard`, we need to add `NOLINT(llvm-header-guard)` as the very first line to this header, BEFORE the license comment, which is also against the style guide.

It would be nice if we had another method for silence this clang-tidy diagnostic somehow within this file.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to