Fix compatibility with LLVM/Clang 10
This commit is contained in:
parent
c4f622df8d
commit
8c032ee7a6
|
@ -11,7 +11,7 @@ set(META_APP_CATEGORIES "Utility;")
|
||||||
set(META_GUI_OPTIONAL false)
|
set(META_GUI_OPTIONAL false)
|
||||||
set(META_VERSION_MAJOR 0)
|
set(META_VERSION_MAJOR 0)
|
||||||
set(META_VERSION_MINOR 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_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
||||||
set(META_CXX_STANDARD 17)
|
set(META_CXX_STANDARD 17)
|
||||||
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)
|
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "./clangversionabstraction.h"
|
||||||
#include "./codefactory.h"
|
#include "./codefactory.h"
|
||||||
#include "./frontendaction.h"
|
#include "./frontendaction.h"
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@ struct CodeFactory::ToolInvocation {
|
||||||
|
|
||||||
CodeFactory::ToolInvocation::ToolInvocation(CodeFactory &factory)
|
CodeFactory::ToolInvocation::ToolInvocation(CodeFactory &factory)
|
||||||
: fileManager({ "." })
|
: fileManager({ "." })
|
||||||
, invocation(factory.makeClangArgs(), new FrontendAction(factory), &fileManager)
|
, invocation(factory.makeClangArgs(), maybe_unique(new FrontendAction(factory)), &fileManager)
|
||||||
{
|
{
|
||||||
fileManager.Retain();
|
fileManager.Retain();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue