Improve coding style consistency

This commit is contained in:
vitaut 2016-03-18 07:59:04 -07:00
parent 0c901efb16
commit c052cf11b9
4 changed files with 7 additions and 11 deletions

View File

@ -4,10 +4,10 @@ project(cppformat-test)
add_subdirectory(../.. cppformat)
add_executable(library-test "main.cpp")
add_executable(library-test "main.cc")
target_link_libraries(library-test cppformat)
if (TARGET cppformat-header-only)
add_executable(header-only-test "main.cpp")
add_executable(header-only-test "main.cc")
target_link_libraries(header-only-test cppformat-header-only)
endif ()
endif ()

View File

@ -1,8 +1,6 @@
#include "cppformat/format.h"
int main(int argc, char** argv)
{
int main(int argc, char** argv) {
for(int i = 0; i < argc; ++i)
fmt::print("{}: {}\n", i, argv[i]);
return 0;
}

View File

@ -4,10 +4,10 @@ project(cppformat-test)
find_package(cppformat REQUIRED)
add_executable(library-test "main.cpp")
add_executable(library-test "main.cc")
target_link_libraries(library-test cppformat)
if (TARGET cppformat-header-only)
add_executable(header-only-test "main.cpp")
add_executable(header-only-test "main.cc")
target_link_libraries(header-only-test cppformat-header-only)
endif ()

View File

@ -1,8 +1,6 @@
#include "cppformat/format.h"
int main(int argc, char** argv)
{
int main(int argc, char** argv) {
for(int i = 0; i < argc; ++i)
fmt::print("{}: {}\n", i, argv[i]);
return 0;
}