File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ default_regex="@ddr_namespace: *default"
30
30
map_to_type_regex=" @ddr_namespace: *map_to_type="
31
31
flag_define_regex=" ^ *# *define +(${id} ) *($|//|/\*)"
32
32
flag_undef_regex=" ^ *# *undef +(${id} ) *($|//|/\*)"
33
+ flag_undef_regex_comment=" ^/\* #undef (${id} ) \*/"
33
34
value_define_regex=" ^ *# *define +(${id} ) +[^ /].*($|//|/\*)"
34
35
include_guard_regex=" .*_[Hh]([Pp][Pp])?_? *($|//|/\*)"
35
36
@@ -162,6 +163,7 @@ process_one_policy_file() {
162
163
-e ' /@ddr_namespace:/p' \
163
164
-e ' /^ *# *define /p' \
164
165
-e ' /^ *# *undef /p' \
166
+ -e ' /^\/\* #undef /p' \
165
167
| while read -r line; do
166
168
if [[ ${line} =~ ${default_regex} ]]; then
167
169
set_default_namespaces
@@ -173,7 +175,7 @@ process_one_policy_file() {
173
175
elif [[ ${addFlags} -ne 0 && ${line} =~ ${flag_define_regex} ]]; then
174
176
# Print a define flag as a constant of 1.
175
177
define_flag_macro " ${BASH_REMATCH[1]} "
176
- elif [[ ${addFlags} -ne 0 && ${line} =~ ${flag_undef_regex} ]]; then
178
+ elif [[ ${addFlags} -ne 0 && ${line} =~ ${flag_undef_regex} || ${line} =~ ${flag_undef_regex_comment} ]]; then
177
179
# Print an undef flag as a constant of 0.
178
180
undef_flag_macro " ${BASH_REMATCH[1]} "
179
181
fi
Original file line number Diff line number Diff line change 29
29
#if !defined(OMRCFG_H_ )
30
30
#define OMRCFG_H_
31
31
32
- /* @ddr_namespace: map_to_type=OmrBuildFlags */
32
+ /**
33
+ * @ddr_namespace: map_to_type=OmrBuildFlags
34
+ * @ddr_options: valuesandbuildflags
35
+ */
33
36
34
37
#undef OMR_GC
35
38
#undef OMR_JIT
Original file line number Diff line number Diff line change 28
28
#if !defined(OMRCFG_H_ )
29
29
#define OMRCFG_H_
30
30
31
- /* @ddr_namespace: map_to_type=OmrBuildFlags */
31
+ /**
32
+ * @ddr_namespace: map_to_type=OmrBuildFlags
33
+ * @ddr_options: valuesandbuildflags
34
+ */
32
35
33
36
#cmakedefine OMR_GC
34
37
#cmakedefine OMR_JIT
You can’t perform that action at this time.
0 commit comments