Skip to content

Commit 80dc2c8

Browse files
shiqinggdbkinder
authored andcommitted
doc: add some rules related to language extensions
This patch adds some rules related to language extensions. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
1 parent 3026a37 commit 80dc2c8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

doc/developer-guides/coding_guidelines.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,3 +3310,47 @@ The number of bytes in an object is implementation-defined, according to J.3.13
33103310
item 2 in C99. For ACRN hypervisor, char is 1 byte, short is 2 bytes, int is 4
33113311
bytes, long is 8 bytes, and long long is not used.
33123312

3313+
Language Extensions
3314+
*******************
3315+
3316+
3317+
LE-01: Use of inline Assembly language in C Code is allowed
3318+
===========================================================
3319+
3320+
This feature refers to section 6.45 in GCC 7.3 Manual.
3321+
3322+
LE-02: Use of type attribute 'aligned' is allowed
3323+
=================================================
3324+
3325+
This feature refers to section 6.33.1 in GCC 7.3 Manual.
3326+
3327+
LE-03: Use of type attribute 'packed' is allowed
3328+
================================================
3329+
3330+
This feature refers to section 6.33.1 in GCC 7.3 Manual.
3331+
3332+
LE-04: Use of builtin-type '__builtin_va_list' is allowed
3333+
=========================================================
3334+
3335+
This feature refers to section 6.20 in GCC 7.3 Manual.
3336+
3337+
LE-05: Use of builtin-function '__builtin_va_arg' is allowed
3338+
============================================================
3339+
3340+
This feature refers to section 6.20 in GCC 7.3 Manual.
3341+
3342+
LE-06: Use of builtin-function '__builtin_va_start' is allowed
3343+
==============================================================
3344+
3345+
This feature refers to section 6.20 in GCC 7.3 Manual.
3346+
3347+
LE-07: Use of builtin-function '__builtin_va_end' is allowed
3348+
============================================================
3349+
3350+
This feature refers to section 6.20 in GCC 7.3 Manual.
3351+
3352+
LE-08: Use of builtin-function '__builtin_offsetof' is allowed
3353+
==============================================================
3354+
3355+
This feature refers to section 6.51 in GCC 7.3 Manual.
3356+

0 commit comments

Comments
 (0)