diff options
| author | Kazu Hirata <kazu@google.com> | 2023-01-14 11:07:21 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2023-01-14 11:07:21 -0800 |
| commit | a1580d7b59b65b17f2ce7fdb95f46379e7df4089 (patch) | |
| tree | f2ad8c590c67456f0c31459b7b36aec28a51e510 /clang/unittests/Tooling/Syntax/TokensTest.cpp | |
| parent | 7d2ea6c422d3f5712b7253407005e1a465a76946 (diff) | |
| download | llvm-a1580d7b59b65b17f2ce7fdb95f46379e7df4089.tar.gz | |
[clang] Add #include <optional> (NFC)
This patch adds #include <optional> to those files containing
llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Optional with
std::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
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TokensTest.cpp')
| -rw-r--r-- | clang/unittests/Tooling/Syntax/TokensTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/Syntax/TokensTest.cpp b/clang/unittests/Tooling/Syntax/TokensTest.cpp index 1c9cec86eb9c..8f150463d805 100644 --- a/clang/unittests/Tooling/Syntax/TokensTest.cpp +++ b/clang/unittests/Tooling/Syntax/TokensTest.cpp @@ -44,6 +44,7 @@ #include <gmock/gmock.h> #include <gtest/gtest.h> #include <memory> +#include <optional> #include <ostream> #include <string> |
