summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <shal1t712@gmail.com>2016-10-20 21:20:35 +0000
committerAlexander Shaposhnikov <shal1t712@gmail.com>2016-10-20 21:20:35 +0000
commit476cbf901ba21c900e8d19a7547f0fd587a7492a (patch)
treed8980b921bc9469d56e3f9c670b8436ce6c4681b /clang/include
parentafd7b696587950efffb29b854db82e69caacc8ac (diff)
downloadbcm5719-llvm-476cbf901ba21c900e8d19a7547f0fd587a7492a.tar.gz
bcm5719-llvm-476cbf901ba21c900e8d19a7547f0fd587a7492a.zip
[clang] Remove FileEntry copy-constructor
Code cleanup: address FIXME in the file include/clang/Basic/FileManager.h and remove copy-constructor of the class FileEntry. Test plan: make check-clang Differential revision: https://reviews.llvm.org/D22712 llvm-svn: 284782
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/Basic/FileManager.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/include/clang/Basic/FileManager.h b/clang/include/clang/Basic/FileManager.h
index 8539e8ee9ec..7bee4c59682 100644
--- a/clang/include/clang/Basic/FileManager.h
+++ b/clang/include/clang/Basic/FileManager.h
@@ -65,6 +65,7 @@ class FileEntry {
mutable std::unique_ptr<vfs::File> File;
friend class FileManager;
+ FileEntry(const FileEntry &) = delete;
void operator=(const FileEntry &) = delete;
public:
@@ -72,15 +73,6 @@ public:
: 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; }
OpenPOWER on IntegriCloud