mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
wpiutil: Rename Optional.h to LLVMOptional.h
This commit is contained in:
@@ -27,7 +27,7 @@ generatedFileExclude {
|
||||
src/main/native/include/wpi/MathExtras\.h$
|
||||
src/main/native/include/wpi/NativeFormatting\.h$
|
||||
src/main/native/include/wpi/None\.h$
|
||||
src/main/native/include/wpi/Optional\.h$
|
||||
src/main/native/include/wpi/LLVMOptional\.h$
|
||||
src/main/native/include/wpi/Path\.h$
|
||||
src/main/native/include/wpi/PointerLikeTypeTraits\.h$
|
||||
src/main/native/include/wpi/STLExtras\.h$
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* 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
|
||||
|
||||
// clang-format off
|
||||
#ifdef _MSC_VER
|
||||
#pragma message "warning: llvm/Optional.h is deprecated; include wpi/Optional.h instead"
|
||||
#else
|
||||
#warning "llvm/Optional.h is deprecated; include wpi/Optional.h instead"
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
#include "wpi/Optional.h"
|
||||
|
||||
namespace llvm = wpi;
|
||||
@@ -10,7 +10,7 @@
|
||||
#ifndef WPIUTIL_WPI_NATIVE_FORMATTING_H
|
||||
#define WPIUTIL_WPI_NATIVE_FORMATTING_H
|
||||
|
||||
#include "wpi/Optional.h"
|
||||
#include "wpi/LLVMOptional.h"
|
||||
#include "wpi/raw_ostream.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#ifndef WPIUTIL_WPI_STLEXTRAS_H
|
||||
#define WPIUTIL_WPI_STLEXTRAS_H
|
||||
|
||||
#include "wpi/Optional.h"
|
||||
#include "wpi/LLVMOptional.h"
|
||||
#include "wpi/SmallVector.h"
|
||||
#include "wpi/iterator.h"
|
||||
#include "wpi/iterator_range.h"
|
||||
|
||||
Reference in New Issue
Block a user