[PATCH] D85417: [clangd] Fix crash in bugprone-bad-signal-to-kill-thread clang-tidy check.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 06:52:45 PDT 2020


hokein accepted this revision.
hokein added a comment.
This revision is now accepted and ready to land.

Thanks, this is a nice catch.

Looks like NotNullTerminatedResultCheck.cpp also has this pattern, we may want to fix that as well.



================
Comment at: clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp:441
 
+TEST(DiagnosticTest, ClangTidyBadSignalToKillThread) {
+  Annotations Main(R"cpp(
----------------
ClangTidyBadSignalToKillThread doesn't seen ti provide much information about what is testcase testing. Maybe `NoLiteralDataInMacroToken`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85417/new/

https://reviews.llvm.org/D85417



More information about the cfe-commits mailing list