1 //===- FileEntry.cpp - File references --------------------------*- C++ -*-===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 /// \file 10 /// Defines implementation for clang::FileEntry and clang::FileEntryRef. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #include "clang/Basic/FileEntry.h" 15 #include "llvm/Support/VirtualFileSystem.h" 16 17 using namespace clang; 18 FileEntry()19FileEntry::FileEntry() : UniqueID(0, 0), IsNamedPipe(false), IsValid(false) {} 20 21 FileEntry::~FileEntry() = default; 22 closeFile() const23void FileEntry::closeFile() const { File.reset(); } 24