Add doc link to missing include diagnostics.
authorViktoriia Bakalova <bakalova@google.com>
Tue, 16 May 2023 14:15:10 +0000 (14:15 +0000)
committerViktoriia Bakalova <bakalova@google.com>
Tue, 16 May 2023 16:10:58 +0000 (16:10 +0000)
Differential Revision: https://reviews.llvm.org/D150668

clang-tools-extra/clangd/Diagnostics.cpp

index d172614..b708f9c 100644 (file)
@@ -918,7 +918,7 @@ std::optional<std::string> getDiagnosticDocURI(Diag::DiagSource Source,
         .str();
   }
   case Diag::Clangd:
-    if (Name == "unused-includes")
+    if (Name == "unused-includes" || Name == "missing-includes")
       return {"https://clangd.llvm.org/guides/include-cleaner"};
     break;
   case Diag::ClangdConfig: