r261442 - Lex: Remove explicitly deleted copy constructor, NFC

Duncan P. N. Exon Smith via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 20 10:53:45 PST 2016


Author: dexonsmith
Date: Sat Feb 20 12:53:45 2016
New Revision: 261442

URL: http://llvm.org/viewvc/llvm-project?rev=261442&view=rev
Log:
Lex: Remove explicitly deleted copy constructor, NFC

`std::unique_ptr<MemoryBuffer>` already deletes these, so there's no
reason for the boiler-plate in HeaderMap.

Modified:
    cfe/trunk/include/clang/Lex/HeaderMap.h

Modified: cfe/trunk/include/clang/Lex/HeaderMap.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/HeaderMap.h?rev=261442&r1=261441&r2=261442&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/HeaderMap.h (original)
+++ cfe/trunk/include/clang/Lex/HeaderMap.h Sat Feb 20 12:53:45 2016
@@ -30,9 +30,6 @@ namespace clang {
 /// symlinks to files.  Its advantages are that it is dense and more efficient
 /// to create and process than a directory of symlinks.
 class HeaderMap {
-  HeaderMap(const HeaderMap &) = delete;
-  void operator=(const HeaderMap &) = delete;
-
   std::unique_ptr<const llvm::MemoryBuffer> FileBuffer;
   bool NeedsBSwap;
 




More information about the cfe-commits mailing list