================ @@ -0,0 +1,44 @@ +//===------- SizedDellocation.h - Sized Deallocation ------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +/// +/// \file +/// Defines a function that returns the minimum OS versions supporting +/// C++14's sized deallocation functions. +/// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CLANG_BASIC_SIZEDDEALLOCATION_H +#define LLVM_CLANG_BASIC_SIZEDDEALLOCATION_H + +#include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/VersionTuple.h" +#include "llvm/TargetParser/Triple.h" + +namespace clang { +inline llvm::VersionTuple sizedDeallocMinVersion(llvm::Triple::OSType OS) { ---------------- ChuanqiXu9 wrote:
If I read correctly, this is only used in `Darwin.cpp`, so it would be better to inline the function there. https://github.com/llvm/llvm-project/pull/83774 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits