asiolibs
Unit Tests
No unit tests written.
Clang Formatting
| File | Status |
|---|---|
| include/asiolibs/AsioIssues.hpp | ❌ Needs formatting |
| plugins/SocketReaderModule.cpp | ❌ Needs formatting |
| plugins/SocketReaderModule.hpp | ❌ Needs formatting |
| plugins/SocketWriterModule.cpp | ❌ Needs formatting |
| plugins/SocketWriterModule.hpp | ❌ Needs formatting |
| src/CreateGenericReceiver.hpp | ❌ Needs formatting |
| src/CreateSource.hpp | ❌ Needs formatting |
| src/GenericReceiverConcept.hpp | ❌ Needs formatting |
| src/GenericReceiverModel.hpp | ❌ Needs formatting |
| src/SourceConcept.hpp | ❌ Needs formatting |
| src/SourceModel.hpp | ❌ Needs formatting |
include/asiolibs/AsioIssues.hpp
Errors
- Line 12: Found other header after system header. Should be: AsioIssues.hh, other non-system headers, system headers.
- Line 19: Using C-style cast. Use static_cast
(...) instead
plugins/SocketReaderModule.cpp
Errors
- Line 55: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 55: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 55: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 219: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
- Line 232: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 234: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 279: Use of reinterpret_cast can be dangerous. If there's no way to avoid its use add " // NOLINT" to the end of this line so this script will ignore it next time
- Line 299: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 301: Increment/decrement operator should appear alone on its line unless in a while/for loop head
Warnings
- Line 50: throw expression should throw anonymous temporary values instead
- Line 65: throw expression should throw anonymous temporary values instead
- Line 80: throw expression should throw anonymous temporary values instead
- Line 219: do not use reinterpret_cast
- Line 279: do not use reinterpret_cast
- Line 31: function 'createSourceModel' defined in a header file; function definitions in header files can lead to ODR violations
- Line 33: the variable 'datatype' is copy-constructed from a const reference but is only used as const reference; consider making it a const reference
plugins/SocketWriterModule.cpp
Errors
- Line 148: Missing date in TODO comment; it should appear on same line as the TODO, preferably in a form like "Apr-14-2020"
- Line 148: Missing author name in TODO comment; it should appear on the same line as the TODO, as Firstname Lastname
- Line 148: Missing email address in TODO comment; it should appear on the same line as the TODO
- Line 155: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 256: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 257: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 259: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 327: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 328: Increment/decrement operator should appear alone on its line unless in a while/for loop head
- Line 330: Increment/decrement operator should appear alone on its line unless in a while/for loop head
Warnings
- Line 508: Access to field 'after_suspend_fn_' results in a dereference of an undefined pointer value (loaded from field 'resume_context_')
- Line 52: throw expression should throw anonymous temporary values instead
- Line 83: throw expression should throw anonymous temporary values instead
- Line 95: throw expression should throw anonymous temporary values instead
- Line 171: lambda capture 'this' is not used
- Line 186: narrowing conversion from 'rep' (aka 'long') to 'double'
- Line 28: function 'createGenericReceiver' defined in a header file; function definitions in header files can lead to ODR violations