1*e8d8bef9SDimitry Andric //===- FileEntry.cpp - File references --------------------------*- C++ -*-===// 2*e8d8bef9SDimitry Andric // 3*e8d8bef9SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*e8d8bef9SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*e8d8bef9SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*e8d8bef9SDimitry Andric // 7*e8d8bef9SDimitry Andric //===----------------------------------------------------------------------===// 8*e8d8bef9SDimitry Andric // 9*e8d8bef9SDimitry Andric /// \file 10*e8d8bef9SDimitry Andric /// Defines implementation for clang::FileEntry and clang::FileEntryRef. 11*e8d8bef9SDimitry Andric // 12*e8d8bef9SDimitry Andric //===----------------------------------------------------------------------===// 13*e8d8bef9SDimitry Andric 14*e8d8bef9SDimitry Andric #include "clang/Basic/FileEntry.h" 15*e8d8bef9SDimitry Andric #include "llvm/Support/MemoryBuffer.h" 16*e8d8bef9SDimitry Andric #include "llvm/Support/VirtualFileSystem.h" 17*e8d8bef9SDimitry Andric 18*e8d8bef9SDimitry Andric using namespace clang; 19*e8d8bef9SDimitry Andric FileEntry()20*e8d8bef9SDimitry AndricFileEntry::FileEntry() : UniqueID(0, 0) {} 21*e8d8bef9SDimitry Andric 22*e8d8bef9SDimitry Andric FileEntry::~FileEntry() = default; 23*e8d8bef9SDimitry Andric closeFile() const24*e8d8bef9SDimitry Andricvoid FileEntry::closeFile() const { File.reset(); } 25