aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
-rw-r--r--clang/unittests/libclang/LibclangTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/libclang/LibclangTest.cpp b/clang/unittests/libclang/LibclangTest.cpp
index 0845476..809426a 100644
--- a/clang/unittests/libclang/LibclangTest.cpp
+++ b/clang/unittests/libclang/LibclangTest.cpp
@@ -19,6 +19,7 @@
#include <functional>
#include <map>
#include <memory>
+#include <optional>
#include <set>
#define DEBUG_TYPE "libclang-test"
@@ -934,7 +935,7 @@ void Class1::fun() {}
ClangTU = clang_parseTranslationUnit(Index, fileName.c_str(), Args, 1,
nullptr, 0, TUFlags);
- llvm::Optional<CXCursor> typeRefCsr;
+ std::optional<CXCursor> typeRefCsr;
Traverse([&](CXCursor cursor, CXCursor parent) -> CXChildVisitResult {
if (cursor.kind == CXCursor_TypeRef) {
typeRefCsr.emplace(cursor);