Skip to content

Commit 3e19d62

Browse files
shiqinggdbkinder
authored andcommitted
doc: update coding guidelines
This patch updates some rules in coding guidelines. Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
1 parent bba4329 commit 3e19d62

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

doc/developer-guides/coding_guidelines.rst

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3485,38 +3485,28 @@ LE-01: Use of inline Assembly language in C Code is allowed
34853485

34863486
This feature refers to section 6.45 in GCC 7.3 Manual.
34873487

3488-
LE-02: Use of type attribute 'aligned' is allowed
3489-
=================================================
3490-
3491-
This feature refers to section 6.33.1 in GCC 7.3 Manual.
3492-
3493-
LE-03: Use of type attribute 'packed' is allowed
3494-
================================================
3495-
3496-
This feature refers to section 6.33.1 in GCC 7.3 Manual.
3497-
3498-
LE-04: Use of builtin-type '__builtin_va_list' is allowed
3488+
LE-02: Use of builtin-type '__builtin_va_list' is allowed
34993489
=========================================================
35003490

35013491
This feature refers to section 6.20 in GCC 7.3 Manual.
35023492

3503-
LE-05: Use of builtin-function '__builtin_va_arg' is allowed
3504-
============================================================
3505-
3506-
This feature refers to section 6.20 in GCC 7.3 Manual.
3507-
3508-
LE-06: Use of builtin-function '__builtin_va_start' is allowed
3509-
==============================================================
3493+
LE-03: Use of extended type attribute is allowed
3494+
================================================
35103495

3511-
This feature refers to section 6.20 in GCC 7.3 Manual.
3496+
This rule applies to the following type attributes:
35123497

3513-
LE-07: Use of builtin-function '__builtin_va_end' is allowed
3514-
============================================================
3498+
a) 'aligned', refers to section 6.33.1 in GCC 7.3 Manual.
3499+
b) 'packed', refers to section 6.33.1 in GCC 7.3 Manual.
3500+
c) 'unused', refers to section 6.33.1 in GCC 7.3 Manual.
3501+
d) 'section', refers to section 6.32.1 in GCC 7.3 Manual.
35153502

3516-
This feature refers to section 6.20 in GCC 7.3 Manual.
3503+
LE-04: Use of extended builtin-function is allowed
3504+
==================================================
35173505

3518-
LE-08: Use of builtin-function '__builtin_offsetof' is allowed
3519-
==============================================================
3506+
This rule applies to the following builtin-functions:
35203507

3521-
This feature refers to section 6.51 in GCC 7.3 Manual.
3508+
a) '__builtin_va_arg', refers to section 6.20 in GCC 7.3 Manual.
3509+
b) '__builtin_va_start', refers to section 6.20 in GCC 7.3 Manual.
3510+
c) '__builtin_va_end', refers to section 6.20 in GCC 7.3 Manual.
3511+
d) '__builtin_offsetof', refers to section 6.51 in GCC 7.3 Manual.
35223512

0 commit comments

Comments
 (0)