diff --git a/generator/codefactory.h b/generator/codefactory.h index 386a749..bc085ef 100644 --- a/generator/codefactory.h +++ b/generator/codefactory.h @@ -34,8 +34,8 @@ public: ~CodeFactory(); const std::vector> &generators() const; - template void addGenerator(Args &&... args); - template auto bindGenerator(Args &&... args); + template void addGenerator(Args &&...args); + template auto bindGenerator(Args &&...args); bool run(); clang::CompilerInstance *compilerInstance(); @@ -64,7 +64,7 @@ private: * \brief Instantiates a code generator of the specified type and adds it to the current instance. * \remarks The specified \a args are forwarded to the generator's constructor. */ -template void CodeFactory::addGenerator(Args &&... args) +template void CodeFactory::addGenerator(Args &&...args) { m_generators.emplace_back(std::make_unique(*this, std::forward(args)...)); } @@ -101,7 +101,7 @@ template T &&wrapReferences(T &&val) * - The specified \a args are forwarded to the generator's constructor. * - No copy of \a args passed by reference is made. */ -template auto CodeFactory::bindGenerator(Args &&... args) +template auto CodeFactory::bindGenerator(Args &&...args) { return std::bind(&CodeFactory::addGenerator, this, Detail::wrapReferences(std::forward(args)...)); } diff --git a/lib/cmake/modules/ReflectionGenerator.cmake b/lib/cmake/modules/ReflectionGenerator.cmake index eb68f0f..8c142f8 100644 --- a/lib/cmake/modules/ReflectionGenerator.cmake +++ b/lib/cmake/modules/ReflectionGenerator.cmake @@ -46,8 +46,8 @@ if (NOT REFLECTION_GENERATOR_CLANG_RESOURCE_DIR) endif () exec_program( ${REFLECTION_GENERATOR_CLANG_BIN} ARGS - -print-resource-dir OUTPUT_VARIABLE - REFLECTION_GENERATOR_CLANG_RESOURCE_DIR) + -print-resource-dir + OUTPUT_VARIABLE REFLECTION_GENERATOR_CLANG_RESOURCE_DIR) endif () if (NOT REFLECTION_GENERATOR_CLANG_RESOURCE_DIR OR NOT IS_DIRECTORY "${REFLECTION_GENERATOR_CLANG_RESOURCE_DIR}") message(