| 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-exception |
| 6 | // |
| 7 | //===--------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file contains libclang symbols whose underlying functionality has been |
| 10 | // removed from Clang, but which need to be kept around so as to retain ABI |
| 11 | // 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 | |
| 20 | extern "C" { |
| 21 | |
| 22 | // The functions below used to be part of the C API for ARCMigrate, which has |
| 23 | // since been removed from Clang; they already used to print an error if Clang |
| 24 | // was compiled without arcmt support, so we continue doing so. |
| 25 | CXRemapping clang_getRemappings(const char *) { |
| 26 | llvm::errs() << "error: ARCMigrate has been removed from Clang" ; |
| 27 | return nullptr; |
| 28 | } |
| 29 | |
| 30 | CXRemapping clang_getRemappingsFromFileList(const char **, unsigned) { |
| 31 | llvm::errs() << "error: ARCMigrate has been removed from Clang" ; |
| 32 | return nullptr; |
| 33 | } |
| 34 | |
| 35 | unsigned clang_remap_getNumFiles(CXRemapping) { |
| 36 | llvm::errs() << "error: ARCMigrate has been removed from Clang" ; |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | void clang_remap_getFilenames(CXRemapping, unsigned, CXString *, CXString *) { |
| 41 | llvm::errs() << "error: ARCMigrate has been removed from Clang" ; |
| 42 | } |
| 43 | |
| 44 | void clang_remap_dispose(CXRemapping) { |
| 45 | llvm::errs() << "error: ARCMigrate has been removed from Clang" ; |
| 46 | } |
| 47 | |
| 48 | } // extern "C" |
| 49 | |