[clang-tools-extra] cdd37e2 - [clangd] Disable hicpp-invalid-access-moved inside clangd

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 25 01:33:22 PST 2021


Author: Kadir Cetinkaya
Date: 2021-11-25T10:27:45+01:00
New Revision: cdd37e2e47f757d2130f741d8e720098bf920c40

URL: https://github.com/llvm/llvm-project/commit/cdd37e2e47f757d2130f741d8e720098bf920c40
DIFF: https://github.com/llvm/llvm-project/commit/cdd37e2e47f757d2130f741d8e720098bf920c40.diff

LOG: [clangd] Disable hicpp-invalid-access-moved inside clangd

Added: 
    

Modified: 
    clang-tools-extra/clangd/TidyProvider.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/TidyProvider.cpp b/clang-tools-extra/clangd/TidyProvider.cpp
index 7573645eeefd4..eea5b062b849b 100644
--- a/clang-tools-extra/clangd/TidyProvider.cpp
+++ b/clang-tools-extra/clangd/TidyProvider.cpp
@@ -213,7 +213,9 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
                        // Check can choke on invalid (intermediate) c++
                        // code, which is often the case when clangd
                        // tries to build an AST.
-                       "-bugprone-use-after-move");
+                       "-bugprone-use-after-move",
+                       // Alias for bugprone-use-after-moe.
+                       "-hicpp-invalid-access-moved");
 
   size_t Size = BadChecks.size();
   for (const std::string &Str : ExtraBadChecks) {


        


More information about the cfe-commits mailing list