compilerplugins/clang/pluginhandler.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 8b30e6f03407df94e0adb46c6f3fb492a2419114
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Aug 21 09:01:12 2019 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Aug 21 12:37:36 2019 +0200

    llvm::make_unique is gone from LLVM trunk
    
    (but when targeting older versions of LLVM/Clang, COMPILER_PLUGINS_CXX can 
still
    specify -std=c++11)
    
    Change-Id: I1b91f2817516d015bc12b6a3faf1874ab938a3ae
    Reviewed-on: https://gerrit.libreoffice.org/77866
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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 <memory>
 #include <system_error>
+#include <utility>
 
 #include "plugin.hxx"
 #include "pluginhandler.hxx"
@@ -385,7 +386,11 @@ void PluginHandler::HandleTranslationUnit( ASTContext& 
context )
 
 std::unique_ptr<ASTConsumer> LibreOfficeAction::CreateASTConsumer( 
CompilerInstance& Compiler, StringRef )
 {
+#if __cplusplus >= 201402L
+    return std::make_unique<PluginHandler>( Compiler, _args );
+#else
     return llvm::make_unique<PluginHandler>( Compiler, _args );
+#endif
 }
 
 bool LibreOfficeAction::ParseArgs( const CompilerInstance&, const std::vector< 
std::string >& args )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to