123ed570aSDuncan P. N. Exon Smith //===- FileEntry.cpp - File references --------------------------*- C++ -*-===// 223ed570aSDuncan P. N. Exon Smith // 323ed570aSDuncan P. N. Exon Smith // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 423ed570aSDuncan P. N. Exon Smith // See https://llvm.org/LICENSE.txt for license information. 523ed570aSDuncan P. N. Exon Smith // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 623ed570aSDuncan P. N. Exon Smith // 723ed570aSDuncan P. N. Exon Smith //===----------------------------------------------------------------------===// 823ed570aSDuncan P. N. Exon Smith // 923ed570aSDuncan P. N. Exon Smith /// \file 1023ed570aSDuncan P. N. Exon Smith /// Defines implementation for clang::FileEntry and clang::FileEntryRef. 1123ed570aSDuncan P. N. Exon Smith // 1223ed570aSDuncan P. N. Exon Smith //===----------------------------------------------------------------------===// 1323ed570aSDuncan P. N. Exon Smith 1423ed570aSDuncan P. N. Exon Smith #include "clang/Basic/FileEntry.h" 15*3ee43adfSDuncan P. N. Exon Smith #include "llvm/Support/MemoryBuffer.h" 1623ed570aSDuncan P. N. Exon Smith #include "llvm/Support/VirtualFileSystem.h" 1723ed570aSDuncan P. N. Exon Smith 1823ed570aSDuncan P. N. Exon Smith using namespace clang; 1923ed570aSDuncan P. N. Exon Smith FileEntry()200978c83eSDuncan P. N. Exon SmithFileEntry::FileEntry() : UniqueID(0, 0) {} 2123ed570aSDuncan P. N. Exon Smith 2223ed570aSDuncan P. N. Exon Smith FileEntry::~FileEntry() = default; 2323ed570aSDuncan P. N. Exon Smith closeFile() const2423ed570aSDuncan P. N. Exon Smithvoid FileEntry::closeFile() const { File.reset(); } 25