From 85792705825163dde27497bf41cd0059799f7fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 23 Oct 2011 10:11:43 +0200 Subject: [PATCH] astyle formatting --- cli/cmdlineparser.cpp | 13 ++++--------- test/testcmdlineparser.cpp | 3 +-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 126246cbf..c8186cdb1 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -68,13 +68,10 @@ static void AddInclPathsToList(const std::string& FileList, std::list_includePaths.push_back(path); - } - else if (strncmp(argv[i], "--includes-file=", 16) == 0) - { + } else if (strncmp(argv[i], "--includes-file=", 16) == 0) { // open this file and read every input file (1 file name per line) AddInclPathsToList(16 + argv[i], _settings->_includePaths); } diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index a06a2e730..c0947c2c1 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -366,8 +366,7 @@ private: ASSERT_EQUALS("framework/", settings._includePaths.front()); } - void includesFile() - { + void includesFile() { // TODO: Fails since cannot open the file REDIRECT; const char *argv[] = {"cppcheck", "--includes-file=inclpaths.txt", "file.cpp"};