[clang-tools-extra] 1a4990a - [clangd] Fix uninit member

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 3 02:45:31 PST 2021


Author: Sam McCall
Date: 2021-03-03T11:45:16+01:00
New Revision: 1a4990a4f71adf1ea0b8f7e0ae2ddd8a85f9c393

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

LOG: [clangd] Fix uninit member

Added: 
    

Modified: 
    clang-tools-extra/clangd/Protocol.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/Protocol.h b/clang-tools-extra/clangd/Protocol.h
index f918183716d2..71de24a763d5 100644
--- a/clang-tools-extra/clangd/Protocol.h
+++ b/clang-tools-extra/clangd/Protocol.h
@@ -981,7 +981,7 @@ struct DocumentSymbol {
   SymbolKind kind;
 
   /// Indicates if this symbol is deprecated.
-  bool deprecated;
+  bool deprecated = false;
 
   /// The range enclosing this symbol not including leading/trailing whitespace
   /// but everything else like comments. This information is typically used to


        


More information about the cfe-commits mailing list