summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/compat.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-02-15 13:29:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-02-15 15:18:30 +0100
commit59534c68585e9ff80ebaafee8f61c2d171bdc9de (patch)
treeffc354a7c677dc5e6d707034e1775eca13e900eb /compilerplugins/clang/compat.hxx
parentbdb66b740681e9d3a94fbd0226ae1a4f1663e589 (diff)
Remove unused includes
...after 9663341f9249c739219ffe6cccf3762aa8dd78f3 "Bump --enable-compiler-plugins to Clang 3.8.0" removed the uses of clang::PPCallbacks and clang::Preprocessor, and f23aa1a51cb1beea4ebe3a61ba0c9b3abd844fd9 "Bump compiler plugins Clang baseline to 5.0.2" removed the uses of clang::CompilerInstance, llvm::StringRef, and std::size_t. But llvm::sys::fs::OpenFlags needs llvm/Support/FileSystem.h. Change-Id: I98227554646843db5cc13f75a2baed51be752dbb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129962 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang/compat.hxx')
-rw-r--r--compilerplugins/clang/compat.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx
index 54f0d701a023..2c154b975c44 100644
--- a/compilerplugins/clang/compat.hxx
+++ b/compilerplugins/clang/compat.hxx
@@ -9,7 +9,6 @@
#pragma once
-#include <cstddef>
#include <string>
#include <utility>
@@ -19,12 +18,10 @@
#include "clang/AST/ExprCXX.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Specifiers.h"
-#include "clang/Frontend/CompilerInstance.h"
-#include "clang/Lex/Lexer.h"
#include "llvm/ADT/StringExtras.h"
-#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
+#include "llvm/Support/FileSystem.h"
#include "config_clang.h"