libcopp  2.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.nosp@m.0813.nosp@m.7@liv.nosp@m.e.co.nosp@m.m
Date
2013-12-25

@history

Definition in file explicit_declare.h.

Macro Definition Documentation

◆ EXPLICIT_DEPRECATED_ATTR

#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 71 of file explicit_declare.h.

◆ EXPLICIT_DEPRECATED_MSG

#define EXPLICIT_DEPRECATED_MSG (   msg)

Definition at line 87 of file explicit_declare.h.

◆ EXPLICIT_FALLTHROUGH

#define EXPLICIT_FALLTHROUGH

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

Definition at line 163 of file explicit_declare.h.

◆ EXPLICIT_NODISCARD_ATTR

#define EXPLICIT_NODISCARD_ATTR

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

Definition at line 110 of file explicit_declare.h.

◆ EXPLICIT_UNUSED_ATTR

#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 133 of file explicit_declare.h.

◆ PARAM_IN

#define PARAM_IN

Definition at line 27 of file explicit_declare.h.

◆ PARAM_INOUT

#define PARAM_INOUT

Definition at line 43 of file explicit_declare.h.

◆ PARAM_OUT

#define PARAM_OUT

Definition at line 35 of file explicit_declare.h.