From: Kazu Hirata Date: Sun, 27 Nov 2022 22:16:05 +0000 (-0800) Subject: [Support] Use std::optional in GlobPattern.h (NFC) X-Git-Tag: upstream/17.0.6~26297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4700e7ca159ac544d36b032f3523e113faa1d95f;p=platform%2Fupstream%2Fllvm.git [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 --- 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; }; }