From d2e5accdd6f22959c4b3fde70fbaf0cd6910b224 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Sat, 15 Dec 2018 04:25:19 +0000 Subject: [PATCH] Fix includes and dependencies for libclang Remove unneeded includes Add needed include Remove dependency on Serialization llvm-svn: 349237 --- clang/tools/libclang/CIndex.cpp | 2 -- clang/tools/libclang/CIndexCodeCompletion.cpp | 1 - clang/tools/libclang/CIndexDiagnostic.cpp | 1 - clang/tools/libclang/CMakeLists.txt | 1 - clang/tools/libclang/CXStoredDiagnostic.cpp | 2 +- 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 4de7364..ca8b4baf 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -31,14 +31,12 @@ #include "clang/Basic/Version.h" #include "clang/Frontend/ASTUnit.h" #include "clang/Frontend/CompilerInstance.h" -#include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Index/CodegenNameGenerator.h" #include "clang/Index/CommentToXML.h" #include "clang/Lex/HeaderSearch.h" #include "clang/Lex/Lexer.h" #include "clang/Lex/PreprocessingRecord.h" #include "clang/Lex/Preprocessor.h" -#include "clang/Serialization/SerializationDiagnostic.h" #include "llvm/ADT/Optional.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringSwitch.h" diff --git a/clang/tools/libclang/CIndexCodeCompletion.cpp b/clang/tools/libclang/CIndexCodeCompletion.cpp index 752d7a1..c5cece5 100644 --- a/clang/tools/libclang/CIndexCodeCompletion.cpp +++ b/clang/tools/libclang/CIndexCodeCompletion.cpp @@ -26,7 +26,6 @@ #include "clang/Basic/SourceManager.h" #include "clang/Frontend/ASTUnit.h" #include "clang/Frontend/CompilerInstance.h" -#include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Sema/CodeCompleteConsumer.h" #include "clang/Sema/Sema.h" #include "llvm/ADT/SmallString.h" diff --git a/clang/tools/libclang/CIndexDiagnostic.cpp b/clang/tools/libclang/CIndexDiagnostic.cpp index 4e47b25..a4e75e2 100644 --- a/clang/tools/libclang/CIndexDiagnostic.cpp +++ b/clang/tools/libclang/CIndexDiagnostic.cpp @@ -19,7 +19,6 @@ #include "clang/Basic/DiagnosticOptions.h" #include "clang/Frontend/ASTUnit.h" #include "clang/Frontend/DiagnosticRenderer.h" -#include "clang/Frontend/FrontendDiagnostic.h" #include "llvm/ADT/SmallString.h" #include "llvm/Support/raw_ostream.h" diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt index 32333b0..729d556 100644 --- a/clang/tools/libclang/CMakeLists.txt +++ b/clang/tools/libclang/CMakeLists.txt @@ -40,7 +40,6 @@ set(LIBS clangIndex clangLex clangSema - clangSerialization clangTooling ) diff --git a/clang/tools/libclang/CXStoredDiagnostic.cpp b/clang/tools/libclang/CXStoredDiagnostic.cpp index f2e9c1d..6bd2f67 100644 --- a/clang/tools/libclang/CXStoredDiagnostic.cpp +++ b/clang/tools/libclang/CXStoredDiagnostic.cpp @@ -17,8 +17,8 @@ #include "CXSourceLocation.h" #include "CXString.h" +#include "clang/Basic/DiagnosticIDs.h" #include "clang/Frontend/ASTUnit.h" -#include "clang/Frontend/FrontendDiagnostic.h" #include "llvm/ADT/Twine.h" using namespace clang; -- 2.7.4