VC语言扩展一览
来源:互联网 发布:union intersect sql 编辑:程序博客网 时间:2024/05/17 06:56
原文:http://blogs.msdn.com/xiangfan/archive/2008/12/11/vc-extensions-list.aspx
MSDN有专门的页面描述VC提供的语言扩展。但是里面的内容并不全面。
我收集了一份VC提供的非标准扩展的列表,其中一些扩展是相当邪恶的。如果你想编写符合标准并具有良好可移植性的代码,那么最好避免使用这些默认打开的扩展。我将不少常见(误用)的扩展加粗了。
W4001: nonstandard extension 'single line comment' was used
W4152: nonstandard extension, function/data pointer conversion in expression
W4200: nonstandard extension used : zero-sized array in struct/union
W4201: nonstandard extension used : nameless struct/union
W4202: nonstandard extension used : '...': prototype parameter in name list illegal
W4203: nonstandard extension used : union with static member variable
W4204: nonstandard extension used : non-constant aggregate initializer
W4205: nonstandard extension used : static function declaration in function scope
W4206: nonstandard extension used : translation unit is empty
W4207: nonstandard extension used : extended initializer form
W4208: nonstandard extension used : delete [exp] - exp evaluated but ignored
W4210: nonstandard extension used : function given file scope
W4211: nonstandard extension used : redefined extern to static
W4212: nonstandard extension used : function declaration used ellipsis
W4213: nonstandard extension used : cast on l-value
W4214: nonstandard extension used : bit field types other than int
W4215: nonstandard extension used : long float
W4216: nonstandard extension used : float long
W4218: nonstandard extension used : must specify at least a storage class or a type
W4221: nonstandard extension used : 'identifier' : cannot be initialized using address of automatic variable
W4223: nonstandard extension used : non-lvalue array converted to pointer
W4224: nonstandard extension used : formal parameter 'identifier' was previously defined as a type
W4226: nonstandard extension used : 'keyword' is an obsolete keyword
W4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
W4231: nonstandard extension used : 'identifier' before template explicit instantiation
W4232: nonstandard extension used : 'identifier' : address of dllimport 'dllimport' is not static, identity not guaranteed
W4233: nonstandard extension used : 'keyword' keyword only supported in C++, not C
W4234: nonstandard extension used : 'keyword' keyword reserved for future use
W4235: nonstandard extension used : 'keyword' keyword not supported on this architecture
W4238: nonstandard extension used : class rvalue used as lvalue
W4239: nonstandard extension used : 'token' : conversion from 'type' to 'type'
W4240: nonstandard extension used : access to 'classname' now defined to be 'access specifier', previously it was defined to be 'access specifier'
W4288: nonstandard extension used : 'var' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
W4289: nonstandard extension used : 'var' : loop control variable declared in the for-loop is used outside the for-loop scope
W4353: nonstandard extension used: constant 0 as function expression. Use '__noop' function intrinsic instead
W4480: nonstandard extension used: specifying underlying type for enum 'enum'
W4481: nonstandard extension used: override specifier 'keyword'
W4482: nonstandard extension used: enum 'enum' used in qualified name
W4509: nonstandard extension used: 'function' uses SEH and 'object' has destructor
W4836: nonstandard extension used : 'type' : local types or unnamed types cannot be used as template arguments
C2599: 'enum' : forward declaration of enum type is not allowed
- VC语言扩展一览
- VC++网络编程一览
- VC/GCC宏一览
- VC基本函数一览
- VC/GCC 宏一览
- VC/GCC 宏一览
- VC++函数一览
- VC基本函数一览
- VC\GCC宏一览
- VC\GCC宏一览
- C语言快捷键一览
- C语言声明一览
- Swift语言一览
- 主流编程语言属性一览
- C语言未定义行为一览
- C语言未定义行为一览
- 程序开发语言一览图
- VC调试!调试工具栏功能一览!
- Office 2007正版验证破解方法
- asp.net新闻系统的设计与实现
- java xml的读写操作!
- 函数调用规范__cdecl和__stdcall的区别一目了然(表格形式)
- 我的EdifierR201T08
- VC语言扩展一览
- c# 发送传真的方法
- Doevents优化
- 一份适合自己的理想真难``
- java基础知识总结(3)
- 10 Places to Sell Templates
- N81手机内存清理
- Kaspersky Internet Security 2009
- 进销存设计思路