mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
These generate a warning when included, then include the old header. Note for GCC, #warning is used; this requires -std=gnu++14 instead of -std=c++14 (otherwise the warning is treated as an error because #warning is a GNU extension). On MSVC, #pragma message is used, which is a bit unsatisfactory as the message doesn't say where it was included from. The llvm shim headers also include a llvm namespace shim.
19 lines
742 B
C++
19 lines
742 B
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma message "warning: llvm/ArrayRef.h is deprecated; include wpi/ArrayRef.h instead"
|
|
#else
|
|
#warning "llvm/ArrayRef.h is deprecated; include wpi/ArrayRef.h instead"
|
|
#endif
|
|
|
|
#include "wpi/ArrayRef.h"
|
|
|
|
namespace llvm = wpi;
|