libcopp  1.2.0
Macros
explicit_declare.h File Reference

导入继承关系约束
Licensed under the MIT licenses. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PARAM_IN
 
#define PARAM_OUT
 
#define PARAM_INOUT
 
#define EXPLICIT_DEPRECATED_ATTR
 deprecated, 标记为不推荐使用 usage: EXPLICIT_DEPRECATED_ATTR int a; class EXPLICIT_DEPRECATED_ATTR a; EXPLICIT_DEPRECATED_ATTR int a(); usage: EXPLICIT_DEPRECATED_MSG("there is better choose") int a; class DEPRECATED_MSG("there is better choose") a; EXPLICIT_DEPRECATED_MSG("there is better choose") int a(); More...
 
#define EXPLICIT_DEPRECATED_MSG(msg)
 
#define EXPLICIT_NODISCARD_ATTR
 nodiscard, 标记禁止忽略返回值 usage: EXPLICIT_NODISCARD_ATTR int a; class EXPLICIT_NODISCARD_ATTR a; EXPLICIT_NODISCARD_ATTR int a(); More...
 
#define EXPLICIT_UNUSED_ATTR
 maybe_unused, 标记忽略unused警告 usage: EXPLICIT_UNUSED_ATTR int a; class EXPLICIT_UNUSED_ATTR a; EXPLICIT_UNUSED_ATTR int a(); More...
 
#define EXPLICIT_FALLTHROUGH
 fallthrough, 标记忽略switch内case的无break警告 usage: EXPLICIT_FALLTHROUGH int a; switch (xxx) { case XXX: EXPLICIT_FALLTHROUGH More...
 

Detailed Description

导入继承关系约束
Licensed under the MIT licenses.

Version
1.0
Author
OWenT, owt50[email protected]0813[email protected][email protected][email protected]e.co[email protected]m
Date
2013-12-25

Definition in file explicit_declare.h.

Macro Definition Documentation

#define EXPLICIT_DEPRECATED_ATTR

deprecated, 标记为不推荐使用 usage: EXPLICIT_DEPRECATED_ATTR int a; class EXPLICIT_DEPRECATED_ATTR a; EXPLICIT_DEPRECATED_ATTR int a(); usage: EXPLICIT_DEPRECATED_MSG("there is better choose") int a; class DEPRECATED_MSG("there is better choose") a; EXPLICIT_DEPRECATED_MSG("there is better choose") int a();

Definition at line 73 of file explicit_declare.h.

#define EXPLICIT_DEPRECATED_MSG (   msg)

Definition at line 89 of file explicit_declare.h.

#define EXPLICIT_FALLTHROUGH

fallthrough, 标记忽略switch内case的无break警告 usage: EXPLICIT_FALLTHROUGH int a; switch (xxx) { case XXX: EXPLICIT_FALLTHROUGH

Definition at line 165 of file explicit_declare.h.

#define EXPLICIT_NODISCARD_ATTR

nodiscard, 标记禁止忽略返回值 usage: EXPLICIT_NODISCARD_ATTR int a; class EXPLICIT_NODISCARD_ATTR a; EXPLICIT_NODISCARD_ATTR int a();

Definition at line 112 of file explicit_declare.h.

#define EXPLICIT_UNUSED_ATTR

maybe_unused, 标记忽略unused警告 usage: EXPLICIT_UNUSED_ATTR int a; class EXPLICIT_UNUSED_ATTR a; EXPLICIT_UNUSED_ATTR int a();

Definition at line 135 of file explicit_declare.h.

#define PARAM_IN

Definition at line 28 of file explicit_declare.h.

#define PARAM_INOUT

Definition at line 44 of file explicit_declare.h.

#define PARAM_OUT

Definition at line 36 of file explicit_declare.h.