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