From 125f4457a54a550846732763ee36b1447ec8d66e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 29 Jan 2023 18:08:00 -0800 Subject: [PATCH] [clang] Remove clang::Optional This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Differential Revision: https://reviews.llvm.org/D142857 --- clang/include/clang/Basic/LLVM.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/clang/include/clang/Basic/LLVM.h b/clang/include/clang/Basic/LLVM.h index 7ffc4c4..f4956cd 100644 --- a/clang/include/clang/Basic/LLVM.h +++ b/clang/include/clang/Basic/LLVM.h @@ -19,9 +19,6 @@ // dependencies. // Casting.h has complex templates that cannot be easily forward declared. #include "llvm/Support/Casting.h" -// None.h includes an enumerator that is desired & cannot be forward declared -// without a definition of NoneType. -#include "llvm/ADT/None.h" // Add this header as a workaround to prevent `too few template arguments for // class template 'SmallVector'` building error with build compilers like XL. #include "llvm/ADT/SmallVector.h" @@ -37,7 +34,6 @@ namespace llvm { template class SmallString; template class SmallVector; template class SmallVectorImpl; - template using Optional = std::optional; template class Expected; template @@ -69,7 +65,6 @@ namespace clang { // ADT's. using llvm::ArrayRef; using llvm::MutableArrayRef; - using llvm::Optional; using llvm::OwningArrayRef; using llvm::SaveAndRestore; using llvm::SmallString; -- 2.7.4