From 4700e7ca159ac544d36b032f3523e113faa1d95f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Nov 2022 14:16:05 -0800 Subject: [PATCH] [Support] Use std::optional in GlobPattern.h (NFC) 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 --- llvm/include/llvm/Support/GlobPattern.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Support/GlobPattern.h b/llvm/include/llvm/Support/GlobPattern.h index 96e2a15..e832d8f 100644 --- a/llvm/include/llvm/Support/GlobPattern.h +++ b/llvm/include/llvm/Support/GlobPattern.h @@ -17,6 +17,7 @@ #include "llvm/ADT/BitVector.h" #include "llvm/ADT/Optional.h" #include "llvm/Support/Error.h" +#include #include // This class represents a glob pattern. Supported metacharacters @@ -48,9 +49,9 @@ private: std::vector Tokens; // The following members are for optimization. - Optional Exact; - Optional Prefix; - Optional Suffix; + std::optional Exact; + std::optional Prefix; + std::optional Suffix; }; } -- 2.7.4