Path: blob/main/contrib/llvm-project/clang/lib/Basic/FileEntry.cpp
35232 views
//===- FileEntry.cpp - File references --------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8/// \file9/// Defines implementation for clang::FileEntry and clang::FileEntryRef.10//11//===----------------------------------------------------------------------===//1213#include "clang/Basic/FileEntry.h"14#include "llvm/Support/MemoryBuffer.h"15#include "llvm/Support/VirtualFileSystem.h"1617using namespace clang;1819FileEntry::FileEntry() : UniqueID(0, 0) {}2021FileEntry::~FileEntry() = default;2223void FileEntry::closeFile() const { File.reset(); }242526