84 lines
3.6 KiB
Plaintext
Raw Normal View History

2012-08-14 18:07:04 -04:00
//////////////////////////////////////////////////////////////////////////////
2015-04-28 13:45:35 -04:00
// Product: PC-Lint 9.x options for linting QP/C applications, GNU-ARM
2015-12-24 14:33:20 -05:00
// Last Updated for Version: 5.6.0
// Date of the Last Update: 2015-12-19
2015-04-28 13:45:35 -04:00
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
//
2015-12-24 14:33:20 -05:00
// Copyright (C) Quantum Leaps, LLC. All rights reserved.
2015-04-28 13:45:35 -04:00
//
// 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 <http://www.gnu.org/licenses/>.
//
// Contact information:
2015-12-24 14:33:20 -05:00
// http://www.state-machine.com
// mailto:info@state-machine.com
2012-08-14 18:07:04 -04:00
//////////////////////////////////////////////////////////////////////////////
2015-04-28 13:45:35 -04:00
// the location of the GNU-ARM includes (need to adjust!!!)
-iC:\tools\gnu_arm-eabi\arm-eabi\include
2012-08-14 18:07:04 -04:00
2015-12-24 14:33:20 -05:00
// define ARM Architecture
-D__ARM_ARCH=7
2015-04-28 13:45:35 -04:00
// the location of the QTools lint directory (need to adjust!!!)
-iC:\tools\qtools\lint
// the location of the QPC framework (need to adjust!!!)
-i..\..\..\..\include // QP/C includes
-i..\..\..\..\ports\arm-cm\qk\gnu // QP/C port includes
-i..\..\..\..\3rd_partyCMSIS\Include // CMSIS directory
co-gnu-arm.lnt // GNU-ARM compiler
2012-08-14 18:07:04 -04:00
au-misra2.lnt // MISRA-C:2004 rules
au-ds.lnt // Dan Saks recommendations
2015-04-28 13:45:35 -04:00
qpc.lnt // QP/C options
2012-08-14 18:07:04 -04:00
//-strong(AXJ) // Strong type checking
2015-04-28 13:45:35 -04:00
// library headers
-wlib(1) // ignore warnings from library headers
2012-08-14 18:07:04 -04:00
+libclass(angle) // consider only <...> headers as library
2015-04-28 13:45:35 -04:00
//-vf // print names of all header & source files
2012-08-14 18:07:04 -04:00
2015-04-28 13:45:35 -04:00
-emacro(923, UINT2PTR_CAST) // cast from unsigned int to pointer
-emacro(946, PHILO_ID) // MISRA04-17.2(req), subtraction of pointers
-emacro(947, PHILO_ID) // MISRA04-17.2(req), subtraction of pointers
-emacro(960, PHILO_ID) // MISRA04-17.4(req), pointer arithmetic
2013-10-10 19:59:51 -04:00
-estring(961, // MISRA04-19.7(adv) Function-like macro
2015-04-28 13:45:35 -04:00
QF_SET_BASEPRI,
PHILO_ID,
RIGHT,
LEFT)
2013-10-10 19:59:51 -04:00
-esym(960, // MISRA04-19.4(req), disallowed macro definition
QF_SET_BASEPRI,
THINK_TIME,
2015-04-28 13:45:35 -04:00
EAT_TIME)
-emacro(717, // do ... while(0);
QK_ISR_ENTRY,
QK_ISR_EXIT)
-esym(522, Q_onAssert) // Highest operation, function lacks side-effects
// not referenced symbols
-e714 // symbol '...' not referenced
-e755 // global macro '...' not referenced
-e756 // global typedef '...' not referenced
-e757 // global declarator '...' not referenced
-e768 // struct member '...' not referenced