Skip to content

Commit

Permalink
Fix compatibility with LLVM/Clang 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Apr 12, 2020
1 parent c4f622d commit 8c032ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(META_APP_CATEGORIES "Utility;")
set(META_GUI_OPTIONAL false)
set(META_VERSION_MAJOR 0)
set(META_VERSION_MINOR 0)
set(META_VERSION_PATCH 13)
set(META_VERSION_PATCH 14)
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
set(META_CXX_STANDARD 17)
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)
Expand Down
3 changes: 2 additions & 1 deletion generator/codefactory.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "./clangversionabstraction.h"
#include "./codefactory.h"
#include "./frontendaction.h"

Expand All @@ -20,7 +21,7 @@ struct CodeFactory::ToolInvocation {

CodeFactory::ToolInvocation::ToolInvocation(CodeFactory &factory)
: fileManager({ "." })
, invocation(factory.makeClangArgs(), new FrontendAction(factory), &fileManager)
, invocation(factory.makeClangArgs(), maybe_unique(new FrontendAction(factory)), &fileManager)
{
fileManager.Retain();
}
Expand Down

0 comments on commit 8c032ee

Please sign in to comment.