Author: Kazu Hirata
Date: 2023-08-20T22:07:59-07:00
New Revision: 9b987e08963dc001f1447e80fa77c17b3e612d68

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

LOG: [Sema] Modernize ShadowMapEntry (NFC)

Added: 
    

Modified: 
    clang/lib/Sema/SemaCodeComplete.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaCodeComplete.cpp 
b/clang/lib/Sema/SemaCodeComplete.cpp
index e3a2a21386e72c..2a3de571c4c428 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/lib/Sema/SemaCodeComplete.cpp
@@ -98,10 +98,10 @@ class ResultBuilder {
 
     /// When the entry contains a single declaration, this is
     /// the index associated with that entry.
-    unsigned SingleDeclIndex;
+    unsigned SingleDeclIndex = 0;
 
   public:
-    ShadowMapEntry() : SingleDeclIndex(0) {}
+    ShadowMapEntry() = default;
     ShadowMapEntry(const ShadowMapEntry &) = delete;
     ShadowMapEntry(ShadowMapEntry &&Move) { *this = std::move(Move); }
     ShadowMapEntry &operator=(const ShadowMapEntry &) = delete;


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to