diff options
Diffstat (limited to 'src/parser/parser_utils.c')
| -rw-r--r-- | src/parser/parser_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/parser_utils.c b/src/parser/parser_utils.c index f889561..4e85500 100644 --- a/src/parser/parser_utils.c +++ b/src/parser/parser_utils.c @@ -1002,6 +1002,9 @@ char *replace_in_string(const char *src, const char *old_w, const char *new_w) char *replace_type_str(const char *src, const char *param, const char *concrete, const char *old_struct, const char *new_struct) { + if (src && param && concrete) + { + } if (!src) { return NULL; @@ -2563,6 +2566,7 @@ void instantiate_methods(ParserContext *ctx, GenericImplTemplate *it, void instantiate_generic(ParserContext *ctx, const char *tpl, const char *arg, const char *unmangled_arg, Token token) { + // Ignore generic placeholders if (strlen(arg) == 1 && isupper(arg[0])) { |
