87 lines
3.8 KiB
Plaintext
Raw Normal View History

2012-08-14 18:00:48 -04:00
//////////////////////////////////////////////////////////////////////////////
// Product: PC-Lint 9.x option file for linting QP/C++ applications
2013-10-10 20:01:51 -04:00
// Last Updated for Version: 5.1.1
// Date of the Last Update: Oct 09, 2013
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
//
// Copyright (C) 2002-2013 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 2 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:
// Quantum Leaps Web sites: http://www.quantum-leaps.com
// http://www.state-machine.com
2012-08-14 18:00:48 -04:00
// e-mail: info@quantum-leaps.com
//////////////////////////////////////////////////////////////////////////////
// the location of the IAR ARM includes (need to adjust!!!)
2013-10-10 20:01:51 -04:00
-iC:\tools\IAR\ARM_6.60\arm\inc\c
-iC:\tools\IAR\ARM_6.60\arm\inc\cpp
2012-08-14 18:00:48 -04:00
// the location of the QTools lint directory
-i%QTOOLS%\lint
2013-10-10 20:01:51 -04:00
-i%QPCPP%\include // QP/C++ includes
-i%QPCPP%\ports\arm-cm\qk\iar // QP/C++ port includes
-i%QPCPP%\ports\arm-cm\cmsis // CMSIS directory
2012-08-14 18:00:48 -04:00
2013-10-10 20:01:51 -04:00
-D__ARM7M__=1 // define for Cortex-M3/M4
-D__ARM6M__=0 // define for Cortex-M0/M0+
2012-08-14 18:00:48 -04:00
co-iar-arm.lnt // IAR ARM compiler
au-misra-cpp.lnt // MISRA-C++:2008 rules
au-ds.lnt // Dan Saks recommendations
lib-qpcpp.lnt // QP/C++ options
//-strong(AXJ) // Strong type checking
// library headers
-wlib(1) // ignore warnings from library headers
+libclass(angle) // consider only <...> headers as library
2013-10-10 20:01:51 -04:00
+libdir(%QPCPP%\ports\arm-cm\cmsis)
2012-08-14 18:00:48 -04:00
//-vf // print names of all header & source files
-esym(1960, philoNum) // Non-private data member in a non-POD struct
-efunc(946, *PHILO_ID) // 5-0-15,5-0-17,5-0-18 subtraction of pointers
-efunc(947, *PHILO_ID) // 5-0-15,5-0-17,5-0-18 subtraction of pointers
-efunc(1960,*PHILO_ID) // 5-0-6, conversion of integer to smaller type
-efile(1924, *bsp.cpp) // 5-2-4, C-style cast
2013-10-10 20:01:51 -04:00
-esym(1923, // 16-2-2, could become const variable
QF_BASEPRI)
2012-08-14 18:00:48 -04:00
-emacro(717, // do ... while(0);
QK_ISR_ENTRY,
QK_ISR_EXIT)
-estring(435, // int constant '0xE000ED04U' has precision 32
0xE000ED04U)
-estring(435, // int constant '0x10000000U' has precision 29
0x10000000U)
// CMSIS-induced problems
-e923 // 5-2-7, 5-2-8 cast from int to pointer
-e1924 // C-style cast (for CMSIS)
// 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