Skip to content

Commit cae5660

Browse files
committed
Add manual member variable models for C11 and C99.
Appendix B of the spec doesn't include the member variables, but there's only a few of them so we specify by hand.
1 parent e21f6d3 commit cae5660

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
extensions:
2+
- addsTo: {extensible: libraryMemberVariableModel, pack: codeql/common-cpp-coding-standards}
3+
data:
4+
- [C11, "time.h", "", "struct timespec", "tv_sec", "time_t"]
5+
- [C11, "time.h", "", "struct timespec", "tv_nsec", "long"]
6+
- [C11, "time.h", "", "struct tm", "tm_sec", "int"]
7+
- [C11, "time.h", "", "struct tm", "tm_min", "int"]
8+
- [C11, "time.h", "", "struct tm", "tm_hour", "int"]
9+
- [C11, "time.h", "", "struct tm", "tm_mday", "int"]
10+
- [C11, "time.h", "", "struct tm", "tm_mon", "int"]
11+
- [C11, "time.h", "", "struct tm", "tm_year", "int"]
12+
- [C11, "time.h", "", "struct tm", "tm_wday", "int"]
13+
- [C11, "time.h", "", "struct tm", "tm_yday", "int"]
14+
- [C11, "time.h", "", "struct tm", "tm_isdst", "int"]
15+
- [C11, "locale.h", "", "struct lconv", "decimal_point", "char *"]
16+
- [C11, "locale.h", "", "struct lconv", "thousands_sep", "char *"]
17+
- [C11, "locale.h", "", "struct lconv", "grouping", "char *"]
18+
- [C11, "locale.h", "", "struct lconv", "mon_decimal_point", "char *"]
19+
- [C11, "locale.h", "", "struct lconv", "mon_thousands_sep", "char *"]
20+
- [C11, "locale.h", "", "struct lconv", "mon_grouping", "char *"]
21+
- [C11, "locale.h", "", "struct lconv", "positive_sign", "char *"]
22+
- [C11, "locale.h", "", "struct lconv", "negative_sign", "char *"]
23+
- [C11, "locale.h", "", "struct lconv", "currency_symbol", "char *"]
24+
- [C11, "locale.h", "", "struct lconv", "frac_digits", "char"]
25+
- [C11, "locale.h", "", "struct lconv", "p_cs_precedes", "char"]
26+
- [C11, "locale.h", "", "struct lconv", "n_cs_precedes", "char"]
27+
- [C11, "locale.h", "", "struct lconv", "p_sep_by_space", "char"]
28+
- [C11, "locale.h", "", "struct lconv", "n_sep_by_space", "char"]
29+
- [C11, "locale.h", "", "struct lconv", "p_sign_posn", "char"]
30+
- [C11, "locale.h", "", "struct lconv", "n_sign_posn", "char"]
31+
- [C11, "locale.h", "", "struct lconv", "int_curr_symbol", "char *"]
32+
- [C11, "locale.h", "", "struct lconv", "int_frac_digits", "char"]
33+
- [C11, "locale.h", "", "struct lconv", "int_p_cs_precedes", "char"]
34+
- [C11, "locale.h", "", "struct lconv", "int_n_cs_precedes", "char"]
35+
- [C11, "locale.h", "", "struct lconv", "int_p_sep_by_space", "char"]
36+
- [C11, "locale.h", "", "struct lconv", "int_n_sep_by_space", "char"]
37+
- [C11, "locale.h", "", "struct lconv", "int_p_sign_posn", "char"]
38+
- [C11, "locale.h", "", "struct lconv", "int_n_sign_posn", "char"]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
extensions:
2+
- addsTo: {extensible: libraryMemberVariableModel, pack: codeql/common-cpp-coding-standards}
3+
data:
4+
- [C99, "time.h", "", "struct tm", "tm_sec", "int"]
5+
- [C99, "time.h", "", "struct tm", "tm_min", "int"]
6+
- [C99, "time.h", "", "struct tm", "tm_hour", "int"]
7+
- [C99, "time.h", "", "struct tm", "tm_mday", "int"]
8+
- [C99, "time.h", "", "struct tm", "tm_mon", "int"]
9+
- [C99, "time.h", "", "struct tm", "tm_year", "int"]
10+
- [C99, "time.h", "", "struct tm", "tm_wday", "int"]
11+
- [C99, "time.h", "", "struct tm", "tm_yday", "int"]
12+
- [C99, "time.h", "", "struct tm", "tm_isdst", "int"]
13+
- [C99, "locale.h", "", "struct lconv", "decimal_point", "char *"]
14+
- [C99, "locale.h", "", "struct lconv", "thousands_sep", "char *"]
15+
- [C99, "locale.h", "", "struct lconv", "grouping", "char *"]
16+
- [C99, "locale.h", "", "struct lconv", "mon_decimal_point", "char *"]
17+
- [C99, "locale.h", "", "struct lconv", "mon_thousands_sep", "char *"]
18+
- [C99, "locale.h", "", "struct lconv", "mon_grouping", "char *"]
19+
- [C99, "locale.h", "", "struct lconv", "positive_sign", "char *"]
20+
- [C99, "locale.h", "", "struct lconv", "negative_sign", "char *"]
21+
- [C99, "locale.h", "", "struct lconv", "currency_symbol", "char *"]
22+
- [C99, "locale.h", "", "struct lconv", "frac_digits", "char"]
23+
- [C99, "locale.h", "", "struct lconv", "p_cs_precedes", "char"]
24+
- [C99, "locale.h", "", "struct lconv", "n_cs_precedes", "char"]
25+
- [C99, "locale.h", "", "struct lconv", "p_sep_by_space", "char"]
26+
- [C99, "locale.h", "", "struct lconv", "n_sep_by_space", "char"]
27+
- [C99, "locale.h", "", "struct lconv", "p_sign_posn", "char"]
28+
- [C99, "locale.h", "", "struct lconv", "n_sign_posn", "char"]
29+
- [C99, "locale.h", "", "struct lconv", "int_curr_symbol", "char *"]
30+
- [C99, "locale.h", "", "struct lconv", "int_frac_digits", "char"]
31+
- [C99, "locale.h", "", "struct lconv", "int_p_cs_precedes", "char"]
32+
- [C99, "locale.h", "", "struct lconv", "int_n_cs_precedes", "char"]
33+
- [C99, "locale.h", "", "struct lconv", "int_p_sep_by_space", "char"]
34+
- [C99, "locale.h", "", "struct lconv", "int_n_sep_by_space", "char"]
35+
- [C99, "locale.h", "", "struct lconv", "int_p_sign_posn", "char"]
36+
- [C99, "locale.h", "", "struct lconv", "int_n_sign_posn", "char"]

0 commit comments

Comments
 (0)