Line data Source code
1 : #include <cpp_template/derived.hpp>
2 : #include <cpp_template/version.hpp>
3 :
4 : #include <cstdlib>
5 : #include <iostream>
6 :
7 0 : int main(int argc, char **argv)
8 : {
9 0 : std::cout << "argc: " << argc << '\n';
10 0 : for (int i = 0; i < argc; ++i) {
11 0 : std::cout << "argv[" << i << "]: ";
12 : // clang-tidy: avoid pointer arithmetic in c++
13 0 : std::cout << argv[i]; // NOLINT
14 0 : std::cout << '\n';
15 : }
16 0 : std::cout << std::flush;
17 :
18 0 : ::derived der;
19 0 : der.init();
20 :
21 : std::cout << "project info:\n"
22 : << "\tname: " << CPP_TEMPLATE_NAME << '\n'
23 : << "\tdesc: " << CPP_TEMPLATE_DESCRIPTION << '\n'
24 : << "\tauthor: " << CPP_TEMPLATE_AUTHOR << '\n'
25 : << "\tversion: " << CPP_TEMPLATE_VERSION << '\n'
26 : << "\tmail: " << CPP_TEMPLATE_MAIL << '\n'
27 0 : << "\tcopyright: " << CPP_TEMPLATE_COPYRIGHT << std::endl;
28 :
29 0 : return EXIT_SUCCESS;
30 0 : }
|