summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/pluginhandler.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-11 15:16:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-11 15:16:08 +0200
commit311fb9d5e61fa3cab40b85434e22d288c974939b (patch)
tree9d3155415efa73ccda885510f4cccdf8a8617fde /compilerplugins/clang/pluginhandler.hxx
parent6d5e69072e7c37f8ff4adb49062218ab17373e7d (diff)
Adapt compilerplugins to Clang trunk towards 3.6
Change-Id: I0b7be1616a3e4206982f9f925de141ed9d53b96e
Diffstat (limited to 'compilerplugins/clang/pluginhandler.hxx')
-rw-r--r--compilerplugins/clang/pluginhandler.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/pluginhandler.hxx b/compilerplugins/clang/pluginhandler.hxx
index 48cee8e4a402..b4fc0c36ae7a 100644
--- a/compilerplugins/clang/pluginhandler.hxx
+++ b/compilerplugins/clang/pluginhandler.hxx
@@ -54,7 +54,12 @@ class LibreOfficeAction
: public PluginASTAction
{
public:
+#if (__clang_major__ == 3 && __clang_minor__ >= 6) || __clang_major__ > 3
+ virtual std::unique_ptr<ASTConsumer> CreateASTConsumer( CompilerInstance& Compiler, StringRef InFile );
+#else
virtual ASTConsumer* CreateASTConsumer( CompilerInstance& Compiler, StringRef InFile );
+#endif
+
virtual bool ParseArgs( const CompilerInstance& CI, const vector< string >& args );
private:
vector< string > _args;