co-mwe_base.lnt

来自「PC_LINT8_w,经过测试」· LNT 代码 · 共 47 行

LNT
47
字号
//    co-mwe_base.lnt
//    Compiler Options for Metrowerks MWE Compiler (Basis Option File)

//    This file contains options to allow PC-lint to process source
//    files for your compiler.  It is used as follows:
//
//    lint  co-mwe_base.lnt  source-file(s)
//

// asm
-d__asm=asm                     // accepts both "_asm" and "asm"
-dasm=_to_semi +rw(_to_semi)    // accepts #define macroname {asm CMD;}
+pragma(asm,off)                // #asm blocks ignored
+pragma(endasm,on)              // #endasm restores things
-dasm=_to_brackets              // ignore asm { ... }
+rw(_to_brackets)

+rw(__typeof__)

// macros
-emacro(64,NULL)	// accepts ptrs to void/unvoid
-emacro(???, va_arg)	// the va_arg() macro can yield 415, 416, 661, 662,
			// 796 and 797 (out-of-bounds errors).

// while processing compiler (library) header files ...
-wlib(1)	// sets the warning level within library headers to 1
		// (no warnings, just syntax errors).  Comment out if you
		// are actually linting library headers.  This
		// option makes obsolete options of the form -elib(axxx) where
		// xxx >= 400 which may be retained for historical reasons.
-elib(652)	// suppress message about #define of earlier declared symbols
-elib(762)	// suppress message about multiple identical declarations and
-elib(760)	// suppress message about multiple identical macro defs
-elib(553)	// undefined pre-processor variables are regarded as 0 without complaint


//  The following functions exhibit variable return modes.
//  That is, they may equally-usefully be called for a value
//  as called just for their effects.  Accordingly we inhibit
//  Warning 534 for these functions.
//  Feel free to add to or subtract from this list.

-esym(534,close,creat,fclose,fprintf,fputc)
-esym(534,fputs,fscanf,fseek,fwrite,lseek,memcpy,memmove,memset)
-esym(534,printf,puts,scanf,sprintf,sscanf,strcat,strcpy)
-esym(534,strncat,strncpy,unlink,write)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?