1 //===- FileEntry.cpp - File references --------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 /// Defines implementation for clang::FileEntry and clang::FileEntryRef.
12 //===----------------------------------------------------------------------===//
14 #include "clang/Basic/FileEntry.h"
15 #include "llvm/Support/MemoryBuffer.h"
16 #include "llvm/Support/VirtualFileSystem.h"
18 using namespace clang
;
20 FileEntry::FileEntry() : UniqueID(0, 0) {}
22 FileEntry::~FileEntry() = default;
24 void FileEntry::closeFile() const { File
.reset(); }