49 lines · cpp
1//===- Obsolete.cpp - Obsolete libclang functions and types -------------===//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-exception6//7//===--------------------------------------------------------------------===//8//9// This file contains libclang symbols whose underlying functionality has been10// removed from Clang, but which need to be kept around so as to retain ABI11// compatibility.12//13//===--------------------------------------------------------------------===//14 15#include "clang-c/CXString.h"16#include "clang-c/Index.h"17#include "clang-c/Platform.h"18#include "llvm/Support/raw_ostream.h"19 20extern "C" {21 22// The functions below used to be part of the C API for ARCMigrate, which has23// since been removed from Clang; they already used to print an error if Clang24// was compiled without arcmt support, so we continue doing so.25CXRemapping clang_getRemappings(const char *) {26 llvm::errs() << "error: ARCMigrate has been removed from Clang";27 return nullptr;28}29 30CXRemapping clang_getRemappingsFromFileList(const char **, unsigned) {31 llvm::errs() << "error: ARCMigrate has been removed from Clang";32 return nullptr;33}34 35unsigned clang_remap_getNumFiles(CXRemapping) {36 llvm::errs() << "error: ARCMigrate has been removed from Clang";37 return 0;38}39 40void clang_remap_getFilenames(CXRemapping, unsigned, CXString *, CXString *) {41 llvm::errs() << "error: ARCMigrate has been removed from Clang";42}43 44void clang_remap_dispose(CXRemapping) {45 llvm::errs() << "error: ARCMigrate has been removed from Clang";46}47 48} // extern "C"49