diff --git a/compilerplugins/clang/pluginhandler.cxx b/compilerplugins/clang/pluginhandler.cxx index 4296b981f767..43c9fb33c1c6 100644 --- a/compilerplugins/clang/pluginhandler.cxx +++ b/compilerplugins/clang/pluginhandler.cxx @@ -11,6 +11,7 @@ #include #include +#include #include "plugin.hxx" #include "pluginhandler.hxx" @@ -385,7 +386,11 @@ void PluginHandler::HandleTranslationUnit( ASTContext& context ) std::unique_ptr LibreOfficeAction::CreateASTConsumer( CompilerInstance& Compiler, StringRef ) { +#if __cplusplus >= 201402L + return std::make_unique( Compiler, _args ); +#else return llvm::make_unique( Compiler, _args ); +#endif } bool LibreOfficeAction::ParseArgs( const CompilerInstance&, const std::vector< std::string >& args )