[clang-tools-extra] r334824 - [clangd] context key constructor is constexpr. NFC

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 15 05:39:21 PDT 2018


Author: sammccall
Date: Fri Jun 15 05:39:21 2018
New Revision: 334824

URL: http://llvm.org/viewvc/llvm-project?rev=334824&view=rev
Log:
[clangd] context key constructor is constexpr. NFC

Modified:
    clang-tools-extra/trunk/clangd/Context.h

Modified: clang-tools-extra/trunk/clangd/Context.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Context.h?rev=334824&r1=334823&r2=334824&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Context.h (original)
+++ clang-tools-extra/trunk/clangd/Context.h Fri Jun 15 05:39:21 2018
@@ -43,7 +43,7 @@ public:
   static_assert(!std::is_reference<Type>::value,
                 "Reference arguments to Key<> are not allowed");
 
-  Key() = default;
+  constexpr Key() = default;
 
   Key(Key const &) = delete;
   Key &operator=(Key const &) = delete;




More information about the cfe-commits mailing list