Apply clang-format

This commit is contained in:
Martchus 2017-11-18 00:27:25 +01:00
parent add8ddaeec
commit 69d4fa193f
3 changed files with 9 additions and 8 deletions

View File

@ -25,7 +25,8 @@ CodeFactory::ToolInvocation::ToolInvocation(CodeFactory &factory)
fileManager.Retain();
}
CodeFactory::CodeFactory(const char *applicationPath, const std::vector<const char *> &sourceFiles, const std::vector<string> &clangOptions, std::ostream &os)
CodeFactory::CodeFactory(
const char *applicationPath, const std::vector<const char *> &sourceFiles, const std::vector<string> &clangOptions, std::ostream &os)
: m_applicationPath(applicationPath)
, m_sourceFiles(sourceFiles)
, m_clangOptions(clangOptions)

View File

@ -80,8 +80,7 @@ int main(int argc, char *argv[])
}
// configure code generator
CodeFactory factory(
parser.executable(), inputFileArg.values(0), clangOptions, *os);
CodeFactory factory(parser.executable(), inputFileArg.values(0), clangOptions, *os);
// add only specified generators if the --generator argument is present
if (generatorsArg.isPresent()) {
// find and construct generators by name

View File

@ -88,7 +88,8 @@ void JsonGeneratorTests::testCLI()
string stdout, stderr;
const string inputFilePath(testFilePath("some_structs.h"));
const char *const args1[] = { PROJECT_NAME, "-i", inputFilePath.data(), "--json-classes", "TestNamespace2::ThirdPartyStruct", "--clang-opt", "-I" CPP_UTILITIES_INCLUDE_DIRS, "-I" RAPIDJSON_INCLUDE_DIRS, nullptr };
const char *const args1[] = { PROJECT_NAME, "-i", inputFilePath.data(), "--json-classes", "TestNamespace2::ThirdPartyStruct", "--clang-opt",
"-I" CPP_UTILITIES_INCLUDE_DIRS, "-I" RAPIDJSON_INCLUDE_DIRS, nullptr };
TESTUTILS_ASSERT_EXEC(args1);
assertEqualityLinewise(m_expectedCode, toArrayOfLines(stdout));
#endif