[PATCH] D22712: Remove FileEntry copy-constructor
Alexander Shaposhnikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 20 14:30:00 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL284782: [clang] Remove FileEntry copy-constructor (authored by alexshap).
Changed prior to commit:
https://reviews.llvm.org/D22712?vs=65187&id=75356#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22712
Files:
cfe/trunk/include/clang/Basic/FileManager.h
Index: cfe/trunk/include/clang/Basic/FileManager.h
===================================================================
--- cfe/trunk/include/clang/Basic/FileManager.h
+++ cfe/trunk/include/clang/Basic/FileManager.h
@@ -65,22 +65,14 @@
mutable std::unique_ptr<vfs::File> File;
friend class FileManager;
+ FileEntry(const FileEntry &) = delete;
void operator=(const FileEntry &) = delete;
public:
FileEntry()
: UniqueID(0, 0), IsNamedPipe(false), InPCH(false), IsValid(false)
{}
- // FIXME: this is here to allow putting FileEntry in std::map. Once we have
- // emplace, we shouldn't need a copy constructor anymore.
- /// Intentionally does not copy fields that are not set in an uninitialized
- /// \c FileEntry.
- FileEntry(const FileEntry &FE) : UniqueID(FE.UniqueID),
- IsNamedPipe(FE.IsNamedPipe), InPCH(FE.InPCH), IsValid(FE.IsValid) {
- assert(!isValid() && "Cannot copy an initialized FileEntry");
- }
-
StringRef getName() const { return Name; }
StringRef tryGetRealPathName() const { return RealPathName; }
bool isValid() const { return IsValid; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22712.75356.patch
Type: text/x-patch
Size: 1111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161020/edc50b0c/attachment-0001.bin>
More information about the cfe-commits
mailing list