oksdalgen
Unit Tests
No unit tests written.
Clang Formatting
| File | Status |
|---|---|
| apps/class_info.hpp | ❌ Needs formatting |
| apps/oksdalgen.cxx | ❌ Needs formatting |
| apps/parse_cmdl.cpp | ❌ Needs formatting |
| apps/utils.cpp | ❌ Needs formatting |
apps/class_info.hpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 8: #ifndef header guard has wrong style, please use: OKSDALGEN_APPS_CLASS_INFO_HPP_
- Line 95: #endif line should be "#endif // OKSDALGEN_APPS_CLASS_INFO_HPP_"
- Line 33: You don't need a ; after a }
- Line 36: You don't need a ; after a }
apps/oksdalgen.cxx
Errors
- Line 0: The standard copyright message wasn't found.
- Line 180: If/else bodies with multiple statements require braces
- Line 182: If/else bodies with multiple statements require braces
- Line 241: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 743: Small and focused functions are preferred: gen_header() has 451 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 817: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 1330: Small and focused functions are preferred: gen_cpp_body() has 419 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 1343: "cerr" should not be used for output in DUNE DAQ software.
- Line 1430: "cout" should not be used for output in DUNE DAQ software.
- Line 1442: "cout" should not be used for output in DUNE DAQ software.
- Line 1450: "cout" should not be used for output in DUNE DAQ software.
- Line 1457: "cout" should not be used for output in DUNE DAQ software.
- Line 1464: "cerr" should not be used for output in DUNE DAQ software.
- Line 1488: "cerr" should not be used for output in DUNE DAQ software.
- Line 1505: "cerr" should not be used for output in DUNE DAQ software.
- Line 1512: "cerr" should not be used for output in DUNE DAQ software.
- Line 1531: "cerr" should not be used for output in DUNE DAQ software.
- Line 1538: "cerr" should not be used for output in DUNE DAQ software.
- Line 1552: "cerr" should not be used for output in DUNE DAQ software.
- Line 1568: "cerr" should not be used for output in DUNE DAQ software.
- Line 1574: "cerr" should not be used for output in DUNE DAQ software.
- Line 1628: "cerr" should not be used for output in DUNE DAQ software.
- Line 1633: "cerr" should not be used for output in DUNE DAQ software.
- Line 1650: "cerr" should not be used for output in DUNE DAQ software.
- Line 1658: "cerr" should not be used for output in DUNE DAQ software.
- Line 1663: "cerr" should not be used for output in DUNE DAQ software.
- Line 1668: "cerr" should not be used for output in DUNE DAQ software.
- Line 1673: Small and focused functions are preferred: main() has 224 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 1472: Add #include
for less<> - Line 97: Add #include
for vector<>
Warnings
- Line 9: declaration uses identifier '__OKSDALGEN_CLASS_INFO__', which is a reserved identifier
- Line 18: nested namespaces can be concatenated
- Line 17: inclusion of deprecated C++ header 'stdlib.h'; consider using 'cstdlib' instead
- Line 18: inclusion of deprecated C++ header 'ctype.h'; consider using 'cctype' instead
- Line 41: do not declare C-style arrays, use std::array<> instead
- Line 79: initialization of 'WHITESPACE' with static storage duration may throw an exception that cannot be caught
- Line 97: initialization of 'cpp_method_virtual_specifiers' with static storage duration may throw an exception that cannot be caught
- Line 166: use auto when declaring iterators
- Line 237: use auto when declaring iterators
- Line 747: unused function 'set2out'
- Line 866: multiple declarations in a single statement reduces readability
- Line 945: use auto when declaring iterators
- Line 957: use auto when declaring iterators
- Line 1315: string concatenation results in allocation of unnecessary temporary strings; consider using 'operator+=' or 'string::append()' instead
- Line 1315: string concatenation results in allocation of unnecessary temporary strings; consider using 'operator+=' or 'string::append()' instead
- Line 1503: use nullptr
- Line 1529: use nullptr
- Line 1560: string concatenation results in allocation of unnecessary temporary strings; consider using 'operator+=' or 'string::append()' instead
- Line 1561: string concatenation results in allocation of unnecessary temporary strings; consider using 'operator+=' or 'string::append()' instead
- Line 1590: do not declare C-style arrays, use std::array<> instead
- Line 1599: use nullptr
- Line 1599: use nullptr
- Line 1609: do not use array subscript when the index is not an integer constant expression
- Line 1612: do not use array subscript when the index is not an integer constant expression
- Line 1624: do not use array subscript when the index is not an integer constant expression
- Line 1624: do not use array subscript when the index is not an integer constant expression
- Line 1624: do not use array subscript when the index is not an integer constant expression
- Line 1624: do not use array subscript when the index is not an integer constant expression
apps/parse_cmdl.cpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 19: "cout" should not be used for output in DUNE DAQ software.
- Line 50: "cerr" should not be used for output in DUNE DAQ software.
- Line 83: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 90: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 97: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 104: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 133: "cerr" should not be used for output in DUNE DAQ software.
- Line 142: "cerr" should not be used for output in DUNE DAQ software.
- Line 148: "cout" should not be used for output in DUNE DAQ software.
- Line 158: "cout" should not be used for output in DUNE DAQ software.
- Line 161: "cout" should not be used for output in DUNE DAQ software.
- Line 165: "cout" should not be used for output in DUNE DAQ software.
- Line 168: "cout" should not be used for output in DUNE DAQ software.
- Line 172: "cout" should not be used for output in DUNE DAQ software.
- Line 175: "cout" should not be used for output in DUNE DAQ software.
- Line 179: "cout" should not be used for output in DUNE DAQ software.
- Line 182: "cout" should not be used for output in DUNE DAQ software.
- Line 186: "cout" should not be used for output in DUNE DAQ software.
- Line 189: "cout" should not be used for output in DUNE DAQ software.
- Line 193: "cout" should not be used for output in DUNE DAQ software.
- Line 196: "cout" should not be used for output in DUNE DAQ software.
- Line 200: "cout" should not be used for output in DUNE DAQ software.
- Line 203: "cout" should not be used for output in DUNE DAQ software.
- Line 207: "cout" should not be used for output in DUNE DAQ software.
- Line 210: Small and focused functions are preferred: parse_arguments() has 138 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
Warnings
- Line 55: do not declare C-style arrays, use std::array<> instead
- Line 70: do not use pointer arithmetic
- Line 83: do not use pointer arithmetic
- Line 86: do not use pointer arithmetic
- Line 90: do not use pointer arithmetic
- Line 93: do not use pointer arithmetic
- Line 97: do not use pointer arithmetic
- Line 100: do not use pointer arithmetic
- Line 104: do not use pointer arithmetic
- Line 107: do not use pointer arithmetic
- Line 124: do not use pointer arithmetic
- Line 125: use emplace_back instead of push_back
- Line 125: do not use pointer arithmetic
apps/utils.cpp
Errors
- Line 0: The standard copyright message wasn't found.
- Line 205: "cout" should not be used for output in DUNE DAQ software.
- Line 225: "cerr" should not be used for output in DUNE DAQ software.
- Line 268: "cerr" should not be used for output in DUNE DAQ software.
- Line 275: "cerr" should not be used for output in DUNE DAQ software.
- Line 280: "cerr" should not be used for output in DUNE DAQ software.
- Line 285: "cerr" should not be used for output in DUNE DAQ software.
- Line 290: "cout" should not be used for output in DUNE DAQ software.
- Line 311: "cerr" should not be used for output in DUNE DAQ software.
- Line 323: "cerr" should not be used for output in DUNE DAQ software.
- Line 333: "cerr" should not be used for output in DUNE DAQ software.
- Line 363: "cout" should not be used for output in DUNE DAQ software.
- Line 369: "cerr" should not be used for output in DUNE DAQ software.
- Line 375: "cerr" should not be used for output in DUNE DAQ software.
- Line 381: Small and focused functions are preferred: gen_dump_application() has 198 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 515: "cout" should not be used for output in DUNE DAQ software.
- Line 518: "cout" should not be used for output in DUNE DAQ software.
- Line 520: "cout" should not be used for output in DUNE DAQ software.
- Line 523: "cout" should not be used for output in DUNE DAQ software.
- Line 525: "cout" should not be used for output in DUNE DAQ software.
- Line 535: "cout" should not be used for output in DUNE DAQ software.
- Line 549: "cout" should not be used for output in DUNE DAQ software.
- Line 562: "cout" should not be used for output in DUNE DAQ software.
- Line 567: "cout" should not be used for output in DUNE DAQ software.
- Line 578: "cout" should not be used for output in DUNE DAQ software.
- Line 588: "cout" should not be used for output in DUNE DAQ software.
- Line 608: "cout" should not be used for output in DUNE DAQ software.
- Line 614: "cout" should not be used for output in DUNE DAQ software.
- Line 619: "cerr" should not be used for output in DUNE DAQ software.
- Line 628: "cout" should not be used for output in DUNE DAQ software.
- Line 633: Small and focused functions are preferred: process_external_class() has 123 non-comment lines (error triggered by exceeding 80 lines) (disable this by putting "// NOLINT" after the function's closing brace.)
- Line 668: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 779: Add #include
for string - Line 480: Add #include
- for list<>
- Line 389: Add #include
for less<> - Line 389: Add #include
for set<>
Warnings
- Line 9: declaration uses identifier '__OKSDALGEN_CLASS_INFO__', which is a reserved identifier
- Line 18: nested namespaces can be concatenated
- Line 14: inclusion of deprecated C++ header 'ctype.h'; consider using 'cctype' instead
- Line 55: narrowing conversion from 'int' to signed type 'value_type' (aka 'char') is implementation-defined
- Line 351: use auto when declaring iterators
- Line 414: use auto when declaring iterators
- Line 435: use auto when declaring iterators
- Line 572: do not declare C-style arrays, use std::array<> instead
- Line 582: do not declare C-style arrays, use std::array<> instead
- Line 675: initialization of 'begin_header_prologue' with static storage duration may throw an exception that cannot be caught
- Line 676: initialization of 'end_header_prologue' with static storage duration may throw an exception that cannot be caught
- Line 677: initialization of 'begin_header_epilogue' with static storage duration may throw an exception that cannot be caught
- Line 678: initialization of 'end_header_epilogue' with static storage duration may throw an exception that cannot be caught
- Line 679: initialization of 'begin_public_section' with static storage duration may throw an exception that cannot be caught
- Line 680: initialization of 'end_public_section' with static storage duration may throw an exception that cannot be caught
- Line 681: initialization of 'begin_private_section' with static storage duration may throw an exception that cannot be caught
- Line 682: initialization of 'end_private_section' with static storage duration may throw an exception that cannot be caught
- Line 683: initialization of 'begin_member_initializer_list' with static storage duration may throw an exception that cannot be caught
- Line 684: initialization of 'end_member_initializer_list' with static storage duration may throw an exception that cannot be caught
- Line 685: initialization of 'has_add_algo_1' with static storage duration may throw an exception that cannot be caught
- Line 686: initialization of 'has_add_algo_n' with static storage duration may throw an exception that cannot be caught