From 56ef8c82d8af09d1f70049b4cb5e75465328c4c1 Mon Sep 17 00:00:00 2001 From: Quantum Leaps Date: Tue, 29 Aug 2017 16:01:46 -0400 Subject: [PATCH] 5.9.7a --- doxygen/Doxyfile | 7 +- doxygen/Doxyfile-CHM | 7 +- doxygen/metrics.dox | 6406 ++++++++++++++++---------------- doxygen/ports_native.dox | 122 +- doxygen/snippets/qf_xctor.cpp | 4 +- doxygen/snippets/qf_xstart.cpp | 8 +- include/qpcpp.lnt | 70 +- include/std.lnt | 71 +- ports/lint/options.lnt | 71 +- ports/posix/qf_port.cpp | 29 +- ports/win32/qf_port.cpp | 22 +- src/qf/qf_dyn.cpp | 18 +- src/qf_pkg.h | 10 +- 13 files changed, 3504 insertions(+), 3341 deletions(-) diff --git a/doxygen/Doxyfile b/doxygen/Doxyfile index afa9d841..85c0964c 100644 --- a/doxygen/Doxyfile +++ b/doxygen/Doxyfile @@ -41,7 +41,7 @@ OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO OPTIMIZE_FOR_FORTRAN = NO OPTIMIZE_OUTPUT_VHDL = NO -EXTENSION_MAPPING = +EXTENSION_MAPPING = lnt=Objective-C MARKDOWN_SUPPORT = YES AUTOLINK_SUPPORT = YES BUILTIN_STL_SUPPORT = NO @@ -141,7 +141,8 @@ FILE_PATTERNS = \ *.c \ *.cpp \ *.s \ - *.asm + *.asm \ + *.lnt RECURSIVE = YES EXCLUDE = \ @@ -313,7 +314,7 @@ EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = -PREDEFINED = Q_SPY QP_IMPL +PREDEFINED = Q_SPY QP_IMPL Q_UTEST EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- diff --git a/doxygen/Doxyfile-CHM b/doxygen/Doxyfile-CHM index 19d80e97..6f1710d7 100644 --- a/doxygen/Doxyfile-CHM +++ b/doxygen/Doxyfile-CHM @@ -41,7 +41,7 @@ OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO OPTIMIZE_FOR_FORTRAN = NO OPTIMIZE_OUTPUT_VHDL = NO -EXTENSION_MAPPING = +EXTENSION_MAPPING = lnt=Objective-C MARKDOWN_SUPPORT = YES AUTOLINK_SUPPORT = YES BUILTIN_STL_SUPPORT = NO @@ -141,7 +141,8 @@ FILE_PATTERNS = \ *.c \ *.cpp \ *.s \ - *.asm + *.asm \ + *.lnt RECURSIVE = YES EXCLUDE = \ @@ -313,7 +314,7 @@ EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = -PREDEFINED = Q_SPY QP_IMPL +PREDEFINED = Q_SPY QP_IMPL Q_UTEST EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- diff --git a/doxygen/metrics.dox b/doxygen/metrics.dox index 6c4ade06..fe860cce 100644 --- a/doxygen/metrics.dox +++ b/doxygen/metrics.dox @@ -1,3203 +1,3203 @@ -/** @page metrics Code Metrics - -@code - Standard Code Metrics for QP/C++ 5.9.7 - - Resource Standard Metrics (TM) for C, C++, C# and Java - Version 7.75 - mSquaredTechnologies.com - - License Type: Windows Single User License - Licensed To : Quantum Leaps, LLC - License No. : WS2975 License Date: Dec 15, 2013 - Build Date : Sep 2 2009 Run Date: Aug 21, 2017 - (C)1996-2009 M Squared Technologies LLC - ________________________________________________________________________ - - ~~ Function Metrics ~~ - ~~ Complexity Detail Analysis ~~ - - File: ..\include\qassert.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 49 eLOC 48 lLOC 3 Comment 240 Lines 309 - ________________________________________________________________________ - End of File: ..\include\qassert.h - - - File: ..\include\qep.h - ________________________________________________________________________ - - Inline Function: QP::QEvt::QEvt - Parameters: (QSignal const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 - - Inline Function: QP::QEvt::QEvt - Parameters: (QSignal const s, StaticEvt) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 - - Inline Function: QP::QEvt::~QEvt - Parameters: () - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 1 Lines 1 - - Inline Function: QP::QHsm::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Inline Function: QP::QHsm::state - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Inline Function: QP::QHsm::Q_HANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 - - Inline Function: QP::QHsm::Q_UNHANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 4 Lines 3 - - Inline Function: QP::QHsm::tran_ - Parameters: (QStateHandler const target) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QHsm::tran_hist_ - Parameters: (QStateHandler const hist) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QHsm::super_ - Parameters: (QStateHandler const superstate) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QHsm::qm_tran_ - Parameters: (QMTranActTable const * const tatbl) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 - - Inline Function: QP::QHsm::qm_tran_hist_ - Parameters: (QMState const * const hist, QMTranActTable const * const ta - tbl) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 3 lLOC 3 Comment 1 Lines 5 - - Inline Function: QP::QHsm::qm_tran_init_ - Parameters: (QMTranActTable const * const tatbl) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QHsm::qm_tran_ep_ - Parameters: (QMTranActTable const * const tatbl) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 - - Inline Function: QP::QHsm::qm_tran_xp_ - Parameters: (QActionHandler const xp, QMTranActTable const *const tatbl) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 3 lLOC 3 Comment 2 Lines 5 - - Inline Function: QP::QHsm::qm_entry_ - Parameters: (QMState const * const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QHsm::qm_exit_ - Parameters: (QMState const * const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QHsm::qm_super_sub_ - Parameters: (QMState const * const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 - - Inline Function: QP::QHsm::QM_HANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Inline Function: QP::QHsm::QM_UNHANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Inline Function: QP::QHsm::QM_SUPER - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Inline Function: QP::QMsm::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Inline Function: QP::QMsm::stateObj - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QEP::getVersion - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 259 eLOC 227 lLOC 129 Comment 318 Lines 666 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 24 - Total Function LOC.....: 75 Total Function Pts LOC : 0.0 - Total Function eLOC....: 54 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 34 Total Function Pts lLOC: 0.0 - Total Function Params .: 18 Total Function Return .: 24 - Total Cyclo Complexity : 24 Total Function Complex.: 66 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 5 Average Function LOC ..: 3.13 - Max Function eLOC .....: 3 Average Function eLOC .: 2.25 - Max Function lLOC .....: 3 Average Function lLOC .: 1.42 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 0.75 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 1.75 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 4 Avg Total Complexity ..: 2.75 - ________________________________________________________________________ - End of File: ..\include\qep.h - - - File: ..\include\qequeue.h - ________________________________________________________________________ - - Inline Function: QP::QEQueue::getNFree - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 - - Inline Function: QP::QEQueue::getNMin - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 11 Lines 3 - - Inline Function: QP::QEQueue::isEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 49 eLOC 44 lLOC 25 Comment 195 Lines 272 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 3 - Total Function LOC.....: 9 Total Function Pts LOC : 0.0 - Total Function eLOC....: 6 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 3 Total Function Pts lLOC: 0.0 - Total Function Params .: 0 Total Function Return .: 3 - Total Cyclo Complexity : 3 Total Function Complex.: 6 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 3 Average Function LOC ..: 3.00 - Max Function eLOC .....: 2 Average Function eLOC .: 2.00 - Max Function lLOC .....: 1 Average Function lLOC .: 1.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 0 Avg Function Parameters: 0.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 1 Avg Interface Complex. : 1.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 - ________________________________________________________________________ - End of File: ..\include\qequeue.h - - - File: ..\include\qf.h - ________________________________________________________________________ - - Inline Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - ) - Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 - LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 - - Inline Function: QP::QActive::getPrio - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QActive::setPrio - Parameters: (uint_fast8_t const prio) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QActive::getOsObject - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Inline Function: QP::QActive::getThread - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Inline Function: QP::QMActive::stateObj - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QTimeEvt::QTimeEvt - Parameters: (enum_t const sgnl) Non-ANSI Parameter Construct Defined By - Compiler Directive - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 5 lLOC 3 Comment 7 Lines 8 - - Inline Function: QP::QTimeEvt::postIn - Parameters: (QActive * const act, QTimeEvtCtr const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QTimeEvt::postEvery - Parameters: (QActive * const act, QTimeEvtCtr const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QTimeEvt::toActive - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Inline Function: QP::QTimeEvt::toTimeEvt - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Inline Function: QP::QF::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QTicker::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 0 Lines 1 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 283 eLOC 267 lLOC 118 Comment 490 Lines 878 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 13 - Total Function LOC.....: 36 Total Function Pts LOC : 0.0 - Total Function eLOC....: 26 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 17 Total Function Pts lLOC: 0.0 - Total Function Params .: 13 Total Function Return .: 13 - Total Cyclo Complexity : 13 Total Function Complex.: 39 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 7 Average Function LOC ..: 2.77 - Max Function eLOC .....: 5 Average Function eLOC .: 2.00 - Max Function lLOC .....: 3 Average Function lLOC .: 1.31 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 5 Avg Function Parameters: 1.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 6 Avg Interface Complex. : 2.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 7 Avg Total Complexity ..: 3.00 - ________________________________________________________________________ - End of File: ..\include\qf.h - - - File: ..\include\qk.h - ________________________________________________________________________ - - Inline Function: QP::QK::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 71 eLOC 66 lLOC 22 Comment 104 Lines 191 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 3 Total Function Pts LOC : 0.0 - Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 - Total Function Params .: 0 Total Function Return .: 1 - Total Cyclo Complexity : 1 Total Function Complex.: 2 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 3 Average Function LOC ..: 3.00 - Max Function eLOC .....: 2 Average Function eLOC .: 2.00 - Max Function lLOC .....: 1 Average Function lLOC .: 1.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 0 Avg Function Parameters: 0.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 1 Avg Interface Complex. : 1.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 - ________________________________________________________________________ - End of File: ..\include\qk.h - - - File: ..\include\qmpool.h - ________________________________________________________________________ - - Inline Function: QP::QMPool::getBlockSize - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 54 eLOC 51 lLOC 23 Comment 94 Lines 166 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 3 Total Function Pts LOC : 0.0 - Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 - Total Function Params .: 0 Total Function Return .: 1 - Total Cyclo Complexity : 1 Total Function Complex.: 2 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 3 Average Function LOC ..: 3.00 - Max Function eLOC .....: 2 Average Function eLOC .: 2.00 - Max Function lLOC .....: 1 Average Function lLOC .: 1.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 0 Avg Function Parameters: 0.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 1 Avg Interface Complex. : 1.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 - ________________________________________________________________________ - End of File: ..\include\qmpool.h - - - File: ..\include\qp_port.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 4 eLOC 4 lLOC 0 Comment 38 Lines 44 - ________________________________________________________________________ - End of File: ..\include\qp_port.h - - - File: ..\include\qpcpp.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 40 eLOC 39 lLOC 1 Comment 89 Lines 144 - ________________________________________________________________________ - End of File: ..\include\qpcpp.h - - - File: ..\include\qpset.h - ________________________________________________________________________ - - Inline Function: QP::QF_LOG2 - Parameters: (uint32_t const x) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 25 eLOC 18 lLOC 11 Comment 8 Lines 26 - - Inline Function: QP::QPSet::setEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QPSet::isEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QPSet::notEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QPSet::hasElement - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 - - Inline Function: QP::QPSet::insert - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 - - Inline Function: QP::QPSet::remove - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 - - Inline Function: QP::QPSet::findMax - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QPSet::setEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Inline Function: QP::QPSet::isEmpty - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Inlined if-else ( ? : ) : 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 - - Inline Function: QP::QPSet::notEmpty - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Inlined if-else ( ? : ) : 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 - - Inline Function: QP::QPSet::hasElement - Parameters: (uint_fast8_t const n) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Inlined if-else ( ? : ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 9 eLOC 8 lLOC 1 Comment 1 Lines 9 - - Inline Function: QP::QPSet::insert - Parameters: (uint_fast8_t const n) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 - - Inline Function: QP::QPSet::remove - Parameters: (uint_fast8_t const n) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 - - Inline Function: QP::QPSet::findMax - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Inlined if-else ( ? : ) : 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 120 eLOC 92 lLOC 33 Comment 88 Lines 234 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 15 - Total Function LOC.....: 98 Total Function Pts LOC : 0.0 - Total Function eLOC....: 73 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 28 Total Function Pts lLOC: 0.0 - Total Function Params .: 7 Total Function Return .: 15 - Total Cyclo Complexity : 24 Total Function Complex.: 46 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 25 Average Function LOC ..: 6.53 - Max Function eLOC .....: 18 Average Function eLOC .: 4.87 - Max Function lLOC .....: 11 Average Function lLOC .: 1.87 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 1 Avg Function Parameters: 0.47 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 2 Avg Interface Complex. : 1.47 - Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 1.60 - Max Total Complexity ..: 6 Avg Total Complexity ..: 3.07 - ________________________________________________________________________ - End of File: ..\include\qpset.h - - - File: ..\include\qs.h - ________________________________________________________________________ - - Inline Function: QP::QS::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QS::rxPut - Parameters: (uint8_t const b) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 14 eLOC 9 lLOC 4 Comment 1 Lines 14 - - Inline Function: QP::QS::force_cast - Parameters: (T_IN in) - Template: template - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 6 lLOC 4 Comment 2 Lines 7 - - - NOTICE: The end of the source file has been reached where the - open brace count { 31 != 29 } close brace count - This is an indication of non-compilable code within the source - file. RSM processes all source code including code wrapped - with preprocessor directives. Accurate metrics requires that - all code present in this file must be compilable. - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 517 eLOC 500 lLOC 123 Comment 603 Lines 1124 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 3 - Total Function LOC.....: 24 Total Function Pts LOC : 0.0 - Total Function eLOC....: 17 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 9 Total Function Pts lLOC: 0.0 - Total Function Params .: 2 Total Function Return .: 3 - Total Cyclo Complexity : 6 Total Function Complex.: 11 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 14 Average Function LOC ..: 8.00 - Max Function eLOC .....: 9 Average Function eLOC .: 5.67 - Max Function lLOC .....: 4 Average Function lLOC .: 3.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 1 Avg Function Parameters: 0.67 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 2 Avg Interface Complex. : 1.67 - Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 2.00 - Max Total Complexity ..: 6 Avg Total Complexity ..: 3.67 - ________________________________________________________________________ - End of File: ..\include\qs.h - - - File: ..\include\qs_dummy.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 72 eLOC 72 lLOC 0 Comment 41 Lines 123 - ________________________________________________________________________ - End of File: ..\include\qs_dummy.h - - - File: ..\include\qv.h - ________________________________________________________________________ - - Inline Function: QP::QV::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 36 eLOC 32 lLOC 4 Comment 80 Lines 126 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 3 Total Function Pts LOC : 0.0 - Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 - Total Function Params .: 0 Total Function Return .: 1 - Total Cyclo Complexity : 1 Total Function Complex.: 2 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 3 Average Function LOC ..: 3.00 - Max Function eLOC .....: 2 Average Function eLOC .: 2.00 - Max Function lLOC .....: 1 Average Function lLOC .: 1.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 0 Avg Function Parameters: 0.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 1 Avg Interface Complex. : 1.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 - ________________________________________________________________________ - End of File: ..\include\qv.h - - - File: ..\include\qxk.h - ________________________________________________________________________ - - Inline Function: QP::QXK::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 79 eLOC 73 lLOC 25 Comment 122 Lines 218 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 3 Total Function Pts LOC : 0.0 - Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 - Total Function Params .: 0 Total Function Return .: 1 - Total Cyclo Complexity : 1 Total Function Complex.: 2 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 3 Average Function LOC ..: 3.00 - Max Function eLOC .....: 2 Average Function eLOC .: 2.00 - Max Function lLOC .....: 1 Average Function lLOC .: 1.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 0 Avg Function Parameters: 0.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 1 Avg Interface Complex. : 1.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 - ________________________________________________________________________ - End of File: ..\include\qxk.h - - - File: ..\include\qxthread.h - ________________________________________________________________________ - - Inline Function: QP::QXThread::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Inline Function: QP::QXThread::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - ) - Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 - LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 70 eLOC 64 lLOC 38 Comment 115 Lines 212 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 2 - Total Function LOC.....: 5 Total Function Pts LOC : 0.0 - Total Function eLOC....: 3 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 2 Total Function Pts lLOC: 0.0 - Total Function Params .: 5 Total Function Return .: 2 - Total Cyclo Complexity : 2 Total Function Complex.: 9 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 4 Average Function LOC ..: 2.50 - Max Function eLOC .....: 2 Average Function eLOC .: 1.50 - Max Function lLOC .....: 1 Average Function lLOC .: 1.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 5 Avg Function Parameters: 2.50 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 6 Avg Interface Complex. : 3.50 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 7 Avg Total Complexity ..: 4.50 - ________________________________________________________________________ - End of File: ..\include\qxthread.h - - - File: ..\include\stdint_c.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 33 eLOC 33 lLOC 0 Comment 42 Lines 86 - ________________________________________________________________________ - End of File: ..\include\stdint_c.h - - - File: ..\src\qf_pkg.h - ________________________________________________________________________ - - Inline Function: QP::QF_EVT_POOL_ID_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Inline Function: QP::QF_EVT_REF_CTR_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Inline Function: QP::QF_EVT_REF_CTR_INC_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Inline Function: QP::QF_EVT_REF_CTR_DEC_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 71 eLOC 67 lLOC 11 Comment 109 Lines 205 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 8 Total Function Pts LOC : 0.0 - Total Function eLOC....: 6 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 4 Total Function Pts lLOC: 0.0 - Total Function Params .: 4 Total Function Return .: 4 - Total Cyclo Complexity : 4 Total Function Complex.: 12 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 3 Average Function LOC ..: 2.00 - Max Function eLOC .....: 2 Average Function eLOC .: 1.50 - Max Function lLOC .....: 1 Average Function lLOC .: 1.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 1 Avg Function Parameters: 1.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 2 Avg Interface Complex. : 2.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 3 Avg Total Complexity ..: 3.00 - ________________________________________________________________________ - End of File: ..\src\qf_pkg.h - - - File: ..\src\qs_pkg.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 28 eLOC 25 lLOC 10 Comment 59 Lines 98 - ________________________________________________________________________ - End of File: ..\src\qs_pkg.h - - - File: ..\src\qxk_pkg.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 16 eLOC 13 lLOC 3 Comment 45 Lines 67 - ________________________________________________________________________ - End of File: ..\src\qxk_pkg.h - - - File: ..\src\qf\qep_hsm.cpp - ________________________________________________________________________ - - Function: QP::QHsm::QHsm - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 8 Lines 4 - - Function: QP::QHsm::~QHsm - Parameters: () - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 2 eLOC 1 lLOC 0 Comment 4 Lines 2 - - Function: QP::QHsm::init - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 3 - Conditional if / else if: 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 - LOC 49 eLOC 46 lLOC 30 Comment 30 Lines 67 - - Function: QP::QHsm::top - Parameters: (void * const, QEvt const * const) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 3 eLOC 2 lLOC 1 Comment 15 Lines 3 - - Function: QP::QHsm::dispatch - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 4 - Loops for / foreach : 2 - Conditional if / else if: 5 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 13 Total 15 - LOC 107 eLOC 96 lLOC 61 Comment 65 Lines 147 - - Function: QP::QHsm::hsm_tran - Parameters: (QStateHandler (&path)[MAX_NEST_DEPTH_]) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 4 - Conditional if / else if: 10 - Complexity Param 1 Return 1 Cyclo Vg 15 Total 17 - LOC 99 eLOC 79 lLOC 48 Comment 61 Lines 140 - - Function: QP::QHsm::isIn - Parameters: (QStateHandler const s) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 16 eLOC 13 lLOC 9 Comment 21 Lines 23 - - Function: QP::QHsm::childState - Parameters: (QStateHandler const parent) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 19 eLOC 16 lLOC 12 Comment 27 Lines 25 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 348 eLOC 302 lLOC 169 Comment 289 Lines 611 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 8 - Total Function LOC.....: 299 Total Function Pts LOC : 6.6 - Total Function eLOC....: 256 Total Function Pts eLOC: 5.7 - Total Function lLOC....: 163 Total Function Pts lLOC: 3.2 - Total Function Params .: 8 Total Function Return .: 8 - Total Cyclo Complexity : 43 Total Function Complex.: 59 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 107 Average Function LOC ..: 37.38 - Max Function eLOC .....: 96 Average Function eLOC .: 32.00 - Max Function lLOC .....: 61 Average Function lLOC .: 20.38 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.00 - Max Cyclomatic Complex.: 15 Avg Cyclomatic Complex.: 5.38 - Max Total Complexity ..: 17 Avg Total Complexity ..: 7.38 - ________________________________________________________________________ - End of File: ..\src\qf\qep_hsm.cpp - - - File: ..\src\qf\qep_msm.cpp - ________________________________________________________________________ - - Function: QP::QMsm::QMsm - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 2 lLOC 2 Comment 13 Lines 4 - - Function: QP::QMsm::init - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 21 eLOC 20 lLOC 12 Comment 23 Lines 33 - - Function: QP::QMsm::dispatch - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 2 - Conditional if / else if: 13 - Complexity Param 1 Return 1 Cyclo Vg 16 Total 18 - LOC 117 eLOC 100 lLOC 61 Comment 73 Lines 159 - - Function: QP::QMsm::execTatbl_ - Parameters: (QMTranActTable const * const tatbl) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 6 - Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 - LOC 56 eLOC 46 lLOC 21 Comment 31 Lines 67 - - Function: QP::QMsm::exitToTranSource_ - Parameters: (QMState const *s, QMState const * const ts) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 2 - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 18 eLOC 13 lLOC 6 Comment 17 Lines 24 - - Function: QP::QMsm::enterHistory_ - Parameters: (QMState const * const hist) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 2 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 - LOC 40 eLOC 33 lLOC 21 Comment 22 Lines 48 - - Function: QP::QMsm::isInState - Parameters: (QMState const * const st) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 13 eLOC 9 lLOC 5 Comment 15 Lines 14 - - Function: QP::QMsm::childStateObj - Parameters: (QMState const * const parent) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 19 eLOC 14 lLOC 9 Comment 17 Lines 23 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 312 eLOC 259 lLOC 139 Comment 262 Lines 544 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 8 - Total Function LOC.....: 288 Total Function Pts LOC : 5.9 - Total Function eLOC....: 237 Total Function Pts eLOC: 4.9 - Total Function lLOC....: 137 Total Function Pts lLOC: 2.6 - Total Function Params .: 9 Total Function Return .: 8 - Total Cyclo Complexity : 44 Total Function Complex.: 61 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 117 Average Function LOC ..: 36.00 - Max Function eLOC .....: 100 Average Function eLOC .: 29.63 - Max Function lLOC .....: 61 Average Function lLOC .: 17.13 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.13 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.13 - Max Cyclomatic Complex.: 16 Avg Cyclomatic Complex.: 5.50 - Max Total Complexity ..: 18 Avg Total Complexity ..: 7.63 - ________________________________________________________________________ - End of File: ..\src\qf\qep_msm.cpp - - - File: ..\src\qf\qf_act.cpp - ________________________________________________________________________ - - Function: QP::QF::add_ - Parameters: (QActive * const a) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 15 eLOC 14 lLOC 8 Comment 17 Lines 20 - - Function: QP::QF::remove_ - Parameters: (QActive * const a) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 16 eLOC 15 lLOC 9 Comment 18 Lines 21 - - Function: QP::QF::bzero - Parameters: (void * const start, uint_fast16_t len) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 8 eLOC 6 lLOC 4 Comment 13 Lines 8 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 147 eLOC 141 lLOC 23 Comment 105 Lines 254 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 3 - Total Function LOC.....: 39 Total Function Pts LOC : 2.8 - Total Function eLOC....: 35 Total Function Pts eLOC: 2.7 - Total Function lLOC....: 21 Total Function Pts lLOC: 0.4 - Total Function Params .: 4 Total Function Return .: 3 - Total Cyclo Complexity : 8 Total Function Complex.: 15 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 16 Average Function LOC ..: 13.00 - Max Function eLOC .....: 15 Average Function eLOC .: 11.67 - Max Function lLOC .....: 9 Average Function lLOC .: 7.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.33 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.33 - Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 2.67 - Max Total Complexity ..: 5 Avg Total Complexity ..: 5.00 - ________________________________________________________________________ - End of File: ..\src\qf\qf_act.cpp - - - File: ..\src\qf\qf_actq.cpp - ________________________________________________________________________ - - Function: QP::QActive::post_ - Parameters: (QEvt const * const e, uint_fast16_t const margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 5 - Logical or ( || ) : 1 - Logical and ( && ) : 1 - Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 - LOC 59 eLOC 49 lLOC 34 Comment 71 Lines 81 - - Function: QP::QActive::postLIFO - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 36 eLOC 30 lLOC 20 Comment 32 Lines 48 - - Function: QP::QActive::get_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 - LOC 37 eLOC 33 lLOC 21 Comment 27 Lines 48 - - Function: QP::QF::getQueueMin - Parameters: (uint_fast8_t const prio) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 5 Comment 17 Lines 13 - - Function: QP::QTicker::QTicker - Parameters: (uint_fast8_t const tickRate) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 1 lLOC 1 Comment 2 Lines 4 - - Function: QP::QTicker::init - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QTicker::dispatch - Parameters: (QEvt const * const) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 8 lLOC 6 Comment 4 Lines 11 - - Function: QP::QTicker::post_ - Parameters: (QEvt const * const , uint_fast16_t const /*margin*/) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 31 eLOC 28 lLOC 16 Comment 16 Lines 38 - - Function: QP::QTicker::postLIFO - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 218 eLOC 187 lLOC 105 Comment 225 Lines 407 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 9 - Total Function LOC.....: 192 Total Function Pts LOC : 4.1 - Total Function eLOC....: 162 Total Function Pts eLOC: 3.5 - Total Function lLOC....: 105 Total Function Pts lLOC: 2.0 - Total Function Params .: 10 Total Function Return .: 9 - Total Cyclo Complexity : 25 Total Function Complex.: 44 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 59 Average Function LOC ..: 21.33 - Max Function eLOC .....: 49 Average Function eLOC .: 18.00 - Max Function lLOC .....: 34 Average Function lLOC .: 11.67 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.11 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.11 - Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 2.78 - Max Total Complexity ..: 11 Avg Total Complexity ..: 4.89 - ________________________________________________________________________ - End of File: ..\src\qf\qf_actq.cpp - - - File: ..\src\qf\qf_defer.cpp - ________________________________________________________________________ - - Function: QP::QActive::defer - Parameters: (QEQueue * const eq, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 3 eLOC 2 lLOC 1 Comment 22 Lines 3 - - Function: QP::QActive::recall - Parameters: (QEQueue * const eq) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 15 eLOC 12 lLOC 8 Comment 30 Lines 27 - - Function: QP::QActive::flushDeferred - Parameters: (QEQueue * const eq) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 8 lLOC 5 Comment 15 Lines 11 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 36 eLOC 28 lLOC 14 Comment 109 Lines 145 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 3 - Total Function LOC.....: 29 Total Function Pts LOC : 0.7 - Total Function eLOC....: 22 Total Function Pts eLOC: 0.5 - Total Function lLOC....: 14 Total Function Pts lLOC: 0.3 - Total Function Params .: 4 Total Function Return .: 3 - Total Cyclo Complexity : 6 Total Function Complex.: 13 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 15 Average Function LOC ..: 9.67 - Max Function eLOC .....: 12 Average Function eLOC .: 7.33 - Max Function lLOC .....: 8 Average Function lLOC .: 4.67 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.33 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.33 - Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 2.00 - Max Total Complexity ..: 5 Avg Total Complexity ..: 4.33 - ________________________________________________________________________ - End of File: ..\src\qf\qf_defer.cpp - - - File: ..\src\qf\qf_dyn.cpp - ________________________________________________________________________ - - Function: QP::QF::poolInit - Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa - st16_t const evtSize) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical or ( || ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 10 eLOC 8 lLOC 4 Comment 36 Lines 13 - - Function: QP::QF::newX_ - Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en - um_t const sig) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 2 - Inlined if-else ( ? : ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 - LOC 30 eLOC 24 lLOC 14 Comment 35 Lines 42 - - Function: QP::QF::gc - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 32 eLOC 28 lLOC 14 Comment 39 Lines 47 - - Function: QP::QF::newRef_ - Parameters: (QEvt const * const e, QEvt const * const evtRef) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 10 eLOC 8 lLOC 5 Comment 15 Lines 14 - - Function: QP::QF::poolGetMaxBlockSize - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 4 eLOC 3 lLOC 1 Comment 4 Lines 4 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 104 eLOC 88 lLOC 40 Comment 177 Lines 281 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 5 - Total Function LOC.....: 86 Total Function Pts LOC : 2.0 - Total Function eLOC....: 71 Total Function Pts eLOC: 1.7 - Total Function lLOC....: 38 Total Function Pts lLOC: 0.8 - Total Function Params .: 9 Total Function Return .: 5 - Total Cyclo Complexity : 13 Total Function Complex.: 27 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 32 Average Function LOC ..: 17.20 - Max Function eLOC .....: 28 Average Function eLOC .: 14.20 - Max Function lLOC .....: 14 Average Function lLOC .: 7.60 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 1.80 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 2.80 - Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.60 - Max Total Complexity ..: 9 Avg Total Complexity ..: 5.40 - ________________________________________________________________________ - End of File: ..\src\qf\qf_dyn.cpp - - - File: ..\src\qf\qf_mem.cpp - ________________________________________________________________________ - - Function: QP::QMPool::QMPool - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 9 Lines 1 - - Function: QP::QMPool::init - Parameters: (void * const poolSto, uint_fast32_t poolSize, uint_fast16_t - blockSize) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 2 - Logical and ( && ) : 2 - Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 - LOC 35 eLOC 31 lLOC 22 Comment 51 Lines 58 - - Function: QP::QMPool::put - Parameters: (void * const b) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 17 eLOC 16 lLOC 9 Comment 23 Lines 24 - - Function: QP::QMPool::get - Parameters: (uint_fast16_t const margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 41 eLOC 35 lLOC 22 Comment 46 Lines 61 - - Function: QP::QF::getPoolMin - Parameters: (uint_fast8_t const poolId) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 5 Comment 13 Lines 14 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 126 eLOC 113 lLOC 58 Comment 187 Lines 309 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 5 - Total Function LOC.....: 104 Total Function Pts LOC : 2.4 - Total Function eLOC....: 92 Total Function Pts eLOC: 2.1 - Total Function lLOC....: 58 Total Function Pts lLOC: 1.1 - Total Function Params .: 6 Total Function Return .: 5 - Total Cyclo Complexity : 14 Total Function Complex.: 25 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 41 Average Function LOC ..: 20.80 - Max Function eLOC .....: 35 Average Function eLOC .: 18.40 - Max Function lLOC .....: 22 Average Function lLOC .: 11.60 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 1.20 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 2.20 - Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.80 - Max Total Complexity ..: 9 Avg Total Complexity ..: 5.00 - ________________________________________________________________________ - End of File: ..\src\qf\qf_mem.cpp - - - File: ..\src\qf\qf_ps.cpp - ________________________________________________________________________ - - Function: QP::QF::psInit - Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 7 eLOC 6 lLOC 3 Comment 30 Lines 11 - - Function: QP::QF::publish_ - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Loops for / foreach : 1 - Conditional if / else if: 4 - Logical and ( && ) : 10 - Complexity Param 1 Return 1 Cyclo Vg 17 Total 19 - LOC 95 eLOC 84 lLOC 44 Comment 111 Lines 191 - - - NOTICE: The end of the source file has been reached where the - open brace count { 14 != 13 } close brace count - This is an indication of non-compilable code within the source - file. RSM processes all source code including code wrapped - with preprocessor directives. Accurate metrics requires that - all code present in this file must be compilable. - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 116 eLOC 104 lLOC 49 Comment 189 Lines 306 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 2 - Total Function LOC.....: 102 Total Function Pts LOC : 2.2 - Total Function eLOC....: 90 Total Function Pts eLOC: 2.0 - Total Function lLOC....: 47 Total Function Pts lLOC: 0.9 - Total Function Params .: 3 Total Function Return .: 2 - Total Cyclo Complexity : 18 Total Function Complex.: 23 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 95 Average Function LOC ..: 51.00 - Max Function eLOC .....: 84 Average Function eLOC .: 45.00 - Max Function lLOC .....: 44 Average Function lLOC .: 23.50 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.50 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.50 - Max Cyclomatic Complex.: 17 Avg Cyclomatic Complex.: 9.00 - Max Total Complexity ..: 19 Avg Total Complexity ..: 11.50 - ________________________________________________________________________ - End of File: ..\src\qf\qf_ps.cpp - - - File: ..\src\qf\qf_qact.cpp - ________________________________________________________________________ - - Function: QP::QActive::QActive - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 9 eLOC 7 lLOC 3 Comment 1 Lines 11 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 16 eLOC 13 lLOC 3 Comment 40 Lines 59 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 9 Total Function Pts LOC : 0.3 - Total Function eLOC....: 7 Total Function Pts eLOC: 0.2 - Total Function lLOC....: 3 Total Function Pts lLOC: 0.1 - Total Function Params .: 1 Total Function Return .: 1 - Total Cyclo Complexity : 1 Total Function Complex.: 3 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 9 Average Function LOC ..: 9.00 - Max Function eLOC .....: 7 Average Function eLOC .: 7.00 - Max Function lLOC .....: 3 Average Function lLOC .: 3.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 1 Avg Function Parameters: 1.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 2 Avg Interface Complex. : 2.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 3 Avg Total Complexity ..: 3.00 - ________________________________________________________________________ - End of File: ..\src\qf\qf_qact.cpp - - - File: ..\src\qf\qf_qeq.cpp - ________________________________________________________________________ - - Function: QP::QEQueue::QEQueue - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 4 Lines 1 - - Function: QP::QEQueue::init - Parameters: (QEvt const *qSto[], uint_fast16_t const qLen) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 17 eLOC 15 lLOC 9 Comment 19 Lines 18 - - Function: QP::QEQueue::post - Parameters: (QEvt const * const e, uint_fast16_t const margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 5 - Logical or ( || ) : 1 - Logical and ( && ) : 1 - Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 - LOC 54 eLOC 45 lLOC 29 Comment 53 Lines 73 - - Function: QP::QEQueue::postLIFO - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 33 eLOC 28 lLOC 19 Comment 36 Lines 44 - - Function: QP::QEQueue::get - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 - LOC 39 eLOC 34 lLOC 21 Comment 31 Lines 48 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 164 eLOC 142 lLOC 78 Comment 188 Lines 322 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 5 - Total Function LOC.....: 144 Total Function Pts LOC : 3.1 - Total Function eLOC....: 123 Total Function Pts eLOC: 2.7 - Total Function lLOC....: 78 Total Function Pts lLOC: 1.5 - Total Function Params .: 5 Total Function Return .: 5 - Total Cyclo Complexity : 20 Total Function Complex.: 30 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 54 Average Function LOC ..: 28.80 - Max Function eLOC .....: 45 Average Function eLOC .: 24.60 - Max Function lLOC .....: 29 Average Function lLOC .: 15.60 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.00 - Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 4.00 - Max Total Complexity ..: 11 Avg Total Complexity ..: 6.00 - ________________________________________________________________________ - End of File: ..\src\qf\qf_qeq.cpp - - - File: ..\src\qf\qf_qmact.cpp - ________________________________________________________________________ - - Function: QP::QMActive::QMActive - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 2 lLOC 2 Comment 1 Lines 4 - - Function: QP::QMActive::init - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::dispatch - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::isInState - Parameters: (QMState const * const st) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::childStateObj - Parameters: (QMState const * const parent) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 29 eLOC 21 lLOC 7 Comment 53 Lines 86 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 6 - Total Function LOC.....: 19 Total Function Pts LOC : 0.5 - Total Function eLOC....: 12 Total Function Pts eLOC: 0.4 - Total Function lLOC....: 7 Total Function Pts lLOC: 0.1 - Total Function Params .: 5 Total Function Return .: 6 - Total Cyclo Complexity : 6 Total Function Complex.: 17 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 4 Average Function LOC ..: 3.17 - Max Function eLOC .....: 2 Average Function eLOC .: 2.00 - Max Function lLOC .....: 2 Average Function lLOC .: 1.17 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 1 Avg Function Parameters: 0.83 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 2 Avg Interface Complex. : 1.83 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 3 Avg Total Complexity ..: 2.83 - ________________________________________________________________________ - End of File: ..\src\qf\qf_qmact.cpp - - - File: ..\src\qf\qf_time.cpp - ________________________________________________________________________ - - Function: QP::QF::tickX_ - Parameters: (uint_fast8_t const tickRate) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 5 - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 66 eLOC 54 lLOC 36 Comment 52 Lines 95 - - Function: QP::QF::noTimeEvtsActiveX - Parameters: (uint_fast8_t const tickRate) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 14 eLOC 10 lLOC 6 Comment 12 Lines 16 - - Function: QP::QTimeEvt::QTimeEvt - Parameters: (QActive * const act, enum_t const sgnl, uint_fast8_t const - tickRate) Defined By Compiler Directive - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 9 eLOC 7 lLOC 4 Comment 22 Lines 22 - - Function: QP::QTimeEvt::QTimeEvt - Parameters: () Defined By Compiler Directive - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 5 lLOC 3 Comment 12 Lines 18 - - Function: QP::QTimeEvt::armX - Parameters: (QTimeEvtCtr const nTicks, QTimeEvtCtr const interval) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 4 - Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 - LOC 28 eLOC 26 lLOC 16 Comment 48 Lines 50 - - Function: QP::QTimeEvt::disarm - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 30 eLOC 27 lLOC 17 Comment 27 Lines 38 - - Function: QP::QTimeEvt::rearm - Parameters: (QTimeEvtCtr const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Logical and ( && ) : 3 - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 42 eLOC 35 lLOC 20 Comment 49 Lines 68 - - Function: QP::QTimeEvt::ctr - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 15 eLOC 14 lLOC 10 Comment 16 Lines 18 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 248 eLOC 214 lLOC 113 Comment 301 Lines 537 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 8 - Total Function LOC.....: 211 Total Function Pts LOC : 4.7 - Total Function eLOC....: 178 Total Function Pts eLOC: 4.0 - Total Function lLOC....: 112 Total Function Pts lLOC: 2.1 - Total Function Params .: 9 Total Function Return .: 8 - Total Cyclo Complexity : 29 Total Function Complex.: 46 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 66 Average Function LOC ..: 26.38 - Max Function eLOC .....: 54 Average Function eLOC .: 22.25 - Max Function lLOC .....: 36 Average Function lLOC .: 14.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 1.13 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 2.13 - Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 3.63 - Max Total Complexity ..: 9 Avg Total Complexity ..: 5.75 - ________________________________________________________________________ - End of File: ..\src\qf\qf_time.cpp - - - File: ..\src\qv\qv.cpp - ________________________________________________________________________ - - Function: QP::QF::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 - - Function: QP::QF::run - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 3 - Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 - LOC 47 eLOC 41 lLOC 21 Comment 44 Lines 73 - - Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const, QEvt c - onst * const ie) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 2 - Complexity Param 6 Return 1 Cyclo Vg 3 Total 10 - LOC 10 eLOC 8 lLOC 6 Comment 26 Lines 16 - - Function: QP::QActive::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 7 eLOC 6 lLOC 4 Comment 14 Lines 8 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 101 eLOC 88 lLOC 40 Comment 163 Lines 259 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 67 Total Function Pts LOC : 1.9 - Total Function eLOC....: 57 Total Function Pts eLOC: 1.7 - Total Function lLOC....: 32 Total Function Pts lLOC: 0.8 - Total Function Params .: 6 Total Function Return .: 4 - Total Cyclo Complexity : 10 Total Function Complex.: 20 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 47 Average Function LOC ..: 16.75 - Max Function eLOC .....: 41 Average Function eLOC .: 14.25 - Max Function lLOC .....: 21 Average Function lLOC .: 8.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 6 Avg Function Parameters: 1.50 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 7 Avg Interface Complex. : 2.50 - Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.50 - Max Total Complexity ..: 10 Avg Total Complexity ..: 5.00 - ________________________________________________________________________ - End of File: ..\src\qv\qv.cpp - - - File: ..\src\qk\qk.cpp - ________________________________________________________________________ - - Function: QP::QF::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 14 eLOC 13 lLOC 9 Comment 14 Lines 17 - - Function: QP::QF::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 - - Function: QP::initial_events - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QP::QF::run - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 14 Lines 14 - - Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const, QEvt c - onst * const ie) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 3 - Complexity Param 6 Return 1 Cyclo Vg 5 Total 12 - LOC 17 eLOC 14 lLOC 9 Comment 28 Lines 25 - - Function: QP::QActive::stop - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 - - Function: QP::QK::schedLock - Parameters: (uint_fast8_t const ceiling) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 23 eLOC 20 lLOC 12 Comment 32 Lines 33 - - Function: QP::QK::schedUnlock - Parameters: (QSchedStatus const stat) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 - - Function: QK_activate_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 5 - Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 - LOC 62 eLOC 54 lLOC 28 Comment 48 Lines 89 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 210 eLOC 178 lLOC 92 Comment 269 Lines 466 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 9 - Total Function LOC.....: 171 Total Function Pts LOC : 4.0 - Total Function eLOC....: 146 Total Function Pts eLOC: 3.4 - Total Function lLOC....: 84 Total Function Pts lLOC: 1.7 - Total Function Params .: 8 Total Function Return .: 9 - Total Cyclo Complexity : 26 Total Function Complex.: 43 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 62 Average Function LOC ..: 19.00 - Max Function eLOC .....: 54 Average Function eLOC .: 16.22 - Max Function lLOC .....: 28 Average Function lLOC .: 9.33 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 6 Avg Function Parameters: 0.89 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 7 Avg Interface Complex. : 1.89 - Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 2.89 - Max Total Complexity ..: 12 Avg Total Complexity ..: 4.78 - ________________________________________________________________________ - End of File: ..\src\qk\qk.cpp - - - File: ..\src\qk\qk_mutex.cpp - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 0 eLOC 0 lLOC 0 Comment 38 Lines 38 - ________________________________________________________________________ - End of File: ..\src\qk\qk_mutex.cpp - - - File: ..\src\qxk\qxk.cpp - ________________________________________________________________________ - - Inline Function: QP::QXKIdleThread::QXKIdleThread - Parameters: () - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1 - - Function: QP::QF::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 16 eLOC 15 lLOC 12 Comment 15 Lines 23 - - Function: QP::QF::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 - - Function: QP::initial_events - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QP::QF::run - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 - - Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - , QEvt const * const ie) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 4 - Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 - LOC 20 eLOC 17 lLOC 11 Comment 30 Lines 29 - - Function: QP::QActive::stop - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 14 - - Function: QP::QXK::schedLock - Parameters: (uint_fast8_t const ceiling) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Inlined if-else ( ? : ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 26 eLOC 23 lLOC 12 Comment 30 Lines 35 - - Function: QP::QXK::schedUnlock - Parameters: (QSchedStatus const stat) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 - - Function: static_cast - Parameters: (0)) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 24 eLOC 19 lLOC 8 Comment 8 Lines 28 - - Function: QXK_activate_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 6 - Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 - LOC 79 eLOC 69 lLOC 35 Comment 53 Lines 108 - - Function: QXK_current - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 14 eLOC 12 lLOC 8 Comment 4 Lines 21 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 291 eLOC 248 lLOC 127 Comment 290 Lines 567 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 12 - Total Function LOC.....: 235 Total Function Pts LOC : 5.5 - Total Function eLOC....: 201 Total Function Pts eLOC: 4.7 - Total Function lLOC....: 112 Total Function Pts lLOC: 2.4 - Total Function Params .: 9 Total Function Return .: 12 - Total Cyclo Complexity : 35 Total Function Complex.: 56 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 79 Average Function LOC ..: 19.58 - Max Function eLOC .....: 69 Average Function eLOC .: 16.75 - Max Function lLOC .....: 35 Average Function lLOC .: 9.33 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 6 Avg Function Parameters: 0.75 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 7 Avg Interface Complex. : 1.75 - Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 2.92 - Max Total Complexity ..: 13 Avg Total Complexity ..: 4.67 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk.cpp - - - File: ..\src\qxk\qxk_mutex.cpp - ________________________________________________________________________ - - Function: QP::QXMutex::init - Parameters: (uint_fast8_t ceiling) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 12 eLOC 11 lLOC 7 Comment 20 Lines 22 - - Function: QP::QXMutex::lock - Parameters: (uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Logical and ( && ) : 4 - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 45 eLOC 41 lLOC 27 Comment 50 Lines 78 - - Function: QP::QXMutex::tryLock - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Logical and ( && ) : 4 - Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 - LOC 39 eLOC 34 lLOC 19 Comment 41 Lines 59 - - Function: QP::QXMutex::unlock - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Logical and ( && ) : 8 - Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 - LOC 56 eLOC 49 lLOC 25 Comment 57 Lines 95 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 167 eLOC 149 lLOC 78 Comment 217 Lines 388 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 152 Total Function Pts LOC : 3.2 - Total Function eLOC....: 135 Total Function Pts eLOC: 2.8 - Total Function lLOC....: 78 Total Function Pts lLOC: 1.5 - Total Function Params .: 2 Total Function Return .: 4 - Total Cyclo Complexity : 31 Total Function Complex.: 37 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 56 Average Function LOC ..: 38.00 - Max Function eLOC .....: 49 Average Function eLOC .: 33.75 - Max Function lLOC .....: 27 Average Function lLOC .: 19.50 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 1 Avg Function Parameters: 0.50 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 2 Avg Interface Complex. : 1.50 - Max Cyclomatic Complex.: 13 Avg Cyclomatic Complex.: 7.75 - Max Total Complexity ..: 14 Avg Total Complexity ..: 9.25 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk_mutex.cpp - - - File: ..\src\qxk\qxk_sema.cpp - ________________________________________________________________________ - - Function: QP::QXSemaphore::init - Parameters: (uint_fast16_t const count, uint_fast16_t const max_count) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 6 eLOC 4 lLOC 4 Comment 18 Lines 7 - - Function: QP::QXSemaphore::wait - Parameters: (uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 3 - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 28 eLOC 25 lLOC 17 Comment 36 Lines 41 - - Function: QP::QXSemaphore::tryWait - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 15 eLOC 12 lLOC 8 Comment 16 Lines 20 - - Function: QP::QXSemaphore::signal - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Logical and ( && ) : 2 - Complexity Param 0 Return 1 Cyclo Vg 6 Total 7 - LOC 29 eLOC 23 lLOC 14 Comment 26 Lines 39 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 95 eLOC 80 lLOC 43 Comment 144 Lines 240 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 78 Total Function Pts LOC : 1.8 - Total Function eLOC....: 64 Total Function Pts eLOC: 1.5 - Total Function lLOC....: 43 Total Function Pts lLOC: 0.8 - Total Function Params .: 3 Total Function Return .: 4 - Total Cyclo Complexity : 14 Total Function Complex.: 21 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 29 Average Function LOC ..: 19.50 - Max Function eLOC .....: 25 Average Function eLOC .: 16.00 - Max Function lLOC .....: 17 Average Function lLOC .: 10.75 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 0.75 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 1.75 - Max Cyclomatic Complex.: 6 Avg Cyclomatic Complex.: 3.50 - Max Total Complexity ..: 7 Avg Total Complexity ..: 5.25 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk_sema.cpp - - - File: ..\src\qxk\qxk_xthr.cpp - ________________________________________________________________________ - - Function: QP::QXThread::QXThread - Parameters: (QXThreadHandler const handler, uint_fast8_t const tickRate) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 3 eLOC 1 lLOC 1 Comment 17 Lines 3 - - Function: QP::QXThread::init - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 - - Function: QP::QXThread::dispatch - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QXThread::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - , QEvt const * const) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 4 - Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 - LOC 21 eLOC 18 lLOC 11 Comment 35 Lines 39 - - Function: QP::QXThread::post_ - Parameters: (QEvt const * const e, uint_fast16_t const margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 9 - Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 - LOC 79 eLOC 64 lLOC 44 Comment 65 Lines 111 - - Function: QP::QXThread::postLIFO - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 9 Lines 3 - - Function: QP::QXThread::queueGet - Parameters: (uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Logical and ( && ) : 3 - Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 - LOC 61 eLOC 54 lLOC 34 Comment 53 Lines 88 - - Function: QP::QXThread::block_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 5 eLOC 4 lLOC 3 Comment 8 Lines 6 - - Function: QP::QXThread::unblock_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 1 - Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 - LOC 8 eLOC 5 lLOC 2 Comment 9 Lines 9 - - Function: QP::QXThread::teArm_ - Parameters: (enum_t const sig, uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 18 eLOC 14 lLOC 8 Comment 20 Lines 33 - - Function: QP::QXThread::teDisarm_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 11 eLOC 8 lLOC 5 Comment 10 Lines 14 - - Function: QP::QXThread::delay - Parameters: (uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 20 eLOC 19 lLOC 13 Comment 17 Lines 34 - - Function: QP::QXThread::delayCancel - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 290 eLOC 242 lLOC 138 Comment 310 Lines 600 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 13 - Total Function LOC.....: 249 Total Function Pts LOC : 5.5 - Total Function eLOC....: 204 Total Function Pts eLOC: 4.6 - Total Function lLOC....: 131 Total Function Pts lLOC: 2.6 - Total Function Params .: 17 Total Function Return .: 13 - Total Cyclo Complexity : 43 Total Function Complex.: 73 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 79 Average Function LOC ..: 19.15 - Max Function eLOC .....: 64 Average Function eLOC .: 15.69 - Max Function lLOC .....: 44 Average Function lLOC .: 10.08 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 6 Avg Function Parameters: 1.31 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 7 Avg Interface Complex. : 2.31 - Max Cyclomatic Complex.: 10 Avg Cyclomatic Complex.: 3.31 - Max Total Complexity ..: 13 Avg Total Complexity ..: 5.62 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk_xthr.cpp - - - ------------------------------------------------------------------------ - - ~~ Project Analysis For 37 Files ~~ - - ------------------------------------------------------------------------ - - ~~ Total Project Summary ~~ - - LOC 4869 eLOC 4314 lLOC 1884 Comment 6428 Lines 11582 - Average per File, metric/37 files - LOC 131 eLOC 116 lLOC 50 Comment 173 Lines 313 - - ------------------------------------------------------------------------ - - ~~ Project Functional Metrics ~~ - - Function: QP::QEvt::QEvt - Parameters: (QSignal const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 - - Function: QP::QEvt::QEvt - Parameters: (QSignal const s, StaticEvt) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 - - Function: QP::QEvt::~QEvt - Parameters: () - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 1 Lines 1 - - Function: QP::QHsm::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Function: QP::QHsm::state - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QHsm::Q_HANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 - - Function: QP::QHsm::Q_UNHANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 4 Lines 3 - - Function: QP::QHsm::tran_ - Parameters: (QStateHandler const target) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QHsm::tran_hist_ - Parameters: (QStateHandler const hist) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QHsm::super_ - Parameters: (QStateHandler const superstate) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QHsm::qm_tran_ - Parameters: (QMTranActTable const * const tatbl) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 - - Function: QP::QHsm::qm_tran_hist_ - Parameters: (QMState const * const hist, QMTranActTable const * const ta - tbl) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 3 lLOC 3 Comment 1 Lines 5 - - Function: QP::QHsm::qm_tran_init_ - Parameters: (QMTranActTable const * const tatbl) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QHsm::qm_tran_ep_ - Parameters: (QMTranActTable const * const tatbl) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 - - Function: QP::QHsm::qm_tran_xp_ - Parameters: (QActionHandler const xp, QMTranActTable const *const tatbl) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 3 lLOC 3 Comment 2 Lines 5 - - Function: QP::QHsm::qm_entry_ - Parameters: (QMState const * const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QHsm::qm_exit_ - Parameters: (QMState const * const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QHsm::qm_super_sub_ - Parameters: (QMState const * const s) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 - - Function: QP::QHsm::QM_HANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QHsm::QM_UNHANDLED - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QHsm::QM_SUPER - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QMsm::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Function: QP::QMsm::stateObj - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QEP::getVersion - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QEQueue::getNFree - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 - - Function: QP::QEQueue::getNMin - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 11 Lines 3 - - Function: QP::QEQueue::isEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 - - Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - ) - Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 - LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 - - Function: QP::QActive::getPrio - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QActive::setPrio - Parameters: (uint_fast8_t const prio) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QActive::getOsObject - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Function: QP::QActive::getThread - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Function: QP::QMActive::stateObj - Parameters: (void) Non-ANSI Parameter Construct - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QTimeEvt::QTimeEvt - Parameters: (enum_t const sgnl) Non-ANSI Parameter Construct Defined By - Compiler Directive - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 5 lLOC 3 Comment 7 Lines 8 - - Function: QP::QTimeEvt::postIn - Parameters: (QActive * const act, QTimeEvtCtr const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QTimeEvt::postEvery - Parameters: (QActive * const act, QTimeEvtCtr const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QTimeEvt::toActive - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Function: QP::QTimeEvt::toTimeEvt - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Function: QP::QF::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QTicker::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 0 Lines 1 - - Function: QP::QK::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMPool::getBlockSize - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QF_LOG2 - Parameters: (uint32_t const x) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 25 eLOC 18 lLOC 11 Comment 8 Lines 26 - - Function: QP::QPSet::setEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QPSet::isEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QPSet::notEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QPSet::hasElement - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 - - Function: QP::QPSet::insert - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 - - Function: QP::QPSet::remove - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 - - Function: QP::QPSet::findMax - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QPSet::setEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 - - Function: QP::QPSet::isEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 - - Function: QP::QPSet::notEmpty - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 - - Function: QP::QPSet::hasElement - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 9 eLOC 8 lLOC 1 Comment 1 Lines 9 - - Function: QP::QPSet::insert - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 - - Function: QP::QPSet::remove - Parameters: (uint_fast8_t const n) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 - - Function: QP::QPSet::findMax - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 - - Function: QP::QS::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QS::rxPut - Parameters: (uint8_t const b) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 14 eLOC 9 lLOC 4 Comment 1 Lines 14 - - Function: QP::QS::force_cast - Parameters: (T_IN in) - Template: template - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 6 lLOC 4 Comment 2 Lines 7 - - Function: QP::QV::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QXK::getVersion - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QXThread::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 - - Function: QP::QXThread::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - ) - Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 - LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 - - Function: QP::QF_EVT_POOL_ID_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Function: QP::QF_EVT_REF_CTR_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 - - Function: QP::QF_EVT_REF_CTR_INC_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QF_EVT_REF_CTR_DEC_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QHsm::QHsm - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 3 lLOC 2 Comment 8 Lines 4 - - Function: QP::QHsm::~QHsm - Parameters: () - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 2 eLOC 1 lLOC 0 Comment 4 Lines 2 - - Function: QP::QHsm::init - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 - LOC 49 eLOC 46 lLOC 30 Comment 30 Lines 67 - - Function: QP::QHsm::top - Parameters: (void * const, QEvt const * const) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 3 eLOC 2 lLOC 1 Comment 15 Lines 3 - - Function: QP::QHsm::dispatch - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 13 Total 15 - LOC 107 eLOC 96 lLOC 61 Comment 65 Lines 147 - - Function: QP::QHsm::hsm_tran - Parameters: (QStateHandler (&path)[MAX_NEST_DEPTH_]) - Complexity Param 1 Return 1 Cyclo Vg 15 Total 17 - LOC 99 eLOC 79 lLOC 48 Comment 61 Lines 140 - - Function: QP::QHsm::isIn - Parameters: (QStateHandler const s) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 16 eLOC 13 lLOC 9 Comment 21 Lines 23 - - Function: QP::QHsm::childState - Parameters: (QStateHandler const parent) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 19 eLOC 16 lLOC 12 Comment 27 Lines 25 - - Function: QP::QMsm::QMsm - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 2 lLOC 2 Comment 13 Lines 4 - - Function: QP::QMsm::init - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 21 eLOC 20 lLOC 12 Comment 23 Lines 33 - - Function: QP::QMsm::dispatch - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 16 Total 18 - LOC 117 eLOC 100 lLOC 61 Comment 73 Lines 159 - - Function: QP::QMsm::execTatbl_ - Parameters: (QMTranActTable const * const tatbl) - Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 - LOC 56 eLOC 46 lLOC 21 Comment 31 Lines 67 - - Function: QP::QMsm::exitToTranSource_ - Parameters: (QMState const *s, QMState const * const ts) - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 18 eLOC 13 lLOC 6 Comment 17 Lines 24 - - Function: QP::QMsm::enterHistory_ - Parameters: (QMState const * const hist) - Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 - LOC 40 eLOC 33 lLOC 21 Comment 22 Lines 48 - - Function: QP::QMsm::isInState - Parameters: (QMState const * const st) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 13 eLOC 9 lLOC 5 Comment 15 Lines 14 - - Function: QP::QMsm::childStateObj - Parameters: (QMState const * const parent) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 19 eLOC 14 lLOC 9 Comment 17 Lines 23 - - Function: QP::QF::add_ - Parameters: (QActive * const a) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 15 eLOC 14 lLOC 8 Comment 17 Lines 20 - - Function: QP::QF::remove_ - Parameters: (QActive * const a) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 16 eLOC 15 lLOC 9 Comment 18 Lines 21 - - Function: QP::QF::bzero - Parameters: (void * const start, uint_fast16_t len) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 8 eLOC 6 lLOC 4 Comment 13 Lines 8 - - Function: QP::QActive::post_ - Parameters: (QEvt const * const e, uint_fast16_t const margin) - Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 - LOC 59 eLOC 49 lLOC 34 Comment 71 Lines 81 - - Function: QP::QActive::postLIFO - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 36 eLOC 30 lLOC 20 Comment 32 Lines 48 - - Function: QP::QActive::get_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 - LOC 37 eLOC 33 lLOC 21 Comment 27 Lines 48 - - Function: QP::QF::getQueueMin - Parameters: (uint_fast8_t const prio) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 5 Comment 17 Lines 13 - - Function: QP::QTicker::QTicker - Parameters: (uint_fast8_t const tickRate) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 1 lLOC 1 Comment 2 Lines 4 - - Function: QP::QTicker::init - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QTicker::dispatch - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 8 lLOC 6 Comment 4 Lines 11 - - Function: QP::QTicker::post_ - Parameters: (QEvt const * const , uint_fast16_t const /*margin*/) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 31 eLOC 28 lLOC 16 Comment 16 Lines 38 - - Function: QP::QTicker::postLIFO - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 - - Function: QP::QActive::defer - Parameters: (QEQueue * const eq, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 3 eLOC 2 lLOC 1 Comment 22 Lines 3 - - Function: QP::QActive::recall - Parameters: (QEQueue * const eq) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 15 eLOC 12 lLOC 8 Comment 30 Lines 27 - - Function: QP::QActive::flushDeferred - Parameters: (QEQueue * const eq) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 8 lLOC 5 Comment 15 Lines 11 - - Function: QP::QF::poolInit - Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa - st16_t const evtSize) - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 10 eLOC 8 lLOC 4 Comment 36 Lines 13 - - Function: QP::QF::newX_ - Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en - um_t const sig) - Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 - LOC 30 eLOC 24 lLOC 14 Comment 35 Lines 42 - - Function: QP::QF::gc - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 32 eLOC 28 lLOC 14 Comment 39 Lines 47 - - Function: QP::QF::newRef_ - Parameters: (QEvt const * const e, QEvt const * const evtRef) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 10 eLOC 8 lLOC 5 Comment 15 Lines 14 - - Function: QP::QF::poolGetMaxBlockSize - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 4 eLOC 3 lLOC 1 Comment 4 Lines 4 - - Function: QP::QMPool::QMPool - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 9 Lines 1 - - Function: QP::QMPool::init - Parameters: (void * const poolSto, uint_fast32_t poolSize, uint_fast16_t - blockSize) - Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 - LOC 35 eLOC 31 lLOC 22 Comment 51 Lines 58 - - Function: QP::QMPool::put - Parameters: (void * const b) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 17 eLOC 16 lLOC 9 Comment 23 Lines 24 - - Function: QP::QMPool::get - Parameters: (uint_fast16_t const margin) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 41 eLOC 35 lLOC 22 Comment 46 Lines 61 - - Function: QP::QF::getPoolMin - Parameters: (uint_fast8_t const poolId) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 5 Comment 13 Lines 14 - - Function: QP::QF::psInit - Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 7 eLOC 6 lLOC 3 Comment 30 Lines 11 - - Function: QP::QF::publish_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 17 Total 19 - LOC 95 eLOC 84 lLOC 44 Comment 111 Lines 191 - - Function: QP::QActive::QActive - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 9 eLOC 7 lLOC 3 Comment 1 Lines 11 - - Function: QP::QEQueue::QEQueue - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 4 Lines 1 - - Function: QP::QEQueue::init - Parameters: (QEvt const *qSto[], uint_fast16_t const qLen) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 17 eLOC 15 lLOC 9 Comment 19 Lines 18 - - Function: QP::QEQueue::post - Parameters: (QEvt const * const e, uint_fast16_t const margin) - Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 - LOC 54 eLOC 45 lLOC 29 Comment 53 Lines 73 - - Function: QP::QEQueue::postLIFO - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 33 eLOC 28 lLOC 19 Comment 36 Lines 44 - - Function: QP::QEQueue::get - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 - LOC 39 eLOC 34 lLOC 21 Comment 31 Lines 48 - - Function: QP::QMActive::QMActive - Parameters: (QStateHandler const initial) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 4 eLOC 2 lLOC 2 Comment 1 Lines 4 - - Function: QP::QMActive::init - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::dispatch - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::isInState - Parameters: (QMState const * const st) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QMActive::childStateObj - Parameters: (QMState const * const parent) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 - - Function: QP::QF::tickX_ - Parameters: (uint_fast8_t const tickRate) - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 66 eLOC 54 lLOC 36 Comment 52 Lines 95 - - Function: QP::QF::noTimeEvtsActiveX - Parameters: (uint_fast8_t const tickRate) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 14 eLOC 10 lLOC 6 Comment 12 Lines 16 - - Function: QP::QTimeEvt::QTimeEvt - Parameters: (QActive * const act, enum_t const sgnl, uint_fast8_t const - tickRate) Defined By Compiler Directive - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 9 eLOC 7 lLOC 4 Comment 22 Lines 22 - - Function: QP::QTimeEvt::QTimeEvt - Parameters: () Defined By Compiler Directive - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 5 lLOC 3 Comment 12 Lines 18 - - Function: QP::QTimeEvt::armX - Parameters: (QTimeEvtCtr const nTicks, QTimeEvtCtr const interval) - Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 - LOC 28 eLOC 26 lLOC 16 Comment 48 Lines 50 - - Function: QP::QTimeEvt::disarm - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 30 eLOC 27 lLOC 17 Comment 27 Lines 38 - - Function: QP::QTimeEvt::rearm - Parameters: (QTimeEvtCtr const nTicks) - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 42 eLOC 35 lLOC 20 Comment 49 Lines 68 - - Function: QP::QTimeEvt::ctr - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 15 eLOC 14 lLOC 10 Comment 16 Lines 18 - - Function: QP::QF::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 - - Function: QP::QF::run - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 - LOC 47 eLOC 41 lLOC 21 Comment 44 Lines 73 - - Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const, QEvt c - onst * const ie) - Complexity Param 6 Return 1 Cyclo Vg 3 Total 10 - LOC 10 eLOC 8 lLOC 6 Comment 26 Lines 16 - - Function: QP::QActive::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 7 eLOC 6 lLOC 4 Comment 14 Lines 8 - - Function: QP::QF::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 14 eLOC 13 lLOC 9 Comment 14 Lines 17 - - Function: QP::QF::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 - - Function: QP::initial_events - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QP::QF::run - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 14 Lines 14 - - Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const, QEvt c - onst * const ie) - Complexity Param 6 Return 1 Cyclo Vg 5 Total 12 - LOC 17 eLOC 14 lLOC 9 Comment 28 Lines 25 - - Function: QP::QActive::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 - - Function: QP::QK::schedLock - Parameters: (uint_fast8_t const ceiling) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 23 eLOC 20 lLOC 12 Comment 32 Lines 33 - - Function: QP::QK::schedUnlock - Parameters: (QSchedStatus const stat) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 - - Function: QK_activate_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 - LOC 62 eLOC 54 lLOC 28 Comment 48 Lines 89 - - Function: QP::QXKIdleThread::QXKIdleThread - Parameters: () - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1 - - Function: QP::QF::init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 16 eLOC 15 lLOC 12 Comment 15 Lines 23 - - Function: QP::QF::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 - - Function: QP::initial_events - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QP::QF::run - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 - - Function: QP::QActive::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - , QEvt const * const ie) - Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 - LOC 20 eLOC 17 lLOC 11 Comment 30 Lines 29 - - Function: QP::QActive::stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 14 - - Function: QP::QXK::schedLock - Parameters: (uint_fast8_t const ceiling) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 26 eLOC 23 lLOC 12 Comment 30 Lines 35 - - Function: QP::QXK::schedUnlock - Parameters: (QSchedStatus const stat) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 - - Function: static_cast - Parameters: (0)) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 24 eLOC 19 lLOC 8 Comment 8 Lines 28 - - Function: QXK_activate_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 - LOC 79 eLOC 69 lLOC 35 Comment 53 Lines 108 - - Function: QXK_current - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 14 eLOC 12 lLOC 8 Comment 4 Lines 21 - - Function: QP::QXMutex::init - Parameters: (uint_fast8_t ceiling) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 12 eLOC 11 lLOC 7 Comment 20 Lines 22 - - Function: QP::QXMutex::lock - Parameters: (uint_fast16_t const nTicks) - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 45 eLOC 41 lLOC 27 Comment 50 Lines 78 - - Function: QP::QXMutex::tryLock - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 - LOC 39 eLOC 34 lLOC 19 Comment 41 Lines 59 - - Function: QP::QXMutex::unlock - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 - LOC 56 eLOC 49 lLOC 25 Comment 57 Lines 95 - - Function: QP::QXSemaphore::init - Parameters: (uint_fast16_t const count, uint_fast16_t const max_count) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 6 eLOC 4 lLOC 4 Comment 18 Lines 7 - - Function: QP::QXSemaphore::wait - Parameters: (uint_fast16_t const nTicks) - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 28 eLOC 25 lLOC 17 Comment 36 Lines 41 - - Function: QP::QXSemaphore::tryWait - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 15 eLOC 12 lLOC 8 Comment 16 Lines 20 - - Function: QP::QXSemaphore::signal - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 6 Total 7 - LOC 29 eLOC 23 lLOC 14 Comment 26 Lines 39 - - Function: QP::QXThread::QXThread - Parameters: (QXThreadHandler const handler, uint_fast8_t const tickRate) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 3 eLOC 1 lLOC 1 Comment 17 Lines 3 - - Function: QP::QXThread::init - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 - - Function: QP::QXThread::dispatch - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 - - Function: QP::QXThread::start - Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t - const qLen, void * const stkSto, uint_fast16_t const stkSize - , QEvt const * const) - Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 - LOC 21 eLOC 18 lLOC 11 Comment 35 Lines 39 - - Function: QP::QXThread::post_ - Parameters: (QEvt const * const e, uint_fast16_t const margin) - Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 - LOC 79 eLOC 64 lLOC 44 Comment 65 Lines 111 - - Function: QP::QXThread::postLIFO - Parameters: (QEvt const * const) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 3 eLOC 2 lLOC 1 Comment 9 Lines 3 - - Function: QP::QXThread::queueGet - Parameters: (uint_fast16_t const nTicks) - Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 - LOC 61 eLOC 54 lLOC 34 Comment 53 Lines 88 - - Function: QP::QXThread::block_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 5 eLOC 4 lLOC 3 Comment 8 Lines 6 - - Function: QP::QXThread::unblock_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 - LOC 8 eLOC 5 lLOC 2 Comment 9 Lines 9 - - Function: QP::QXThread::teArm_ - Parameters: (enum_t const sig, uint_fast16_t const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 18 eLOC 14 lLOC 8 Comment 20 Lines 33 - - Function: QP::QXThread::teDisarm_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 11 eLOC 8 lLOC 5 Comment 10 Lines 14 - - Function: QP::QXThread::delay - Parameters: (uint_fast16_t const nTicks) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 20 eLOC 19 lLOC 13 Comment 17 Lines 34 - - Function: QP::QXThread::delayCancel - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 - - Total: Functions - LOC 2741 eLOC 2285 lLOC 1364 InCmp 344 CycloCmp 466 - Function Points FP(LOC) 46.7 FP(eLOC) 39.5 FP(lLOC) 23.8 - - ------------------------------------------------------------------------ - - ~~ Project Functional Analysis ~~ - - Total Functions .......: 177 Total Physical Lines ..: 3793 - Total LOC .............: 2741 Total Function Pts LOC : 46.7 - Total eLOC ............: 2285 Total Function Pts eLOC: 39.5 - Total lLOC.............: 1364 Total Function Pts lLOC: 23.8 - Total Cyclomatic Comp. : 466 Total Interface Comp. .: 344 - Total Parameters ......: 167 Total Return Points ...: 177 - Total Comment Lines ...: 2682 Total Blank Lines .....: 513 - ------ ----- ----- ------ ------ ----- - Avg Physical Lines ....: 21.43 - Avg LOC ...............: 15.49 Avg eLOC ..............: 12.91 - Avg lLOC ..............: 7.71 Avg Cyclomatic Comp. ..: 2.63 - Avg Interface Comp. ...: 1.94 Avg Parameters ........: 0.94 - Avg Return Points .....: 1.00 Avg Comment Lines .....: 15.15 - ------ ----- ----- ------ ------ ----- - Max LOC ...............: 117 - Max eLOC ..............: 100 Max lLOC ..............: 61 - Max Cyclomatic Comp. ..: 17 Max Interface Comp. ...: 7 - Max Parameters ........: 6 Max Return Points .....: 1 - Max Comment Lines .....: 111 Max Total Lines .......: 191 - ------ ----- ----- ------ ------ ----- - Min LOC ...............: 1 - Min eLOC ..............: 1 Min lLOC ..............: 0 - Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1 - Min Parameters ........: 0 Min Return Points .....: 1 - Min Comment Lines .....: 0 Min Total Lines .......: 1 - - ------------------------------------------------------------------------ - - ~~ File Summary ~~ - - C Source Files *.c ....: 0 C/C++ Include Files *.h: 18 - C++ Source Files *.c* .: 19 C++ Include Files *.h* : 0 - C# Source Files *.cs ..: 0 Java Source File *.jav*: 0 - Other File Count ......: 0 Total File Count ......: 37 - ________________________________________________________________________ - -@endcode -*/ +/** @page metrics Code Metrics + +@code + Standard Code Metrics for QP/C++ 5.9.7 + + Resource Standard Metrics (TM) for C, C++, C# and Java + Version 7.75 - mSquaredTechnologies.com + + License Type: Windows Single User License + Licensed To : Quantum Leaps, LLC + License No. : WS2975 License Date: Dec 15, 2013 + Build Date : Sep 2 2009 Run Date: Aug 23, 2017 + (C)1996-2009 M Squared Technologies LLC + ________________________________________________________________________ + + ~~ Function Metrics ~~ + ~~ Complexity Detail Analysis ~~ + + File: ..\include\qassert.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 49 eLOC 48 lLOC 3 Comment 240 Lines 309 + ________________________________________________________________________ + End of File: ..\include\qassert.h + + + File: ..\include\qep.h + ________________________________________________________________________ + + Inline Function: QP::QEvt::QEvt + Parameters: (QSignal const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 + + Inline Function: QP::QEvt::QEvt + Parameters: (QSignal const s, StaticEvt) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 + + Inline Function: QP::QEvt::~QEvt + Parameters: () + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 1 Lines 1 + + Inline Function: QP::QHsm::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Inline Function: QP::QHsm::state + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Inline Function: QP::QHsm::Q_HANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 + + Inline Function: QP::QHsm::Q_UNHANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 4 Lines 3 + + Inline Function: QP::QHsm::tran_ + Parameters: (QStateHandler const target) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QHsm::tran_hist_ + Parameters: (QStateHandler const hist) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QHsm::super_ + Parameters: (QStateHandler const superstate) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QHsm::qm_tran_ + Parameters: (QMTranActTable const * const tatbl) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 + + Inline Function: QP::QHsm::qm_tran_hist_ + Parameters: (QMState const * const hist, QMTranActTable const * const ta + tbl) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 3 lLOC 3 Comment 1 Lines 5 + + Inline Function: QP::QHsm::qm_tran_init_ + Parameters: (QMTranActTable const * const tatbl) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QHsm::qm_tran_ep_ + Parameters: (QMTranActTable const * const tatbl) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 + + Inline Function: QP::QHsm::qm_tran_xp_ + Parameters: (QActionHandler const xp, QMTranActTable const *const tatbl) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 3 lLOC 3 Comment 2 Lines 5 + + Inline Function: QP::QHsm::qm_entry_ + Parameters: (QMState const * const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QHsm::qm_exit_ + Parameters: (QMState const * const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QHsm::qm_super_sub_ + Parameters: (QMState const * const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 + + Inline Function: QP::QHsm::QM_HANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Inline Function: QP::QHsm::QM_UNHANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Inline Function: QP::QHsm::QM_SUPER + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Inline Function: QP::QMsm::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Inline Function: QP::QMsm::stateObj + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QEP::getVersion + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 259 eLOC 227 lLOC 129 Comment 318 Lines 666 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 24 + Total Function LOC.....: 75 Total Function Pts LOC : 0.0 + Total Function eLOC....: 54 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 34 Total Function Pts lLOC: 0.0 + Total Function Params .: 18 Total Function Return .: 24 + Total Cyclo Complexity : 24 Total Function Complex.: 66 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 5 Average Function LOC ..: 3.13 + Max Function eLOC .....: 3 Average Function eLOC .: 2.25 + Max Function lLOC .....: 3 Average Function lLOC .: 1.42 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 0.75 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 1.75 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 4 Avg Total Complexity ..: 2.75 + ________________________________________________________________________ + End of File: ..\include\qep.h + + + File: ..\include\qequeue.h + ________________________________________________________________________ + + Inline Function: QP::QEQueue::getNFree + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 + + Inline Function: QP::QEQueue::getNMin + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 11 Lines 3 + + Inline Function: QP::QEQueue::isEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 49 eLOC 44 lLOC 25 Comment 195 Lines 272 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 3 + Total Function LOC.....: 9 Total Function Pts LOC : 0.0 + Total Function eLOC....: 6 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 3 Total Function Pts lLOC: 0.0 + Total Function Params .: 0 Total Function Return .: 3 + Total Cyclo Complexity : 3 Total Function Complex.: 6 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 3 Average Function LOC ..: 3.00 + Max Function eLOC .....: 2 Average Function eLOC .: 2.00 + Max Function lLOC .....: 1 Average Function lLOC .: 1.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 0 Avg Function Parameters: 0.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 1 Avg Interface Complex. : 1.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 + ________________________________________________________________________ + End of File: ..\include\qequeue.h + + + File: ..\include\qf.h + ________________________________________________________________________ + + Inline Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + ) + Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 + LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 + + Inline Function: QP::QActive::getPrio + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QActive::setPrio + Parameters: (uint_fast8_t const prio) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QActive::getOsObject + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Inline Function: QP::QActive::getThread + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Inline Function: QP::QMActive::stateObj + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QTimeEvt::QTimeEvt + Parameters: (enum_t const sgnl) Non-ANSI Parameter Construct Defined By + Compiler Directive + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 5 lLOC 3 Comment 7 Lines 8 + + Inline Function: QP::QTimeEvt::postIn + Parameters: (QActive * const act, QTimeEvtCtr const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QTimeEvt::postEvery + Parameters: (QActive * const act, QTimeEvtCtr const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QTimeEvt::toActive + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Inline Function: QP::QTimeEvt::toTimeEvt + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Inline Function: QP::QF::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QTicker::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 0 Lines 1 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 283 eLOC 267 lLOC 118 Comment 490 Lines 878 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 13 + Total Function LOC.....: 36 Total Function Pts LOC : 0.0 + Total Function eLOC....: 26 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 17 Total Function Pts lLOC: 0.0 + Total Function Params .: 13 Total Function Return .: 13 + Total Cyclo Complexity : 13 Total Function Complex.: 39 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 7 Average Function LOC ..: 2.77 + Max Function eLOC .....: 5 Average Function eLOC .: 2.00 + Max Function lLOC .....: 3 Average Function lLOC .: 1.31 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 5 Avg Function Parameters: 1.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 6 Avg Interface Complex. : 2.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 7 Avg Total Complexity ..: 3.00 + ________________________________________________________________________ + End of File: ..\include\qf.h + + + File: ..\include\qk.h + ________________________________________________________________________ + + Inline Function: QP::QK::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 71 eLOC 66 lLOC 22 Comment 104 Lines 191 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 3 Total Function Pts LOC : 0.0 + Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 + Total Function Params .: 0 Total Function Return .: 1 + Total Cyclo Complexity : 1 Total Function Complex.: 2 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 3 Average Function LOC ..: 3.00 + Max Function eLOC .....: 2 Average Function eLOC .: 2.00 + Max Function lLOC .....: 1 Average Function lLOC .: 1.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 0 Avg Function Parameters: 0.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 1 Avg Interface Complex. : 1.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 + ________________________________________________________________________ + End of File: ..\include\qk.h + + + File: ..\include\qmpool.h + ________________________________________________________________________ + + Inline Function: QP::QMPool::getBlockSize + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 54 eLOC 51 lLOC 23 Comment 94 Lines 166 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 3 Total Function Pts LOC : 0.0 + Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 + Total Function Params .: 0 Total Function Return .: 1 + Total Cyclo Complexity : 1 Total Function Complex.: 2 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 3 Average Function LOC ..: 3.00 + Max Function eLOC .....: 2 Average Function eLOC .: 2.00 + Max Function lLOC .....: 1 Average Function lLOC .: 1.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 0 Avg Function Parameters: 0.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 1 Avg Interface Complex. : 1.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 + ________________________________________________________________________ + End of File: ..\include\qmpool.h + + + File: ..\include\qp_port.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 4 eLOC 4 lLOC 0 Comment 38 Lines 44 + ________________________________________________________________________ + End of File: ..\include\qp_port.h + + + File: ..\include\qpcpp.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 40 eLOC 39 lLOC 1 Comment 89 Lines 144 + ________________________________________________________________________ + End of File: ..\include\qpcpp.h + + + File: ..\include\qpset.h + ________________________________________________________________________ + + Inline Function: QP::QF_LOG2 + Parameters: (uint32_t const x) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 25 eLOC 18 lLOC 11 Comment 8 Lines 26 + + Inline Function: QP::QPSet::setEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QPSet::isEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QPSet::notEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QPSet::hasElement + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 + + Inline Function: QP::QPSet::insert + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 + + Inline Function: QP::QPSet::remove + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 + + Inline Function: QP::QPSet::findMax + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QPSet::setEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Inline Function: QP::QPSet::isEmpty + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Inlined if-else ( ? : ) : 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 + + Inline Function: QP::QPSet::notEmpty + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Inlined if-else ( ? : ) : 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 + + Inline Function: QP::QPSet::hasElement + Parameters: (uint_fast8_t const n) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Inlined if-else ( ? : ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 9 eLOC 8 lLOC 1 Comment 1 Lines 9 + + Inline Function: QP::QPSet::insert + Parameters: (uint_fast8_t const n) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 + + Inline Function: QP::QPSet::remove + Parameters: (uint_fast8_t const n) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 + + Inline Function: QP::QPSet::findMax + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Inlined if-else ( ? : ) : 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 120 eLOC 92 lLOC 33 Comment 88 Lines 234 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 15 + Total Function LOC.....: 98 Total Function Pts LOC : 0.0 + Total Function eLOC....: 73 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 28 Total Function Pts lLOC: 0.0 + Total Function Params .: 7 Total Function Return .: 15 + Total Cyclo Complexity : 24 Total Function Complex.: 46 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 25 Average Function LOC ..: 6.53 + Max Function eLOC .....: 18 Average Function eLOC .: 4.87 + Max Function lLOC .....: 11 Average Function lLOC .: 1.87 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 1 Avg Function Parameters: 0.47 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 2 Avg Interface Complex. : 1.47 + Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 1.60 + Max Total Complexity ..: 6 Avg Total Complexity ..: 3.07 + ________________________________________________________________________ + End of File: ..\include\qpset.h + + + File: ..\include\qs.h + ________________________________________________________________________ + + Inline Function: QP::QS::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QS::rxPut + Parameters: (uint8_t const b) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 14 eLOC 9 lLOC 4 Comment 1 Lines 14 + + Inline Function: QP::QS::force_cast + Parameters: (T_IN in) + Template: template + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 6 lLOC 4 Comment 2 Lines 7 + + + NOTICE: The end of the source file has been reached where the + open brace count { 31 != 29 } close brace count + This is an indication of non-compilable code within the source + file. RSM processes all source code including code wrapped + with preprocessor directives. Accurate metrics requires that + all code present in this file must be compilable. + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 517 eLOC 500 lLOC 123 Comment 603 Lines 1124 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 3 + Total Function LOC.....: 24 Total Function Pts LOC : 0.0 + Total Function eLOC....: 17 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 9 Total Function Pts lLOC: 0.0 + Total Function Params .: 2 Total Function Return .: 3 + Total Cyclo Complexity : 6 Total Function Complex.: 11 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 14 Average Function LOC ..: 8.00 + Max Function eLOC .....: 9 Average Function eLOC .: 5.67 + Max Function lLOC .....: 4 Average Function lLOC .: 3.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 1 Avg Function Parameters: 0.67 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 2 Avg Interface Complex. : 1.67 + Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 2.00 + Max Total Complexity ..: 6 Avg Total Complexity ..: 3.67 + ________________________________________________________________________ + End of File: ..\include\qs.h + + + File: ..\include\qs_dummy.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 72 eLOC 72 lLOC 0 Comment 41 Lines 123 + ________________________________________________________________________ + End of File: ..\include\qs_dummy.h + + + File: ..\include\qv.h + ________________________________________________________________________ + + Inline Function: QP::QV::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 36 eLOC 32 lLOC 4 Comment 80 Lines 126 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 3 Total Function Pts LOC : 0.0 + Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 + Total Function Params .: 0 Total Function Return .: 1 + Total Cyclo Complexity : 1 Total Function Complex.: 2 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 3 Average Function LOC ..: 3.00 + Max Function eLOC .....: 2 Average Function eLOC .: 2.00 + Max Function lLOC .....: 1 Average Function lLOC .: 1.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 0 Avg Function Parameters: 0.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 1 Avg Interface Complex. : 1.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 + ________________________________________________________________________ + End of File: ..\include\qv.h + + + File: ..\include\qxk.h + ________________________________________________________________________ + + Inline Function: QP::QXK::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 79 eLOC 73 lLOC 25 Comment 122 Lines 218 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 3 Total Function Pts LOC : 0.0 + Total Function eLOC....: 2 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 1 Total Function Pts lLOC: 0.0 + Total Function Params .: 0 Total Function Return .: 1 + Total Cyclo Complexity : 1 Total Function Complex.: 2 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 3 Average Function LOC ..: 3.00 + Max Function eLOC .....: 2 Average Function eLOC .: 2.00 + Max Function lLOC .....: 1 Average Function lLOC .: 1.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 0 Avg Function Parameters: 0.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 1 Avg Interface Complex. : 1.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 2 Avg Total Complexity ..: 2.00 + ________________________________________________________________________ + End of File: ..\include\qxk.h + + + File: ..\include\qxthread.h + ________________________________________________________________________ + + Inline Function: QP::QXThread::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Inline Function: QP::QXThread::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + ) + Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 + LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 70 eLOC 64 lLOC 38 Comment 115 Lines 212 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 2 + Total Function LOC.....: 5 Total Function Pts LOC : 0.0 + Total Function eLOC....: 3 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 2 Total Function Pts lLOC: 0.0 + Total Function Params .: 5 Total Function Return .: 2 + Total Cyclo Complexity : 2 Total Function Complex.: 9 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 4 Average Function LOC ..: 2.50 + Max Function eLOC .....: 2 Average Function eLOC .: 1.50 + Max Function lLOC .....: 1 Average Function lLOC .: 1.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 5 Avg Function Parameters: 2.50 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 6 Avg Interface Complex. : 3.50 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 7 Avg Total Complexity ..: 4.50 + ________________________________________________________________________ + End of File: ..\include\qxthread.h + + + File: ..\include\stdint_c.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 33 eLOC 33 lLOC 0 Comment 42 Lines 86 + ________________________________________________________________________ + End of File: ..\include\stdint_c.h + + + File: ..\src\qf_pkg.h + ________________________________________________________________________ + + Inline Function: QP::QF_EVT_POOL_ID_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Inline Function: QP::QF_EVT_REF_CTR_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Inline Function: QP::QF_EVT_REF_CTR_INC_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Inline Function: QP::QF_EVT_REF_CTR_DEC_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 71 eLOC 67 lLOC 11 Comment 109 Lines 205 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 8 Total Function Pts LOC : 0.0 + Total Function eLOC....: 6 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 4 Total Function Pts lLOC: 0.0 + Total Function Params .: 4 Total Function Return .: 4 + Total Cyclo Complexity : 4 Total Function Complex.: 12 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 3 Average Function LOC ..: 2.00 + Max Function eLOC .....: 2 Average Function eLOC .: 1.50 + Max Function lLOC .....: 1 Average Function lLOC .: 1.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 1 Avg Function Parameters: 1.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 2 Avg Interface Complex. : 2.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 3 Avg Total Complexity ..: 3.00 + ________________________________________________________________________ + End of File: ..\src\qf_pkg.h + + + File: ..\src\qs_pkg.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 28 eLOC 25 lLOC 10 Comment 59 Lines 98 + ________________________________________________________________________ + End of File: ..\src\qs_pkg.h + + + File: ..\src\qxk_pkg.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 16 eLOC 13 lLOC 3 Comment 45 Lines 67 + ________________________________________________________________________ + End of File: ..\src\qxk_pkg.h + + + File: ..\src\qf\qep_hsm.cpp + ________________________________________________________________________ + + Function: QP::QHsm::QHsm + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 8 Lines 4 + + Function: QP::QHsm::~QHsm + Parameters: () + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 2 eLOC 1 lLOC 0 Comment 4 Lines 2 + + Function: QP::QHsm::init + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 3 + Conditional if / else if: 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 + LOC 49 eLOC 46 lLOC 30 Comment 30 Lines 67 + + Function: QP::QHsm::top + Parameters: (void * const, QEvt const * const) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 3 eLOC 2 lLOC 1 Comment 15 Lines 3 + + Function: QP::QHsm::dispatch + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 4 + Loops for / foreach : 2 + Conditional if / else if: 5 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 13 Total 15 + LOC 107 eLOC 96 lLOC 61 Comment 65 Lines 147 + + Function: QP::QHsm::hsm_tran + Parameters: (QStateHandler (&path)[MAX_NEST_DEPTH_]) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 4 + Conditional if / else if: 10 + Complexity Param 1 Return 1 Cyclo Vg 15 Total 17 + LOC 99 eLOC 79 lLOC 48 Comment 61 Lines 140 + + Function: QP::QHsm::isIn + Parameters: (QStateHandler const s) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 16 eLOC 13 lLOC 9 Comment 21 Lines 23 + + Function: QP::QHsm::childState + Parameters: (QStateHandler const parent) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 19 eLOC 16 lLOC 12 Comment 27 Lines 25 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 348 eLOC 302 lLOC 169 Comment 289 Lines 611 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 8 + Total Function LOC.....: 299 Total Function Pts LOC : 6.6 + Total Function eLOC....: 256 Total Function Pts eLOC: 5.7 + Total Function lLOC....: 163 Total Function Pts lLOC: 3.2 + Total Function Params .: 8 Total Function Return .: 8 + Total Cyclo Complexity : 43 Total Function Complex.: 59 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 107 Average Function LOC ..: 37.38 + Max Function eLOC .....: 96 Average Function eLOC .: 32.00 + Max Function lLOC .....: 61 Average Function lLOC .: 20.38 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.00 + Max Cyclomatic Complex.: 15 Avg Cyclomatic Complex.: 5.38 + Max Total Complexity ..: 17 Avg Total Complexity ..: 7.38 + ________________________________________________________________________ + End of File: ..\src\qf\qep_hsm.cpp + + + File: ..\src\qf\qep_msm.cpp + ________________________________________________________________________ + + Function: QP::QMsm::QMsm + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 2 lLOC 2 Comment 13 Lines 4 + + Function: QP::QMsm::init + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 21 eLOC 20 lLOC 12 Comment 23 Lines 33 + + Function: QP::QMsm::dispatch + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 2 + Conditional if / else if: 13 + Complexity Param 1 Return 1 Cyclo Vg 16 Total 18 + LOC 117 eLOC 100 lLOC 61 Comment 73 Lines 159 + + Function: QP::QMsm::execTatbl_ + Parameters: (QMTranActTable const * const tatbl) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 6 + Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 + LOC 56 eLOC 46 lLOC 21 Comment 31 Lines 67 + + Function: QP::QMsm::exitToTranSource_ + Parameters: (QMState const *s, QMState const * const ts) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 2 + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 18 eLOC 13 lLOC 6 Comment 17 Lines 24 + + Function: QP::QMsm::enterHistory_ + Parameters: (QMState const * const hist) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 2 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 + LOC 40 eLOC 33 lLOC 21 Comment 22 Lines 48 + + Function: QP::QMsm::isInState + Parameters: (QMState const * const st) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 13 eLOC 9 lLOC 5 Comment 15 Lines 14 + + Function: QP::QMsm::childStateObj + Parameters: (QMState const * const parent) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 19 eLOC 14 lLOC 9 Comment 17 Lines 23 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 312 eLOC 259 lLOC 139 Comment 262 Lines 544 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 8 + Total Function LOC.....: 288 Total Function Pts LOC : 5.9 + Total Function eLOC....: 237 Total Function Pts eLOC: 4.9 + Total Function lLOC....: 137 Total Function Pts lLOC: 2.6 + Total Function Params .: 9 Total Function Return .: 8 + Total Cyclo Complexity : 44 Total Function Complex.: 61 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 117 Average Function LOC ..: 36.00 + Max Function eLOC .....: 100 Average Function eLOC .: 29.63 + Max Function lLOC .....: 61 Average Function lLOC .: 17.13 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.13 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.13 + Max Cyclomatic Complex.: 16 Avg Cyclomatic Complex.: 5.50 + Max Total Complexity ..: 18 Avg Total Complexity ..: 7.63 + ________________________________________________________________________ + End of File: ..\src\qf\qep_msm.cpp + + + File: ..\src\qf\qf_act.cpp + ________________________________________________________________________ + + Function: QP::QF::add_ + Parameters: (QActive * const a) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 15 eLOC 14 lLOC 8 Comment 17 Lines 20 + + Function: QP::QF::remove_ + Parameters: (QActive * const a) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 16 eLOC 15 lLOC 9 Comment 18 Lines 21 + + Function: QP::QF::bzero + Parameters: (void * const start, uint_fast16_t len) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 8 eLOC 6 lLOC 4 Comment 13 Lines 8 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 147 eLOC 141 lLOC 23 Comment 105 Lines 254 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 3 + Total Function LOC.....: 39 Total Function Pts LOC : 2.8 + Total Function eLOC....: 35 Total Function Pts eLOC: 2.7 + Total Function lLOC....: 21 Total Function Pts lLOC: 0.4 + Total Function Params .: 4 Total Function Return .: 3 + Total Cyclo Complexity : 8 Total Function Complex.: 15 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 16 Average Function LOC ..: 13.00 + Max Function eLOC .....: 15 Average Function eLOC .: 11.67 + Max Function lLOC .....: 9 Average Function lLOC .: 7.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.33 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.33 + Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 2.67 + Max Total Complexity ..: 5 Avg Total Complexity ..: 5.00 + ________________________________________________________________________ + End of File: ..\src\qf\qf_act.cpp + + + File: ..\src\qf\qf_actq.cpp + ________________________________________________________________________ + + Function: QP::QActive::post_ + Parameters: (QEvt const * const e, uint_fast16_t const margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 5 + Logical or ( || ) : 1 + Logical and ( && ) : 1 + Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 + LOC 59 eLOC 49 lLOC 34 Comment 71 Lines 81 + + Function: QP::QActive::postLIFO + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 36 eLOC 30 lLOC 20 Comment 32 Lines 48 + + Function: QP::QActive::get_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 + LOC 37 eLOC 33 lLOC 21 Comment 27 Lines 48 + + Function: QP::QF::getQueueMin + Parameters: (uint_fast8_t const prio) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 5 Comment 17 Lines 13 + + Function: QP::QTicker::QTicker + Parameters: (uint_fast8_t const tickRate) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 1 lLOC 1 Comment 2 Lines 4 + + Function: QP::QTicker::init + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QTicker::dispatch + Parameters: (QEvt const * const) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 8 lLOC 6 Comment 4 Lines 11 + + Function: QP::QTicker::post_ + Parameters: (QEvt const * const , uint_fast16_t const /*margin*/) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 31 eLOC 28 lLOC 16 Comment 16 Lines 38 + + Function: QP::QTicker::postLIFO + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 218 eLOC 187 lLOC 105 Comment 225 Lines 407 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 9 + Total Function LOC.....: 192 Total Function Pts LOC : 4.1 + Total Function eLOC....: 162 Total Function Pts eLOC: 3.5 + Total Function lLOC....: 105 Total Function Pts lLOC: 2.0 + Total Function Params .: 10 Total Function Return .: 9 + Total Cyclo Complexity : 25 Total Function Complex.: 44 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 59 Average Function LOC ..: 21.33 + Max Function eLOC .....: 49 Average Function eLOC .: 18.00 + Max Function lLOC .....: 34 Average Function lLOC .: 11.67 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.11 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.11 + Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 2.78 + Max Total Complexity ..: 11 Avg Total Complexity ..: 4.89 + ________________________________________________________________________ + End of File: ..\src\qf\qf_actq.cpp + + + File: ..\src\qf\qf_defer.cpp + ________________________________________________________________________ + + Function: QP::QActive::defer + Parameters: (QEQueue * const eq, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 3 eLOC 2 lLOC 1 Comment 22 Lines 3 + + Function: QP::QActive::recall + Parameters: (QEQueue * const eq) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 15 eLOC 12 lLOC 8 Comment 30 Lines 27 + + Function: QP::QActive::flushDeferred + Parameters: (QEQueue * const eq) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 8 lLOC 5 Comment 15 Lines 11 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 36 eLOC 28 lLOC 14 Comment 109 Lines 145 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 3 + Total Function LOC.....: 29 Total Function Pts LOC : 0.7 + Total Function eLOC....: 22 Total Function Pts eLOC: 0.5 + Total Function lLOC....: 14 Total Function Pts lLOC: 0.3 + Total Function Params .: 4 Total Function Return .: 3 + Total Cyclo Complexity : 6 Total Function Complex.: 13 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 15 Average Function LOC ..: 9.67 + Max Function eLOC .....: 12 Average Function eLOC .: 7.33 + Max Function lLOC .....: 8 Average Function lLOC .: 4.67 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.33 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.33 + Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 2.00 + Max Total Complexity ..: 5 Avg Total Complexity ..: 4.33 + ________________________________________________________________________ + End of File: ..\src\qf\qf_defer.cpp + + + File: ..\src\qf\qf_dyn.cpp + ________________________________________________________________________ + + Function: QP::QF::poolInit + Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa + st16_t const evtSize) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical or ( || ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 10 eLOC 8 lLOC 4 Comment 36 Lines 13 + + Function: QP::QF::newX_ + Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en + um_t const sig) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 2 + Inlined if-else ( ? : ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 + LOC 30 eLOC 24 lLOC 14 Comment 35 Lines 42 + + Function: QP::QF::gc + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 32 eLOC 28 lLOC 14 Comment 39 Lines 47 + + Function: QP::QF::newRef_ + Parameters: (QEvt const * const e, QEvt const * const evtRef) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 10 eLOC 8 lLOC 5 Comment 15 Lines 14 + + Function: QP::QF::poolGetMaxBlockSize + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 4 eLOC 3 lLOC 1 Comment 4 Lines 4 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 104 eLOC 88 lLOC 40 Comment 177 Lines 281 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 5 + Total Function LOC.....: 86 Total Function Pts LOC : 2.0 + Total Function eLOC....: 71 Total Function Pts eLOC: 1.7 + Total Function lLOC....: 38 Total Function Pts lLOC: 0.8 + Total Function Params .: 9 Total Function Return .: 5 + Total Cyclo Complexity : 13 Total Function Complex.: 27 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 32 Average Function LOC ..: 17.20 + Max Function eLOC .....: 28 Average Function eLOC .: 14.20 + Max Function lLOC .....: 14 Average Function lLOC .: 7.60 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 1.80 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 2.80 + Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.60 + Max Total Complexity ..: 9 Avg Total Complexity ..: 5.40 + ________________________________________________________________________ + End of File: ..\src\qf\qf_dyn.cpp + + + File: ..\src\qf\qf_mem.cpp + ________________________________________________________________________ + + Function: QP::QMPool::QMPool + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 9 Lines 1 + + Function: QP::QMPool::init + Parameters: (void * const poolSto, uint_fast32_t poolSize, uint_fast16_t + blockSize) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 2 + Logical and ( && ) : 2 + Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 + LOC 35 eLOC 31 lLOC 22 Comment 51 Lines 58 + + Function: QP::QMPool::put + Parameters: (void * const b) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 17 eLOC 16 lLOC 9 Comment 23 Lines 24 + + Function: QP::QMPool::get + Parameters: (uint_fast16_t const margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 41 eLOC 35 lLOC 22 Comment 46 Lines 61 + + Function: QP::QF::getPoolMin + Parameters: (uint_fast8_t const poolId) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 5 Comment 13 Lines 14 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 126 eLOC 113 lLOC 58 Comment 187 Lines 309 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 5 + Total Function LOC.....: 104 Total Function Pts LOC : 2.4 + Total Function eLOC....: 92 Total Function Pts eLOC: 2.1 + Total Function lLOC....: 58 Total Function Pts lLOC: 1.1 + Total Function Params .: 6 Total Function Return .: 5 + Total Cyclo Complexity : 14 Total Function Complex.: 25 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 41 Average Function LOC ..: 20.80 + Max Function eLOC .....: 35 Average Function eLOC .: 18.40 + Max Function lLOC .....: 22 Average Function lLOC .: 11.60 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 1.20 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 2.20 + Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.80 + Max Total Complexity ..: 9 Avg Total Complexity ..: 5.00 + ________________________________________________________________________ + End of File: ..\src\qf\qf_mem.cpp + + + File: ..\src\qf\qf_ps.cpp + ________________________________________________________________________ + + Function: QP::QF::psInit + Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 7 eLOC 6 lLOC 3 Comment 30 Lines 11 + + Function: QP::QF::publish_ + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Loops for / foreach : 1 + Conditional if / else if: 4 + Logical and ( && ) : 10 + Complexity Param 1 Return 1 Cyclo Vg 17 Total 19 + LOC 95 eLOC 84 lLOC 44 Comment 111 Lines 191 + + + NOTICE: The end of the source file has been reached where the + open brace count { 14 != 13 } close brace count + This is an indication of non-compilable code within the source + file. RSM processes all source code including code wrapped + with preprocessor directives. Accurate metrics requires that + all code present in this file must be compilable. + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 116 eLOC 104 lLOC 49 Comment 189 Lines 306 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 2 + Total Function LOC.....: 102 Total Function Pts LOC : 2.2 + Total Function eLOC....: 90 Total Function Pts eLOC: 2.0 + Total Function lLOC....: 47 Total Function Pts lLOC: 0.9 + Total Function Params .: 3 Total Function Return .: 2 + Total Cyclo Complexity : 18 Total Function Complex.: 23 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 95 Average Function LOC ..: 51.00 + Max Function eLOC .....: 84 Average Function eLOC .: 45.00 + Max Function lLOC .....: 44 Average Function lLOC .: 23.50 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.50 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.50 + Max Cyclomatic Complex.: 17 Avg Cyclomatic Complex.: 9.00 + Max Total Complexity ..: 19 Avg Total Complexity ..: 11.50 + ________________________________________________________________________ + End of File: ..\src\qf\qf_ps.cpp + + + File: ..\src\qf\qf_qact.cpp + ________________________________________________________________________ + + Function: QP::QActive::QActive + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 9 eLOC 7 lLOC 3 Comment 1 Lines 11 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 16 eLOC 13 lLOC 3 Comment 40 Lines 59 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 9 Total Function Pts LOC : 0.3 + Total Function eLOC....: 7 Total Function Pts eLOC: 0.2 + Total Function lLOC....: 3 Total Function Pts lLOC: 0.1 + Total Function Params .: 1 Total Function Return .: 1 + Total Cyclo Complexity : 1 Total Function Complex.: 3 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 9 Average Function LOC ..: 9.00 + Max Function eLOC .....: 7 Average Function eLOC .: 7.00 + Max Function lLOC .....: 3 Average Function lLOC .: 3.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 1 Avg Function Parameters: 1.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 2 Avg Interface Complex. : 2.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 3 Avg Total Complexity ..: 3.00 + ________________________________________________________________________ + End of File: ..\src\qf\qf_qact.cpp + + + File: ..\src\qf\qf_qeq.cpp + ________________________________________________________________________ + + Function: QP::QEQueue::QEQueue + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 4 Lines 1 + + Function: QP::QEQueue::init + Parameters: (QEvt const *qSto[], uint_fast16_t const qLen) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 17 eLOC 15 lLOC 9 Comment 19 Lines 18 + + Function: QP::QEQueue::post + Parameters: (QEvt const * const e, uint_fast16_t const margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 5 + Logical or ( || ) : 1 + Logical and ( && ) : 1 + Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 + LOC 54 eLOC 45 lLOC 29 Comment 53 Lines 73 + + Function: QP::QEQueue::postLIFO + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 33 eLOC 28 lLOC 19 Comment 36 Lines 44 + + Function: QP::QEQueue::get + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 + LOC 39 eLOC 34 lLOC 21 Comment 31 Lines 48 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 164 eLOC 142 lLOC 78 Comment 188 Lines 322 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 5 + Total Function LOC.....: 144 Total Function Pts LOC : 3.1 + Total Function eLOC....: 123 Total Function Pts eLOC: 2.7 + Total Function lLOC....: 78 Total Function Pts lLOC: 1.5 + Total Function Params .: 5 Total Function Return .: 5 + Total Cyclo Complexity : 20 Total Function Complex.: 30 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 54 Average Function LOC ..: 28.80 + Max Function eLOC .....: 45 Average Function eLOC .: 24.60 + Max Function lLOC .....: 29 Average Function lLOC .: 15.60 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.00 + Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 4.00 + Max Total Complexity ..: 11 Avg Total Complexity ..: 6.00 + ________________________________________________________________________ + End of File: ..\src\qf\qf_qeq.cpp + + + File: ..\src\qf\qf_qmact.cpp + ________________________________________________________________________ + + Function: QP::QMActive::QMActive + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 2 lLOC 2 Comment 1 Lines 4 + + Function: QP::QMActive::init + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::dispatch + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::isInState + Parameters: (QMState const * const st) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::childStateObj + Parameters: (QMState const * const parent) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 29 eLOC 21 lLOC 7 Comment 53 Lines 86 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 6 + Total Function LOC.....: 19 Total Function Pts LOC : 0.5 + Total Function eLOC....: 12 Total Function Pts eLOC: 0.4 + Total Function lLOC....: 7 Total Function Pts lLOC: 0.1 + Total Function Params .: 5 Total Function Return .: 6 + Total Cyclo Complexity : 6 Total Function Complex.: 17 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 4 Average Function LOC ..: 3.17 + Max Function eLOC .....: 2 Average Function eLOC .: 2.00 + Max Function lLOC .....: 2 Average Function lLOC .: 1.17 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 1 Avg Function Parameters: 0.83 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 2 Avg Interface Complex. : 1.83 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 3 Avg Total Complexity ..: 2.83 + ________________________________________________________________________ + End of File: ..\src\qf\qf_qmact.cpp + + + File: ..\src\qf\qf_time.cpp + ________________________________________________________________________ + + Function: QP::QF::tickX_ + Parameters: (uint_fast8_t const tickRate) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 5 + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 66 eLOC 54 lLOC 36 Comment 52 Lines 95 + + Function: QP::QF::noTimeEvtsActiveX + Parameters: (uint_fast8_t const tickRate) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 14 eLOC 10 lLOC 6 Comment 12 Lines 16 + + Function: QP::QTimeEvt::QTimeEvt + Parameters: (QActive * const act, enum_t const sgnl, uint_fast8_t const + tickRate) Defined By Compiler Directive + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 9 eLOC 7 lLOC 4 Comment 22 Lines 22 + + Function: QP::QTimeEvt::QTimeEvt + Parameters: () Defined By Compiler Directive + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 5 lLOC 3 Comment 12 Lines 18 + + Function: QP::QTimeEvt::armX + Parameters: (QTimeEvtCtr const nTicks, QTimeEvtCtr const interval) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 4 + Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 + LOC 28 eLOC 26 lLOC 16 Comment 48 Lines 50 + + Function: QP::QTimeEvt::disarm + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 30 eLOC 27 lLOC 17 Comment 27 Lines 38 + + Function: QP::QTimeEvt::rearm + Parameters: (QTimeEvtCtr const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Logical and ( && ) : 3 + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 42 eLOC 35 lLOC 20 Comment 49 Lines 68 + + Function: QP::QTimeEvt::ctr + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 15 eLOC 14 lLOC 10 Comment 16 Lines 18 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 248 eLOC 214 lLOC 113 Comment 301 Lines 537 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 8 + Total Function LOC.....: 211 Total Function Pts LOC : 4.7 + Total Function eLOC....: 178 Total Function Pts eLOC: 4.0 + Total Function lLOC....: 112 Total Function Pts lLOC: 2.1 + Total Function Params .: 9 Total Function Return .: 8 + Total Cyclo Complexity : 29 Total Function Complex.: 46 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 66 Average Function LOC ..: 26.38 + Max Function eLOC .....: 54 Average Function eLOC .: 22.25 + Max Function lLOC .....: 36 Average Function lLOC .: 14.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 1.13 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 2.13 + Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 3.63 + Max Total Complexity ..: 9 Avg Total Complexity ..: 5.75 + ________________________________________________________________________ + End of File: ..\src\qf\qf_time.cpp + + + File: ..\src\qv\qv.cpp + ________________________________________________________________________ + + Function: QP::QF::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 + + Function: QP::QF::run + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 3 + Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 + LOC 47 eLOC 41 lLOC 21 Comment 44 Lines 73 + + Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const, QEvt c + onst * const ie) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 2 + Complexity Param 6 Return 1 Cyclo Vg 3 Total 10 + LOC 10 eLOC 8 lLOC 6 Comment 26 Lines 16 + + Function: QP::QActive::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 7 eLOC 6 lLOC 4 Comment 14 Lines 8 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 101 eLOC 88 lLOC 40 Comment 163 Lines 259 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 67 Total Function Pts LOC : 1.9 + Total Function eLOC....: 57 Total Function Pts eLOC: 1.7 + Total Function lLOC....: 32 Total Function Pts lLOC: 0.8 + Total Function Params .: 6 Total Function Return .: 4 + Total Cyclo Complexity : 10 Total Function Complex.: 20 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 47 Average Function LOC ..: 16.75 + Max Function eLOC .....: 41 Average Function eLOC .: 14.25 + Max Function lLOC .....: 21 Average Function lLOC .: 8.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 6 Avg Function Parameters: 1.50 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 7 Avg Interface Complex. : 2.50 + Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.50 + Max Total Complexity ..: 10 Avg Total Complexity ..: 5.00 + ________________________________________________________________________ + End of File: ..\src\qv\qv.cpp + + + File: ..\src\qk\qk.cpp + ________________________________________________________________________ + + Function: QP::QF::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 14 eLOC 13 lLOC 9 Comment 14 Lines 17 + + Function: QP::QF::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 + + Function: QP::initial_events + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QP::QF::run + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 14 Lines 14 + + Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const, QEvt c + onst * const ie) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 3 + Complexity Param 6 Return 1 Cyclo Vg 5 Total 12 + LOC 17 eLOC 14 lLOC 9 Comment 28 Lines 25 + + Function: QP::QActive::stop + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 + + Function: QP::QK::schedLock + Parameters: (uint_fast8_t const ceiling) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 23 eLOC 20 lLOC 12 Comment 32 Lines 33 + + Function: QP::QK::schedUnlock + Parameters: (QSchedStatus const stat) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 + + Function: QK_activate_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 5 + Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 + LOC 62 eLOC 54 lLOC 28 Comment 48 Lines 89 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 210 eLOC 178 lLOC 92 Comment 269 Lines 466 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 9 + Total Function LOC.....: 171 Total Function Pts LOC : 4.0 + Total Function eLOC....: 146 Total Function Pts eLOC: 3.4 + Total Function lLOC....: 84 Total Function Pts lLOC: 1.7 + Total Function Params .: 8 Total Function Return .: 9 + Total Cyclo Complexity : 26 Total Function Complex.: 43 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 62 Average Function LOC ..: 19.00 + Max Function eLOC .....: 54 Average Function eLOC .: 16.22 + Max Function lLOC .....: 28 Average Function lLOC .: 9.33 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 6 Avg Function Parameters: 0.89 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 7 Avg Interface Complex. : 1.89 + Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 2.89 + Max Total Complexity ..: 12 Avg Total Complexity ..: 4.78 + ________________________________________________________________________ + End of File: ..\src\qk\qk.cpp + + + File: ..\src\qk\qk_mutex.cpp + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 0 eLOC 0 lLOC 0 Comment 38 Lines 38 + ________________________________________________________________________ + End of File: ..\src\qk\qk_mutex.cpp + + + File: ..\src\qxk\qxk.cpp + ________________________________________________________________________ + + Inline Function: QP::QXKIdleThread::QXKIdleThread + Parameters: () + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1 + + Function: QP::QF::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 16 eLOC 15 lLOC 12 Comment 15 Lines 23 + + Function: QP::QF::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 + + Function: QP::initial_events + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QP::QF::run + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 + + Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + , QEvt const * const ie) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 4 + Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 + LOC 20 eLOC 17 lLOC 11 Comment 30 Lines 29 + + Function: QP::QActive::stop + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 14 + + Function: QP::QXK::schedLock + Parameters: (uint_fast8_t const ceiling) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Inlined if-else ( ? : ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 26 eLOC 23 lLOC 12 Comment 30 Lines 35 + + Function: QP::QXK::schedUnlock + Parameters: (QSchedStatus const stat) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 + + Function: static_cast + Parameters: (0)) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 24 eLOC 19 lLOC 8 Comment 8 Lines 28 + + Function: QXK_activate_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 6 + Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 + LOC 79 eLOC 69 lLOC 35 Comment 53 Lines 108 + + Function: QXK_current + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 14 eLOC 12 lLOC 8 Comment 4 Lines 21 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 291 eLOC 248 lLOC 127 Comment 290 Lines 567 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 12 + Total Function LOC.....: 235 Total Function Pts LOC : 5.5 + Total Function eLOC....: 201 Total Function Pts eLOC: 4.7 + Total Function lLOC....: 112 Total Function Pts lLOC: 2.4 + Total Function Params .: 9 Total Function Return .: 12 + Total Cyclo Complexity : 35 Total Function Complex.: 56 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 79 Average Function LOC ..: 19.58 + Max Function eLOC .....: 69 Average Function eLOC .: 16.75 + Max Function lLOC .....: 35 Average Function lLOC .: 9.33 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 6 Avg Function Parameters: 0.75 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 7 Avg Interface Complex. : 1.75 + Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 2.92 + Max Total Complexity ..: 13 Avg Total Complexity ..: 4.67 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk.cpp + + + File: ..\src\qxk\qxk_mutex.cpp + ________________________________________________________________________ + + Function: QP::QXMutex::init + Parameters: (uint_fast8_t ceiling) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 12 eLOC 11 lLOC 7 Comment 20 Lines 22 + + Function: QP::QXMutex::lock + Parameters: (uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Logical and ( && ) : 4 + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 45 eLOC 41 lLOC 27 Comment 50 Lines 78 + + Function: QP::QXMutex::tryLock + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Logical and ( && ) : 4 + Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 + LOC 39 eLOC 34 lLOC 19 Comment 41 Lines 59 + + Function: QP::QXMutex::unlock + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Logical and ( && ) : 8 + Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 + LOC 56 eLOC 49 lLOC 25 Comment 57 Lines 95 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 167 eLOC 149 lLOC 78 Comment 217 Lines 388 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 152 Total Function Pts LOC : 3.2 + Total Function eLOC....: 135 Total Function Pts eLOC: 2.8 + Total Function lLOC....: 78 Total Function Pts lLOC: 1.5 + Total Function Params .: 2 Total Function Return .: 4 + Total Cyclo Complexity : 31 Total Function Complex.: 37 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 56 Average Function LOC ..: 38.00 + Max Function eLOC .....: 49 Average Function eLOC .: 33.75 + Max Function lLOC .....: 27 Average Function lLOC .: 19.50 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 1 Avg Function Parameters: 0.50 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 2 Avg Interface Complex. : 1.50 + Max Cyclomatic Complex.: 13 Avg Cyclomatic Complex.: 7.75 + Max Total Complexity ..: 14 Avg Total Complexity ..: 9.25 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk_mutex.cpp + + + File: ..\src\qxk\qxk_sema.cpp + ________________________________________________________________________ + + Function: QP::QXSemaphore::init + Parameters: (uint_fast16_t const count, uint_fast16_t const max_count) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 6 eLOC 4 lLOC 4 Comment 18 Lines 7 + + Function: QP::QXSemaphore::wait + Parameters: (uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 3 + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 28 eLOC 25 lLOC 17 Comment 36 Lines 41 + + Function: QP::QXSemaphore::tryWait + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 15 eLOC 12 lLOC 8 Comment 16 Lines 20 + + Function: QP::QXSemaphore::signal + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Logical and ( && ) : 2 + Complexity Param 0 Return 1 Cyclo Vg 6 Total 7 + LOC 29 eLOC 23 lLOC 14 Comment 26 Lines 39 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 95 eLOC 80 lLOC 43 Comment 144 Lines 240 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 78 Total Function Pts LOC : 1.8 + Total Function eLOC....: 64 Total Function Pts eLOC: 1.5 + Total Function lLOC....: 43 Total Function Pts lLOC: 0.8 + Total Function Params .: 3 Total Function Return .: 4 + Total Cyclo Complexity : 14 Total Function Complex.: 21 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 29 Average Function LOC ..: 19.50 + Max Function eLOC .....: 25 Average Function eLOC .: 16.00 + Max Function lLOC .....: 17 Average Function lLOC .: 10.75 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 0.75 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 1.75 + Max Cyclomatic Complex.: 6 Avg Cyclomatic Complex.: 3.50 + Max Total Complexity ..: 7 Avg Total Complexity ..: 5.25 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk_sema.cpp + + + File: ..\src\qxk\qxk_xthr.cpp + ________________________________________________________________________ + + Function: QP::QXThread::QXThread + Parameters: (QXThreadHandler const handler, uint_fast8_t const tickRate) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 3 eLOC 1 lLOC 1 Comment 17 Lines 3 + + Function: QP::QXThread::init + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 + + Function: QP::QXThread::dispatch + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QXThread::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + , QEvt const * const) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 4 + Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 + LOC 21 eLOC 18 lLOC 11 Comment 35 Lines 39 + + Function: QP::QXThread::post_ + Parameters: (QEvt const * const e, uint_fast16_t const margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 9 + Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 + LOC 79 eLOC 64 lLOC 44 Comment 65 Lines 111 + + Function: QP::QXThread::postLIFO + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 9 Lines 3 + + Function: QP::QXThread::queueGet + Parameters: (uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Logical and ( && ) : 3 + Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 + LOC 61 eLOC 54 lLOC 34 Comment 53 Lines 88 + + Function: QP::QXThread::block_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 5 eLOC 4 lLOC 3 Comment 8 Lines 6 + + Function: QP::QXThread::unblock_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 1 + Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 + LOC 8 eLOC 5 lLOC 2 Comment 9 Lines 9 + + Function: QP::QXThread::teArm_ + Parameters: (enum_t const sig, uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 18 eLOC 14 lLOC 8 Comment 20 Lines 33 + + Function: QP::QXThread::teDisarm_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 11 eLOC 8 lLOC 5 Comment 10 Lines 14 + + Function: QP::QXThread::delay + Parameters: (uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 20 eLOC 19 lLOC 13 Comment 17 Lines 34 + + Function: QP::QXThread::delayCancel + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 290 eLOC 242 lLOC 138 Comment 310 Lines 600 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 13 + Total Function LOC.....: 249 Total Function Pts LOC : 5.5 + Total Function eLOC....: 204 Total Function Pts eLOC: 4.6 + Total Function lLOC....: 131 Total Function Pts lLOC: 2.6 + Total Function Params .: 17 Total Function Return .: 13 + Total Cyclo Complexity : 43 Total Function Complex.: 73 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 79 Average Function LOC ..: 19.15 + Max Function eLOC .....: 64 Average Function eLOC .: 15.69 + Max Function lLOC .....: 44 Average Function lLOC .: 10.08 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 6 Avg Function Parameters: 1.31 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 7 Avg Interface Complex. : 2.31 + Max Cyclomatic Complex.: 10 Avg Cyclomatic Complex.: 3.31 + Max Total Complexity ..: 13 Avg Total Complexity ..: 5.62 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk_xthr.cpp + + + ------------------------------------------------------------------------ + + ~~ Project Analysis For 37 Files ~~ + + ------------------------------------------------------------------------ + + ~~ Total Project Summary ~~ + + LOC 4869 eLOC 4314 lLOC 1884 Comment 6428 Lines 11582 + Average per File, metric/37 files + LOC 131 eLOC 116 lLOC 50 Comment 173 Lines 313 + + ------------------------------------------------------------------------ + + ~~ Project Functional Metrics ~~ + + Function: QP::QEvt::QEvt + Parameters: (QSignal const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 + + Function: QP::QEvt::QEvt + Parameters: (QSignal const s, StaticEvt) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 1 eLOC 1 lLOC 0 Comment 2 Lines 1 + + Function: QP::QEvt::~QEvt + Parameters: () + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 1 Lines 1 + + Function: QP::QHsm::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Function: QP::QHsm::state + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QHsm::Q_HANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 + + Function: QP::QHsm::Q_UNHANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 4 Lines 3 + + Function: QP::QHsm::tran_ + Parameters: (QStateHandler const target) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QHsm::tran_hist_ + Parameters: (QStateHandler const hist) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QHsm::super_ + Parameters: (QStateHandler const superstate) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QHsm::qm_tran_ + Parameters: (QMTranActTable const * const tatbl) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 + + Function: QP::QHsm::qm_tran_hist_ + Parameters: (QMState const * const hist, QMTranActTable const * const ta + tbl) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 3 lLOC 3 Comment 1 Lines 5 + + Function: QP::QHsm::qm_tran_init_ + Parameters: (QMTranActTable const * const tatbl) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QHsm::qm_tran_ep_ + Parameters: (QMTranActTable const * const tatbl) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 + + Function: QP::QHsm::qm_tran_xp_ + Parameters: (QActionHandler const xp, QMTranActTable const *const tatbl) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 3 lLOC 3 Comment 2 Lines 5 + + Function: QP::QHsm::qm_entry_ + Parameters: (QMState const * const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QHsm::qm_exit_ + Parameters: (QMState const * const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QHsm::qm_super_sub_ + Parameters: (QMState const * const s) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 2 Lines 4 + + Function: QP::QHsm::QM_HANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QHsm::QM_UNHANDLED + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QHsm::QM_SUPER + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QMsm::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Function: QP::QMsm::stateObj + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QEP::getVersion + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QEQueue::getNFree + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 + + Function: QP::QEQueue::getNMin + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 11 Lines 3 + + Function: QP::QEQueue::isEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 10 Lines 3 + + Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + ) + Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 + LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 + + Function: QP::QActive::getPrio + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QActive::setPrio + Parameters: (uint_fast8_t const prio) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QActive::getOsObject + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Function: QP::QActive::getThread + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Function: QP::QMActive::stateObj + Parameters: (void) Non-ANSI Parameter Construct + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QTimeEvt::QTimeEvt + Parameters: (enum_t const sgnl) Non-ANSI Parameter Construct Defined By + Compiler Directive + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 5 lLOC 3 Comment 7 Lines 8 + + Function: QP::QTimeEvt::postIn + Parameters: (QActive * const act, QTimeEvtCtr const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QTimeEvt::postEvery + Parameters: (QActive * const act, QTimeEvtCtr const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QTimeEvt::toActive + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Function: QP::QTimeEvt::toTimeEvt + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Function: QP::QF::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QTicker::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 0 Lines 1 + + Function: QP::QK::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMPool::getBlockSize + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QF_LOG2 + Parameters: (uint32_t const x) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 25 eLOC 18 lLOC 11 Comment 8 Lines 26 + + Function: QP::QPSet::setEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QPSet::isEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QPSet::notEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QPSet::hasElement + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 + + Function: QP::QPSet::insert + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 + + Function: QP::QPSet::remove + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 1 Comment 1 Lines 4 + + Function: QP::QPSet::findMax + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QPSet::setEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 4 eLOC 3 lLOC 2 Comment 1 Lines 4 + + Function: QP::QPSet::isEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 + + Function: QP::QPSet::notEmpty + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 2 Lines 5 + + Function: QP::QPSet::hasElement + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 9 eLOC 8 lLOC 1 Comment 1 Lines 9 + + Function: QP::QPSet::insert + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 + + Function: QP::QPSet::remove + Parameters: (uint_fast8_t const n) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 7 lLOC 2 Comment 1 Lines 10 + + Function: QP::QPSet::findMax + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 5 eLOC 4 lLOC 1 Comment 1 Lines 5 + + Function: QP::QS::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QS::rxPut + Parameters: (uint8_t const b) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 14 eLOC 9 lLOC 4 Comment 1 Lines 14 + + Function: QP::QS::force_cast + Parameters: (T_IN in) + Template: template + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 6 lLOC 4 Comment 2 Lines 7 + + Function: QP::QV::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QXK::getVersion + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QXThread::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 1 Comment 2 Lines 1 + + Function: QP::QXThread::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + ) + Complexity Param 5 Return 1 Cyclo Vg 1 Total 7 + LOC 4 eLOC 2 lLOC 1 Comment 1 Lines 4 + + Function: QP::QF_EVT_POOL_ID_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Function: QP::QF_EVT_REF_CTR_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1 + + Function: QP::QF_EVT_REF_CTR_INC_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QF_EVT_REF_CTR_DEC_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QHsm::QHsm + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 3 lLOC 2 Comment 8 Lines 4 + + Function: QP::QHsm::~QHsm + Parameters: () + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 2 eLOC 1 lLOC 0 Comment 4 Lines 2 + + Function: QP::QHsm::init + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 + LOC 49 eLOC 46 lLOC 30 Comment 30 Lines 67 + + Function: QP::QHsm::top + Parameters: (void * const, QEvt const * const) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 3 eLOC 2 lLOC 1 Comment 15 Lines 3 + + Function: QP::QHsm::dispatch + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 13 Total 15 + LOC 107 eLOC 96 lLOC 61 Comment 65 Lines 147 + + Function: QP::QHsm::hsm_tran + Parameters: (QStateHandler (&path)[MAX_NEST_DEPTH_]) + Complexity Param 1 Return 1 Cyclo Vg 15 Total 17 + LOC 99 eLOC 79 lLOC 48 Comment 61 Lines 140 + + Function: QP::QHsm::isIn + Parameters: (QStateHandler const s) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 16 eLOC 13 lLOC 9 Comment 21 Lines 23 + + Function: QP::QHsm::childState + Parameters: (QStateHandler const parent) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 19 eLOC 16 lLOC 12 Comment 27 Lines 25 + + Function: QP::QMsm::QMsm + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 2 lLOC 2 Comment 13 Lines 4 + + Function: QP::QMsm::init + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 21 eLOC 20 lLOC 12 Comment 23 Lines 33 + + Function: QP::QMsm::dispatch + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 16 Total 18 + LOC 117 eLOC 100 lLOC 61 Comment 73 Lines 159 + + Function: QP::QMsm::execTatbl_ + Parameters: (QMTranActTable const * const tatbl) + Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 + LOC 56 eLOC 46 lLOC 21 Comment 31 Lines 67 + + Function: QP::QMsm::exitToTranSource_ + Parameters: (QMState const *s, QMState const * const ts) + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 18 eLOC 13 lLOC 6 Comment 17 Lines 24 + + Function: QP::QMsm::enterHistory_ + Parameters: (QMState const * const hist) + Complexity Param 1 Return 1 Cyclo Vg 6 Total 8 + LOC 40 eLOC 33 lLOC 21 Comment 22 Lines 48 + + Function: QP::QMsm::isInState + Parameters: (QMState const * const st) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 13 eLOC 9 lLOC 5 Comment 15 Lines 14 + + Function: QP::QMsm::childStateObj + Parameters: (QMState const * const parent) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 19 eLOC 14 lLOC 9 Comment 17 Lines 23 + + Function: QP::QF::add_ + Parameters: (QActive * const a) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 15 eLOC 14 lLOC 8 Comment 17 Lines 20 + + Function: QP::QF::remove_ + Parameters: (QActive * const a) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 16 eLOC 15 lLOC 9 Comment 18 Lines 21 + + Function: QP::QF::bzero + Parameters: (void * const start, uint_fast16_t len) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 8 eLOC 6 lLOC 4 Comment 13 Lines 8 + + Function: QP::QActive::post_ + Parameters: (QEvt const * const e, uint_fast16_t const margin) + Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 + LOC 59 eLOC 49 lLOC 34 Comment 71 Lines 81 + + Function: QP::QActive::postLIFO + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 36 eLOC 30 lLOC 20 Comment 32 Lines 48 + + Function: QP::QActive::get_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 + LOC 37 eLOC 33 lLOC 21 Comment 27 Lines 48 + + Function: QP::QF::getQueueMin + Parameters: (uint_fast8_t const prio) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 5 Comment 17 Lines 13 + + Function: QP::QTicker::QTicker + Parameters: (uint_fast8_t const tickRate) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 1 lLOC 1 Comment 2 Lines 4 + + Function: QP::QTicker::init + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QTicker::dispatch + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 8 lLOC 6 Comment 4 Lines 11 + + Function: QP::QTicker::post_ + Parameters: (QEvt const * const , uint_fast16_t const /*margin*/) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 31 eLOC 28 lLOC 16 Comment 16 Lines 38 + + Function: QP::QTicker::postLIFO + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 + + Function: QP::QActive::defer + Parameters: (QEQueue * const eq, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 3 eLOC 2 lLOC 1 Comment 22 Lines 3 + + Function: QP::QActive::recall + Parameters: (QEQueue * const eq) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 15 eLOC 12 lLOC 8 Comment 30 Lines 27 + + Function: QP::QActive::flushDeferred + Parameters: (QEQueue * const eq) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 8 lLOC 5 Comment 15 Lines 11 + + Function: QP::QF::poolInit + Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa + st16_t const evtSize) + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 10 eLOC 8 lLOC 4 Comment 36 Lines 13 + + Function: QP::QF::newX_ + Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en + um_t const sig) + Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 + LOC 30 eLOC 24 lLOC 14 Comment 35 Lines 42 + + Function: QP::QF::gc + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 32 eLOC 28 lLOC 14 Comment 39 Lines 47 + + Function: QP::QF::newRef_ + Parameters: (QEvt const * const e, QEvt const * const evtRef) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 10 eLOC 8 lLOC 5 Comment 15 Lines 14 + + Function: QP::QF::poolGetMaxBlockSize + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 4 eLOC 3 lLOC 1 Comment 4 Lines 4 + + Function: QP::QMPool::QMPool + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 9 Lines 1 + + Function: QP::QMPool::init + Parameters: (void * const poolSto, uint_fast32_t poolSize, uint_fast16_t + blockSize) + Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 + LOC 35 eLOC 31 lLOC 22 Comment 51 Lines 58 + + Function: QP::QMPool::put + Parameters: (void * const b) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 17 eLOC 16 lLOC 9 Comment 23 Lines 24 + + Function: QP::QMPool::get + Parameters: (uint_fast16_t const margin) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 41 eLOC 35 lLOC 22 Comment 46 Lines 61 + + Function: QP::QF::getPoolMin + Parameters: (uint_fast8_t const poolId) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 5 Comment 13 Lines 14 + + Function: QP::QF::psInit + Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 7 eLOC 6 lLOC 3 Comment 30 Lines 11 + + Function: QP::QF::publish_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 17 Total 19 + LOC 95 eLOC 84 lLOC 44 Comment 111 Lines 191 + + Function: QP::QActive::QActive + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 9 eLOC 7 lLOC 3 Comment 1 Lines 11 + + Function: QP::QEQueue::QEQueue + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 4 Lines 1 + + Function: QP::QEQueue::init + Parameters: (QEvt const *qSto[], uint_fast16_t const qLen) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 17 eLOC 15 lLOC 9 Comment 19 Lines 18 + + Function: QP::QEQueue::post + Parameters: (QEvt const * const e, uint_fast16_t const margin) + Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 + LOC 54 eLOC 45 lLOC 29 Comment 53 Lines 73 + + Function: QP::QEQueue::postLIFO + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 33 eLOC 28 lLOC 19 Comment 36 Lines 44 + + Function: QP::QEQueue::get + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 + LOC 39 eLOC 34 lLOC 21 Comment 31 Lines 48 + + Function: QP::QMActive::QMActive + Parameters: (QStateHandler const initial) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 4 eLOC 2 lLOC 2 Comment 1 Lines 4 + + Function: QP::QMActive::init + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::dispatch + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::isInState + Parameters: (QMState const * const st) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QMActive::childStateObj + Parameters: (QMState const * const parent) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 1 Lines 3 + + Function: QP::QF::tickX_ + Parameters: (uint_fast8_t const tickRate) + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 66 eLOC 54 lLOC 36 Comment 52 Lines 95 + + Function: QP::QF::noTimeEvtsActiveX + Parameters: (uint_fast8_t const tickRate) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 14 eLOC 10 lLOC 6 Comment 12 Lines 16 + + Function: QP::QTimeEvt::QTimeEvt + Parameters: (QActive * const act, enum_t const sgnl, uint_fast8_t const + tickRate) Defined By Compiler Directive + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 9 eLOC 7 lLOC 4 Comment 22 Lines 22 + + Function: QP::QTimeEvt::QTimeEvt + Parameters: () Defined By Compiler Directive + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 5 lLOC 3 Comment 12 Lines 18 + + Function: QP::QTimeEvt::armX + Parameters: (QTimeEvtCtr const nTicks, QTimeEvtCtr const interval) + Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 + LOC 28 eLOC 26 lLOC 16 Comment 48 Lines 50 + + Function: QP::QTimeEvt::disarm + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 30 eLOC 27 lLOC 17 Comment 27 Lines 38 + + Function: QP::QTimeEvt::rearm + Parameters: (QTimeEvtCtr const nTicks) + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 42 eLOC 35 lLOC 20 Comment 49 Lines 68 + + Function: QP::QTimeEvt::ctr + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 15 eLOC 14 lLOC 10 Comment 16 Lines 18 + + Function: QP::QF::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 + + Function: QP::QF::run + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 + LOC 47 eLOC 41 lLOC 21 Comment 44 Lines 73 + + Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const, QEvt c + onst * const ie) + Complexity Param 6 Return 1 Cyclo Vg 3 Total 10 + LOC 10 eLOC 8 lLOC 6 Comment 26 Lines 16 + + Function: QP::QActive::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 7 eLOC 6 lLOC 4 Comment 14 Lines 8 + + Function: QP::QF::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 14 eLOC 13 lLOC 9 Comment 14 Lines 17 + + Function: QP::QF::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 + + Function: QP::initial_events + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QP::QF::run + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 14 Lines 14 + + Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const, QEvt c + onst * const ie) + Complexity Param 6 Return 1 Cyclo Vg 5 Total 12 + LOC 17 eLOC 14 lLOC 9 Comment 28 Lines 25 + + Function: QP::QActive::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 + + Function: QP::QK::schedLock + Parameters: (uint_fast8_t const ceiling) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 23 eLOC 20 lLOC 12 Comment 32 Lines 33 + + Function: QP::QK::schedUnlock + Parameters: (QSchedStatus const stat) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 + + Function: QK_activate_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 + LOC 62 eLOC 54 lLOC 28 Comment 48 Lines 89 + + Function: QP::QXKIdleThread::QXKIdleThread + Parameters: () + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1 + + Function: QP::QF::init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 16 eLOC 15 lLOC 12 Comment 15 Lines 23 + + Function: QP::QF::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 13 Lines 4 + + Function: QP::initial_events + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QP::QF::run + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 + + Function: QP::QActive::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + , QEvt const * const ie) + Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 + LOC 20 eLOC 17 lLOC 11 Comment 30 Lines 29 + + Function: QP::QActive::stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 14 + + Function: QP::QXK::schedLock + Parameters: (uint_fast8_t const ceiling) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 26 eLOC 23 lLOC 12 Comment 30 Lines 35 + + Function: QP::QXK::schedUnlock + Parameters: (QSchedStatus const stat) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 23 eLOC 20 lLOC 10 Comment 29 Lines 34 + + Function: static_cast + Parameters: (0)) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 24 eLOC 19 lLOC 8 Comment 8 Lines 28 + + Function: QXK_activate_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 + LOC 79 eLOC 69 lLOC 35 Comment 53 Lines 108 + + Function: QXK_current + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 14 eLOC 12 lLOC 8 Comment 4 Lines 21 + + Function: QP::QXMutex::init + Parameters: (uint_fast8_t ceiling) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 12 eLOC 11 lLOC 7 Comment 20 Lines 22 + + Function: QP::QXMutex::lock + Parameters: (uint_fast16_t const nTicks) + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 45 eLOC 41 lLOC 27 Comment 50 Lines 78 + + Function: QP::QXMutex::tryLock + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 8 Total 9 + LOC 39 eLOC 34 lLOC 19 Comment 41 Lines 59 + + Function: QP::QXMutex::unlock + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 + LOC 56 eLOC 49 lLOC 25 Comment 57 Lines 95 + + Function: QP::QXSemaphore::init + Parameters: (uint_fast16_t const count, uint_fast16_t const max_count) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 6 eLOC 4 lLOC 4 Comment 18 Lines 7 + + Function: QP::QXSemaphore::wait + Parameters: (uint_fast16_t const nTicks) + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 28 eLOC 25 lLOC 17 Comment 36 Lines 41 + + Function: QP::QXSemaphore::tryWait + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 15 eLOC 12 lLOC 8 Comment 16 Lines 20 + + Function: QP::QXSemaphore::signal + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 6 Total 7 + LOC 29 eLOC 23 lLOC 14 Comment 26 Lines 39 + + Function: QP::QXThread::QXThread + Parameters: (QXThreadHandler const handler, uint_fast8_t const tickRate) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 3 eLOC 1 lLOC 1 Comment 17 Lines 3 + + Function: QP::QXThread::init + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 3 Lines 3 + + Function: QP::QXThread::dispatch + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 2 Lines 3 + + Function: QP::QXThread::start + Parameters: (uint_fast8_t const prio, QEvt const *qSto[], uint_fast16_t + const qLen, void * const stkSto, uint_fast16_t const stkSize + , QEvt const * const) + Complexity Param 6 Return 1 Cyclo Vg 6 Total 13 + LOC 21 eLOC 18 lLOC 11 Comment 35 Lines 39 + + Function: QP::QXThread::post_ + Parameters: (QEvt const * const e, uint_fast16_t const margin) + Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 + LOC 79 eLOC 64 lLOC 44 Comment 65 Lines 111 + + Function: QP::QXThread::postLIFO + Parameters: (QEvt const * const) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 3 eLOC 2 lLOC 1 Comment 9 Lines 3 + + Function: QP::QXThread::queueGet + Parameters: (uint_fast16_t const nTicks) + Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 + LOC 61 eLOC 54 lLOC 34 Comment 53 Lines 88 + + Function: QP::QXThread::block_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 5 eLOC 4 lLOC 3 Comment 8 Lines 6 + + Function: QP::QXThread::unblock_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 + LOC 8 eLOC 5 lLOC 2 Comment 9 Lines 9 + + Function: QP::QXThread::teArm_ + Parameters: (enum_t const sig, uint_fast16_t const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 18 eLOC 14 lLOC 8 Comment 20 Lines 33 + + Function: QP::QXThread::teDisarm_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 11 eLOC 8 lLOC 5 Comment 10 Lines 14 + + Function: QP::QXThread::delay + Parameters: (uint_fast16_t const nTicks) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 20 eLOC 19 lLOC 13 Comment 17 Lines 34 + + Function: QP::QXThread::delayCancel + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 + + Total: Functions + LOC 2741 eLOC 2285 lLOC 1364 InCmp 344 CycloCmp 466 + Function Points FP(LOC) 46.7 FP(eLOC) 39.5 FP(lLOC) 23.8 + + ------------------------------------------------------------------------ + + ~~ Project Functional Analysis ~~ + + Total Functions .......: 177 Total Physical Lines ..: 3793 + Total LOC .............: 2741 Total Function Pts LOC : 46.7 + Total eLOC ............: 2285 Total Function Pts eLOC: 39.5 + Total lLOC.............: 1364 Total Function Pts lLOC: 23.8 + Total Cyclomatic Comp. : 466 Total Interface Comp. .: 344 + Total Parameters ......: 167 Total Return Points ...: 177 + Total Comment Lines ...: 2682 Total Blank Lines .....: 513 + ------ ----- ----- ------ ------ ----- + Avg Physical Lines ....: 21.43 + Avg LOC ...............: 15.49 Avg eLOC ..............: 12.91 + Avg lLOC ..............: 7.71 Avg Cyclomatic Comp. ..: 2.63 + Avg Interface Comp. ...: 1.94 Avg Parameters ........: 0.94 + Avg Return Points .....: 1.00 Avg Comment Lines .....: 15.15 + ------ ----- ----- ------ ------ ----- + Max LOC ...............: 117 + Max eLOC ..............: 100 Max lLOC ..............: 61 + Max Cyclomatic Comp. ..: 17 Max Interface Comp. ...: 7 + Max Parameters ........: 6 Max Return Points .....: 1 + Max Comment Lines .....: 111 Max Total Lines .......: 191 + ------ ----- ----- ------ ------ ----- + Min LOC ...............: 1 + Min eLOC ..............: 1 Min lLOC ..............: 0 + Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1 + Min Parameters ........: 0 Min Return Points .....: 1 + Min Comment Lines .....: 0 Min Total Lines .......: 1 + + ------------------------------------------------------------------------ + + ~~ File Summary ~~ + + C Source Files *.c ....: 0 C/C++ Include Files *.h: 18 + C++ Source Files *.c* .: 19 C++ Include Files *.h* : 0 + C# Source Files *.cs ..: 0 Java Source File *.jav*: 0 + Other File Count ......: 0 Total File Count ......: 37 + ________________________________________________________________________ + +@endcode +*/ diff --git a/doxygen/ports_native.dox b/doxygen/ports_native.dox index 9c5916ab..5c88fd79 100644 --- a/doxygen/ports_native.dox +++ b/doxygen/ports_native.dox @@ -20,8 +20,128 @@ /*##########################################################################*/ /*! @page lint PC-Lint -@image html under_construction.jpg +@tableofcontents +

The QP/C++ distribution contains a "port" to PC-Lint/FlexeLint static analysis tool from Gimpel Software, which is a static analysis tool for C and C++ with one of the longest track records and best value of the money in the industry. The "PC-Lint port" allows you to statically analyze the QP/C++ source code and facilitates static analysis of your **application code** based on QP/C++. +

+The QP/C "port" to PC-Lint is located in the directory qpcpp/ports/lint and includes also lint configuration files located in the qpcpp/include directory, as well as an example of "linting" application code in the directory qpcpp/examples/arm-cm/dpp_ek-tm4c123gxl/. The following listing describes the most important files in these three directories. + +@code{.lnt} + qpcpp\ - QP/C++ installation directory + | + +-include/ - QP/C++ platform-independent includes + | +-au-ds.lnt - Dan Saks recommendations + | +-au-misra-cpp.lnt - Main PC-Lint MISRA-C++:2008 compliance options + | +-qpcpp.lnt - PC-Lint options for QP/C++ applications + | +-std.lnt - Standard PC-Lint settings recommended by Quantum Leaps + | +-. . . - QP/C++ header files... + | | + | +-ports/ - QP/C++ ports directory + | | +-lint/ - QP/C++ "port" to PC-Lint + | | | +-qk/ - QP/C++ port with the QK kernel + | | | +-qv/ - QP/C++ port with the QV kernel + | | | +-qxk/ - QP/C++ port with the QXK kernel + | | | +-lin.bat - Batch file to invoke PC-Lint to run analysis of QP/C++ code + | | | +-options.lnt - PC/Lint options for "linting" QP/C++ source code + | | | +-lint_qf.log - PC/Lint output for the QEP/QF components of QP/C++ + | | | +-lint_qs.log - PC/Lint output for the QS component of QP/C++ + | | | +-lint_qv.log - PC/Lint output for the QV component of QP/C++ + | | | +-lint_qk.log - PC/Lint output for the QK component of QP/C++ + | | | +-lint_qxk.log - PC/Lint output for the QXK component of QP/C++ + | | | +-qep_port.h - QEP component "port" to a generic ANSI C++ compiler + | | | +-qf_port.h - QF component "port" to a generic ANSI C++ compiler + | | | +-qs_port.h - QS component "port" to a generic ANSI C++ compiler + | | | +-stdint.h - Standard exact-width integers for an ANSI C compiler + | | + | +-examples\ - QP/C++ examples directory (application) + | | +-arm-cm\ - QP/C++ examples for ARM Cortex-M + | | | +-dpp_ek-tm4c123gxl\ - DPP example on the EK-TM4C123GLX board + | | | | +-lint\ - directory for linting the application + | | | | | +-lin.bat - Batch to run PC-Lint analysis of application code + | | | | | +-options.lnt - PC/Lint options for "linting" of application code +@endcode + + +------------------------------------------------------------------------------ +@section lint_qpcpp Linting the QP/C++ Source Code +The directory qpcpp/ports/lint (see listing above) contains also the **lin.bat** batch file for "linting" the QP/C++ source code. The lin.bat batch file invokes PC-Lint and generates the lint output files. As shown in the listing above, the lint output is collected into four text files `lint_qf.log`, `lint_qs.log`, `lint_qk.log`, `lint_qv.log`, and `lint_qs.log`, for QEP/QF, QK, QV, QXK and QS components of the QP/C++ framework, respectively. + +@note +In order to execute the **lin.bat** file on your system, you might need to adjust the symbol `PC_LINT_DIR` at the top of the batch file, to the PC-Lint installation directory on your computer. + +@note +The lin.bat batch file invoked without any command-line options checks the QP/C++ code in the Q_SPY build configuration with software tracing enabled. However, by the nature of software tracing, the Q_SPY configuration transgresses many more MISRA-C++:2008 rules than the standard configuration. However, the Q_SPY configuration is never used for production code, so the MISRA-C++ compliance of the QP/C++ framework should not be judged by the deviations that happen only in the Q_SPY configuration. + +According to the PC-Lint guidelines, the lin.bat uses two option files: the **std.lnt** option file discussed before and the `options.lnt` option file that covers all deviations from the MISRA-C++ rules in the QP/C++ source code. Section 3 (MISRA compliance matrix) cross-references all these deviations, while Section 5 (deviation procedures) describes the reasons for deviations in those, very specific contexts. + + +------------------------------------------------------------------------------ +@section lint_app Linting QP/C++ Application Code +The QP/C++ baseline code contains an example of MISRA-C++ compliance checking with PC/Lint: the DPP example for the EK-TM4C123GLX Cortex-M4F board, located in the directory qpcpp/examples/arm-cm/dpp_ek-tm4c123gxl/lint. The PC-Lint analysis is very simple and requires invoking the **lin.bat** file from the `lint` sub-directory. + +@note +In order to execute the **lin.bat** file on your system, you might need to adjust the symbol `PC_LINT_DIR` at the top of the batch file, to the PC-Lint installation directory on your computer. You + +The `lint` subdirectory in each of the application folders contains also the `options.lnt` with the PC-Lint options specific to linting the application. There is also a choice of the compiler, whereas `options_gcc.lnt` are for the GCC-ARM and `options_iar.lnt` are for `IAR-ARM` compilers, respectively. These files specify the include directory for the specific embedded compiler used to compile the application, and you most likely need to adjust it for your system. +Running PC-Lint on embedded projects (such as the DPP example for ARM Cortex-M) requires option files for the specific compilers (`co-iar-arm.lnt` file for IAR ARM and `co-gnu-arm.lnt` file GNU ARM, respectively). These option files are provided in the QTools collection. The location of the QTools directory in your system is specified in the `options.lnt` file, and you most likely need to adjust it for your system. + +@note +The QTools collection is available for a separate download from https://sourceforge.net/projects/qpc/files/QTools. Quantum Leaps is committed to keep adding more and more PC-Lint option files for various embedded C/C++ cross-compilers in the QTools collection. + + +------------------------------------------------------------------------------ +@section lint_options Structure of PC-Lint Options for QP/C++ +PC-Lint has several places where it reads its currently valid options: +- From special Lint option files (usually called `*.lnt`) +- From the command line +- From within the special lint-comments in the source code modules (not recommended) + +The QP/C++ source code and example application code has been "linted" only by means of the first alternative (option files) with possibility of adding options via command line. The third alternative--lint comments--is not used and Quantum Leaps does not recommend this alternative. + +@note +The QP/C++ source code is completely free of lint comments, which are viewed as a contamination of the source code. + +The structure of the PC-Lint option files used for "linting" QP/C++ follows exactly the Gimpel Software guidelines for configuring PC-Lint (See Section 3.2 "Configuration" in the *PC-Lint/FlexeLint Manual*). The design and grouping of the lint options also reflects the fact that static code analysis of a software framework, such as QP/C++, has really two major aspects. First, the source code of the framework itself has to be analyzed. But even more important and helpful to the users of the framework is providing the infrastructure to effectively analyze the application-level code based on the framework. With this in mind, the PC-Lint options for static analysis of QP/C++ are divided into two groups, located in directories qpcpp/include and qpcpp/ports/lint. These two groups are for analyzing QP/C++ **applications** and QP/C++ **source code**, respectively. + +As shown in the PC-Lint "port" files description, the directory qpcpp/include, contains the PC-Lint options for "linting" the application code along with all platform-independent QP/C++ header files required by the applications. This collocation of lint options with header files simplifies "linting", because specifying just `-iqpcpp/include` include directory to PC-Lint accomplishes both inclusion of QP/C++ header files and PC-Lint options. +Note that the `qpcpp/include` directory contains all PC-Lint option files used in "linting" the code, including the standard MISRA-C++:2008 `au-misra-cpp.lnt` option file as well as Dan Saks' recommendations `au-ds.lnt`, which are copied from the PC-Lint distribution. This design freezes the lint options for which the compliance has been checked. + + +
+@subsection lint_std_lnt The std.lnt option file +According to the Gimpel Software *PC-Lint Configuration Guidelines*, the file `qpcpp/include/std.lnt` file, contains the top-level options, which Quantum Leaps recommends for all projects. These options include the formatting of the PC-Lint messages and making two passes to perform better cross-module analysis. However, the most important option is `-restore_at_end`, which has the effect of surrounding each source file with options `-save` and `-restore`. This precaution prevents options from "bleeding" from one file to another. + +**Top-level option file std.lnt** + +@code{.lnt} +// output: a single line, file info always, use full path names +-hF1 ++ffn +-"format=%(\q%f\q %l %C%) %t %n: %m" + +-width(0,0) // do not break lines ++flm // make sure no foreign includes change the format + +-zero(99) // don't stop make because of warnings + +-passes(2) // make two passes (for better error messages) + +-restore_at_end // don't let -e options bleed to other files + +-summary() // produce a summary of all produced messages +@endcode + + +
+@subsection lint_qpcpp_lnt The qpcpp.lnt option file +The most important file for "linting" QP/C++ applications is the qpcpp.lnt option file. This file handles all deviations from the MISRA-C++:2008 rules, which might arise at the application-level code from the use of the QP/C++ framework. In other words, the **qpcpp.lnt** option file allows completely clean "linting" of the application-level code, as long as the application code does not violate any of the MISRA-C++:2008 rules. + +At the same time, the qpcpp.lnt option file has been very carefully designed not to suppress any MISRA-C++:2008 rule checking outside the very specific context of the QP/C++ API. In other words, the qpc.lnt option file still supports 100% of the MISRA-C++:2008 rule checks that PC-Lint is capable of performing. + +@remarks +For example, for reasons explained in Section 5.10 of the "QP/C++ MISRA Compliance Matrix", QP/C++ extensively uses function-like macros, which deviates from the MISRA-C++:2008 advisory rule 19.7 and which PC-Lint checks with the warning 961. However, instead of suppressing this warning globally (with the -e961 directive), the qpcpp.lnt option file suppresses warning 961 only for the specific QP function-like macros that are visible to the application level. So specifically, the qpcpp.lnt file contains directives -estring(961, Q_TRAN, Q_SPUER, ...), which suppresses the warning only for the specified macros, but does not disable checking of any other macros in the application-level code. + +@next{arm-cm} */ /*##########################################################################*/ /*! @page arm-cr ARM Cortex-R diff --git a/doxygen/snippets/qf_xctor.cpp b/doxygen/snippets/qf_xctor.cpp index 7f7cd11a..f16d7b37 100644 --- a/doxygen/snippets/qf_xctor.cpp +++ b/doxygen/snippets/qf_xctor.cpp @@ -2,7 +2,7 @@ namespace DPP { // local extended-thread objects ............................................. static void Thread1_run(QP::QXThread * const me); // run routine for Thread1 - + static QP::QXThread l_test1(&Thread1_run, 0U); //<== QXThread::QXThread() ctor -. . . +. . . } // namespace DPP \ No newline at end of file diff --git a/doxygen/snippets/qf_xstart.cpp b/doxygen/snippets/qf_xstart.cpp index 1a8e5575..049441ff 100644 --- a/doxygen/snippets/qf_xstart.cpp +++ b/doxygen/snippets/qf_xstart.cpp @@ -1,13 +1,13 @@ -namespace DPP { +namespace DPP { extern QP::QXThread * const XT_Test1; } // namespace DPP - - + + int main() { // stacks and queues for the extended test threads static QP::QEvt const *test1QueueSto[5]; static uint64_t test1StackSto[64]; - + // start the extended Test1 thread // start the extended Test1 thread DPP::XT_Test1->start( diff --git a/include/qpcpp.lnt b/include/qpcpp.lnt index 8ea122ba..2d725404 100644 --- a/include/qpcpp.lnt +++ b/include/qpcpp.lnt @@ -1,36 +1,40 @@ -////////////////////////////////////////////////////////////////////////////// -// Product: PC-Lint 9.x option file for linting QP/C++ applications -// Last updated for version 5.9.7 -// Last updated on 2017-08-20 -// -// Q u a n t u m L e a P s -// --------------------------- -// innovating embedded systems -// -// Copyright (C) 2005-2017 Quantum Leaps, LLC. All rights reserved. -// -// This program is open source software: you can redistribute it and/or -// modify it under the terms of the GNU General Public License as published -// by the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Alternatively, this program may be distributed and modified under the -// terms of Quantum Leaps commercial licenses, which expressly supersede -// the GNU General Public License and are specifically designed for -// licensees interested in retaining the proprietary status of their code. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . -// -// Contact information: -// https://state-machine.com -// mailto:info@state-machine.com -////////////////////////////////////////////////////////////////////////////// +/// @file +/// @brief PC-Lint 9.x option file for linting QP/C++ applications +/// @cond +///=========================================================================== +/// Product: QP/C++ +/// Last Updated for Version: 5.9.7 +/// Date of the Last Update: 2017-08-20 +/// +/// Q u a n t u m L e a P s +/// --------------------------- +/// innovating embedded systems +/// +/// Copyright (C) Quantum Leaps. All rights reserved. +/// +/// This program is free software: you can redistribute it and/or modify +/// it under the terms of the GNU General Public License as published by +/// the Free Software Foundation, either version 3 of the License, or +/// (at your option) any later version. +/// +/// Alternatively, this program may be distributed and modified under the +/// terms of Quantum Leaps commercial licenses, which expressly supersede +/// the GNU General Public License and are specifically designed for +/// licensees interested in retaining the proprietary status of their code. +/// +/// This program is distributed in the hope that it will be useful, +/// but WITHOUT ANY WARRANTY; without even the implied warranty of +/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +/// GNU General Public License for more details. +/// +/// You should have received a copy of the GNU General Public License +/// along with this program. If not, see . +/// +/// Contact information: +/// https://state-machine.com +/// info@state-machine.com +///============================================================================ +/// @endcond // General -estring(793,6) // ANSI/ISO limit of 6 significant chars exceeded diff --git a/include/std.lnt b/include/std.lnt index d63aa484..79a2f840 100644 --- a/include/std.lnt +++ b/include/std.lnt @@ -1,36 +1,41 @@ -//============================================================================ -// Product: PC-Lint 9.x standard option file -// Last Updated for Version: 5.4.0 -// Date of the Last Update: 2015-04-11 -// -// Q u a n t u m L e a P s -// --------------------------- -// innovating embedded systems -// -// Copyright (C) 2002-2014 Quantum Leaps, www.state-machine.com. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Alternatively, this program may be distributed and modified under the -// terms of Quantum Leaps commercial licenses, which expressly supersede -// the GNU General Public License and are specifically designed for -// licensees interested in retaining the proprietary status of their code. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . -// -// Contact information: -// Web: http://www.state-machine.com -// Email: info@state-machine.com -//============================================================================ +/// @file +/// @brief PC-Lint 9.x standard option file +/// @ingroup lint +/// @cond +///=========================================================================== +/// Product: QP/C +/// Last Updated for Version: 5.9.7 +/// Date of the Last Update: 2017-08-20 +/// +/// Q u a n t u m L e a P s +/// --------------------------- +/// innovating embedded systems +/// +/// Copyright (C) Quantum Leaps. All rights reserved. +/// +/// This program is free software: you can redistribute it and/or modify +/// it under the terms of the GNU General Public License as published by +/// the Free Software Foundation, either version 3 of the License, or +/// (at your option) any later version. +/// +/// Alternatively, this program may be distributed and modified under the +/// terms of Quantum Leaps commercial licenses, which expressly supersede +/// the GNU General Public License and are specifically designed for +/// licensees interested in retaining the proprietary status of their code. +/// +/// This program is distributed in the hope that it will be useful, +/// but WITHOUT ANY WARRANTY; without even the implied warranty of +/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +/// GNU General Public License for more details. +/// +/// You should have received a copy of the GNU General Public License +/// along with this program. If not, see . +/// +/// Contact information: +/// https://state-machine.com +/// info@state-machine.com +///============================================================================ +/// @endcond // output: a single line, file info always, use full path names -hF1 diff --git a/ports/lint/options.lnt b/ports/lint/options.lnt index 32ebae3b..855bacb2 100644 --- a/ports/lint/options.lnt +++ b/ports/lint/options.lnt @@ -1,36 +1,41 @@ -////////////////////////////////////////////////////////////////////////////// -// Product: PC-Lint 9.x option file for linting QP/C++ -// Last updated for version 5.9.1 -// Last updated on 2017-05-25 -// -// Q u a n t u m L e a P s -// --------------------------- -// innovating embedded systems -// -// Copyright (C) Quantum Leaps, LLC. All rights reserved. -// -// This program is open source software: you can redistribute it and/or -// modify it under the terms of the GNU General Public License as published -// by the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// Alternatively, this program may be distributed and modified under the -// terms of Quantum Leaps commercial licenses, which expressly supersede -// the GNU General Public License and are specifically designed for -// licensees interested in retaining the proprietary status of their code. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . -// -// Contact information: -// http://www.state-machine.com -// mailto:info@state-machine.com -////////////////////////////////////////////////////////////////////////////// +/// @file +/// @brief PC-Lint 9.x option file for linting QP/C++ source code +/// @cond +///=========================================================================== +/// Product: QP/C++ +/// Last Updated for Version: 5.9.7 +/// Date of the Last Update: 2017-08-20 +/// +/// Q u a n t u m L e a P s +/// --------------------------- +/// innovating embedded systems +/// +/// Copyright (C) Quantum Leaps. All rights reserved. +/// +/// This program is free software: you can redistribute it and/or modify +/// it under the terms of the GNU General Public License as published by +/// the Free Software Foundation, either version 3 of the License, or +/// (at your option) any later version. +/// +/// Alternatively, this program may be distributed and modified under the +/// terms of Quantum Leaps commercial licenses, which expressly supersede +/// the GNU General Public License and are specifically designed for +/// licensees interested in retaining the proprietary status of their code. +/// +/// This program is distributed in the hope that it will be useful, +/// but WITHOUT ANY WARRANTY; without even the implied warranty of +/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +/// GNU General Public License for more details. +/// +/// You should have received a copy of the GNU General Public License +/// along with this program. If not, see . +/// +/// Contact information: +/// https://state-machine.com +/// info@state-machine.com +///============================================================================ +/// @endcond + // library headers +libclass() // lint all header files, including "foreign" diff --git a/ports/posix/qf_port.cpp b/ports/posix/qf_port.cpp index 88426f6b..4d73aa7a 100644 --- a/ports/posix/qf_port.cpp +++ b/ports/posix/qf_port.cpp @@ -2,8 +2,8 @@ /// @brief QF/C++ port to POSIX/P-threads /// @cond ///*************************************************************************** -/// Last updated for version 5.8.2 -/// Last updated on 2016-12-22 +/// Last updated for version 5.9.7 +/// Last updated on 2017-08-25 /// /// Q u a n t u m L e a P s /// --------------------------- @@ -56,7 +56,8 @@ Q_DEFINE_THIS_MODULE("qf_port") pthread_mutex_t QF_pThreadMutex_; // Local-scope objects ------------------------------------------------------- -static bool l_running; +static pthread_mutex_t l_startupMutex; +static bool l_isRunning; static struct timespec l_tick; enum { NANOSLEEP_NSEC_PER_SEC = 1000000000 }; // see NOTE05 @@ -70,6 +71,13 @@ void QF::init(void) { // init the global mutex with the default non-recursive initializer pthread_mutex_init(&QF_pThreadMutex_, NULL); + // init the startup mutex with the default non-recursive initializer + pthread_mutex_init(&l_startupMutex, NULL); + + // lock the startup mutex to block any active objects started before + // calling QF::run() + pthread_mutex_lock(&l_startupMutex); + // clear the internal QF variables, so that the framework can (re)start // correctly even if the startup code is not called to clear the // uninitialized data (as is required by the C++ Standard). @@ -96,13 +104,18 @@ int_t QF::run(void) { // setting priority failed, probably due to insufficient privieges } - l_running = true; - while (l_running) { // the clock tick loop... + // unlock the startup mutex to unblock any active objects started before + // calling QF::run() + pthread_mutex_unlock(&l_startupMutex); + + l_isRunning = true; + while (l_isRunning) { // the clock tick loop... QF_onClockTick(); // clock tick callback (must call QF_TICK_X()) nanosleep(&l_tick, NULL); // sleep for the number of ticks, NOTE05 } onCleanup(); // invoke cleanup callback + pthread_mutex_destroy(&l_startupMutex); pthread_mutex_destroy(&QF_pThreadMutex_); return static_cast(0); // return success } @@ -112,10 +125,14 @@ void QF_setTickRate(uint32_t ticksPerSec) { } //............................................................................ void QF::stop(void) { - l_running = false; // stop the loop in QF::run() + l_isRunning = false; // stop the loop in QF::run() } //............................................................................ void QF::thread_(QActive *act) { + // block this thread until the startup mutex is unlocked from QF::run() + pthread_mutex_lock(&l_startupMutex); + pthread_mutex_unlock(&l_startupMutex); + // loop until m_thread is cleared in QActive::stop() do { QEvt const *e = act->get_(); // wait for event diff --git a/ports/win32/qf_port.cpp b/ports/win32/qf_port.cpp index 312964c0..2d872294 100644 --- a/ports/win32/qf_port.cpp +++ b/ports/win32/qf_port.cpp @@ -2,8 +2,8 @@ /// \brief QF/C++ port to Win32 API /// \cond ///*************************************************************************** -/// Last updated for version 5.8.2 -/// Last updated on 2016-12-22 +/// Last updated for version 5.9.7 +/// Last updated on 2017-08-25 /// /// Q u a n t u m L e a P s /// --------------------------- @@ -53,6 +53,7 @@ Q_DEFINE_THIS_MODULE("qf_port") // Local objects ************************************************************* static CRITICAL_SECTION l_win32CritSect; +static CRITICAL_SECTION l_startupCritSect; static DWORD l_tickMsec = 10U; // clock tick in msec (argument for Sleep()) static bool l_isRunning; // flag indicating when QF is running @@ -60,6 +61,11 @@ static bool l_isRunning; // flag indicating when QF is running void QF::init(void) { InitializeCriticalSection(&l_win32CritSect); + // initialize and enter the startup critical section object to block + // any active objects started before calling QF::run() + InitializeCriticalSection(&l_startupCritSect); + EnterCriticalSection(&l_startupCritSect); + // clear the internal QF variables, so that the framework can (re)start // correctly even if the startup code is not called to clear the // uninitialized data (as is required by the C++ Standard). @@ -83,6 +89,11 @@ void QF::stop(void) { } //**************************************************************************** void QF::thread_(QActive *act) { + // block this thread until the startup critical section is exited + // from QF::run() + EnterCriticalSection(&l_startupCritSect); + LeaveCriticalSection(&l_startupCritSect); + // loop until m_thread is cleared in QActive::stop() do { QEvt const *e = act->get_(); // wait for event @@ -104,6 +115,10 @@ static DWORD WINAPI ao_thread(LPVOID me) { int_t QF::run(void) { onStartup(); // startup callback + // leave the startup critical section to unblock any active objects + // started before calling QF::run() + LeaveCriticalSection(&l_startupCritSect); + l_isRunning = true; // QF is running // set the ticker thread priority below normal to prevent @@ -119,6 +134,7 @@ int_t QF::run(void) { onCleanup(); // cleanup callback QS_EXIT(); // cleanup the QSPY connection + //DeleteCriticalSection(&l_startupCritSect); //DeleteCriticalSection(&l_win32CritSect); return static_cast(0); // return success } @@ -160,7 +176,7 @@ void QActive::start(uint_fast8_t prio, m_osObject = CreateEvent(NULL, FALSE, FALSE, NULL); this->init(ie); // execute initial transition (virtual call) - QS_FLUSH(); /* flush the QS trace buffer to the host */ + QS_FLUSH(); // flush the QS trace buffer to the host // stack size not provided? if (stkSize == 0U) { diff --git a/src/qf/qf_dyn.cpp b/src/qf/qf_dyn.cpp index 61b8ceff..5012e418 100644 --- a/src/qf/qf_dyn.cpp +++ b/src/qf/qf_dyn.cpp @@ -2,8 +2,8 @@ /// @brief QF/C++ dynamic event management /// @cond ///*************************************************************************** -/// Last updated for version 5.9.3 -/// Last updated on 2017-06-19 +/// Last updated for version 5.9.7 +/// Last updated on 2017-08-25 /// /// Q u a n t u m L e a P s /// --------------------------- @@ -196,7 +196,7 @@ QEvt *QF::newX_(uint_fast16_t const evtSize, /// void QF::gc(QEvt const * const e) { // is it a dynamic event? - if (QF_EVT_POOL_ID_(e) != static_cast(0)) { + if (e->poolId_ != static_cast(0)) { QF_CRIT_STAT_ QF_CRIT_ENTRY_(); @@ -255,15 +255,15 @@ void QF::gc(QEvt const * const e) { /// The only allowed use is thorough the macro Q_NEW_REF(). /// QEvt const *QF::newRef_(QEvt const * const e, QEvt const * const evtRef) { - // the provided event reference must not be in use - Q_REQUIRE_ID(500, evtRef == static_cast(0)); + //! @pre the event must be dynamic and the provided event reference + //! must not be already in use + Q_REQUIRE_ID(500, + (e->poolId_ != static_cast(0)) + && (evtRef == static_cast(0))); QF_CRIT_STAT_ QF_CRIT_ENTRY_(); - // is the current event dynamic? - if (e->poolId_ != static_cast(0)) { - QF_EVT_REF_CTR_INC_(e); // increments the ref counter - } + QF_EVT_REF_CTR_INC_(e); // increments the ref counter QF_CRIT_EXIT_(); return e; diff --git a/src/qf_pkg.h b/src/qf_pkg.h index 95f0ae7f..2facfbd3 100644 --- a/src/qf_pkg.h +++ b/src/qf_pkg.h @@ -3,8 +3,8 @@ /// @brief Internal (package scope) QF/C++ interface. /// @cond ///*************************************************************************** -/// Last updated for version 5.8.0 -/// Last updated on 2016-11-29 +/// Last updated for version 5.9.7 +/// Last updated on 2017-08-25 /// /// Q u a n t u m L e a P s /// --------------------------- @@ -101,12 +101,6 @@ struct QFreeBlock { //**************************************************************************** // internal helper inline functions -//! access to the poolId_ of an event @p e -inline uint8_t QF_EVT_POOL_ID_(QEvt const * const e) { return e->poolId_; } - -//! access to the refCtr_ of an event @p e -inline uint8_t QF_EVT_REF_CTR_(QEvt const * const e) { return e->refCtr_; } - //! increment the refCtr_ of an event @p e inline void QF_EVT_REF_CTR_INC_(QEvt const * const e) { ++(QF_EVT_CONST_CAST_(e))->refCtr_;