From 1a2cab9b712682c08187af5a00d709f33df0ae1b Mon Sep 17 00:00:00 2001 From: Petr Bred Date: Wed, 1 Feb 2023 09:13:02 +0300 Subject: [PATCH] [clang compat] Remove unused llvm::Optional Clang 125f4457a54a550846732763ee36b1447ec8d66e changed. The LLVM project is migrating from llvm::Optional to std::optional. We would previously see llvm::Optional via an indirect include: iwyu_preprocessor.h iwyu_output.h clang/AST/Decl.h clang/AST/APValue.h clang/Basic/LLVM.h Since we don't use it, remove the using-declaration. Signed-off-by: Petr Bred --- iwyu_preprocessor.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/iwyu_preprocessor.cc b/iwyu_preprocessor.cc index a129f05..a17d4ec 100644 --- a/iwyu_preprocessor.cc +++ b/iwyu_preprocessor.cc @@ -44,7 +44,6 @@ using clang::SourceLocation; using clang::SourceRange; using clang::Token; using llvm::errs; -using llvm::Optional; using llvm::StringRef; using std::make_pair; using std::string;