compilerplugins/clang/bodynotinblock.cxx | 1 + compilerplugins/clang/lclstaticfix.cxx | 1 + compilerplugins/clang/plugin.cxx | 1 - compilerplugins/clang/plugin.hxx | 5 +++++ compilerplugins/clang/postfixincrementfix.cxx | 1 + compilerplugins/clang/sallogareas.cxx | 1 + compilerplugins/clang/unusedvariablecheck.cxx | 2 ++ 7 files changed, 11 insertions(+), 1 deletion(-)
New commits: commit 038517a51649eb8bbe526303f536987c1207f122 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Dec 5 17:33:47 2012 +0100 Adapt to current Clang trunk Change-Id: I0aadc7019934841d6864258695a17503918b6c20 diff --git a/compilerplugins/clang/unusedvariablecheck.cxx b/compilerplugins/clang/unusedvariablecheck.cxx index fa14b9c..759b9fa 100644 --- a/compilerplugins/clang/unusedvariablecheck.cxx +++ b/compilerplugins/clang/unusedvariablecheck.cxx @@ -11,6 +11,7 @@ #include "unusedvariablecheck.hxx" #include <clang/AST/ASTContext.h> +#include <clang/AST/Attr.h> #include <clang/Basic/SourceManager.h> namespace loplugin commit 6fbe72e5cd4993992c0a09e796372b804c896feb Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Dec 5 15:29:19 2012 +0100 Adapt to Clang 3.2 Change-Id: I9e51867198d7677c26cbd97f5d9c85ac13dc90c5 diff --git a/compilerplugins/clang/bodynotinblock.cxx b/compilerplugins/clang/bodynotinblock.cxx index 90f7933..a2e7968 100644 --- a/compilerplugins/clang/bodynotinblock.cxx +++ b/compilerplugins/clang/bodynotinblock.cxx @@ -10,6 +10,7 @@ #include "bodynotinblock.hxx" +#include <clang/AST/ASTContext.h> #include <clang/Basic/SourceManager.h> namespace loplugin diff --git a/compilerplugins/clang/lclstaticfix.cxx b/compilerplugins/clang/lclstaticfix.cxx index 849fea5..9227af8 100644 --- a/compilerplugins/clang/lclstaticfix.cxx +++ b/compilerplugins/clang/lclstaticfix.cxx @@ -10,6 +10,7 @@ #include "lclstaticfix.hxx" +#include <clang/AST/ASTContext.h> #include <clang/Basic/SourceManager.h> /* diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx index 7ecf599..7138e88 100644 --- a/compilerplugins/clang/plugin.cxx +++ b/compilerplugins/clang/plugin.cxx @@ -16,7 +16,6 @@ #include <clang/Frontend/CompilerInstance.h> #include <clang/Frontend/FrontendAction.h> #include <clang/Frontend/FrontendPluginRegistry.h> -#include <clang/Rewrite/Rewriter.h> #include "bodynotinblock.hxx" #include "lclstaticfix.hxx" diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx index b8a48fa..2a587ad 100644 --- a/compilerplugins/clang/plugin.hxx +++ b/compilerplugins/clang/plugin.hxx @@ -12,7 +12,12 @@ #define PLUGIN_H #include <clang/AST/RecursiveASTVisitor.h> + +#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 2 #include <clang/Rewrite/Rewriter.h> +#else +#include <clang/Rewrite/Core/Rewriter.h> +#endif using namespace clang; using namespace llvm; diff --git a/compilerplugins/clang/postfixincrementfix.cxx b/compilerplugins/clang/postfixincrementfix.cxx index ee63b8e..c5c17fb 100644 --- a/compilerplugins/clang/postfixincrementfix.cxx +++ b/compilerplugins/clang/postfixincrementfix.cxx @@ -10,6 +10,7 @@ #include "postfixincrementfix.hxx" +#include <clang/AST/ASTContext.h> #include <clang/Basic/SourceManager.h> namespace loplugin diff --git a/compilerplugins/clang/sallogareas.cxx b/compilerplugins/clang/sallogareas.cxx index 016e004..10630aa 100644 --- a/compilerplugins/clang/sallogareas.cxx +++ b/compilerplugins/clang/sallogareas.cxx @@ -10,6 +10,7 @@ #include "sallogareas.hxx" +#include <clang/AST/ASTContext.h> #include <clang/Basic/SourceManager.h> #include <clang/Lex/Lexer.h> diff --git a/compilerplugins/clang/unusedvariablecheck.cxx b/compilerplugins/clang/unusedvariablecheck.cxx index 7e3bb53..fa14b9c 100644 --- a/compilerplugins/clang/unusedvariablecheck.cxx +++ b/compilerplugins/clang/unusedvariablecheck.cxx @@ -10,6 +10,7 @@ #include "unusedvariablecheck.hxx" +#include <clang/AST/ASTContext.h> #include <clang/Basic/SourceManager.h> namespace loplugin _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits