llvm.org GIT mirror llvm / 7f90f9e
Demangle: use direct member initialization (NFC) Prefer direct member initialization over the explicit out-of-line initialization for the construction of the local type. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287469 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 2 years ago
1 changed file(s) with 7 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
42324232 sub_type names;
42334233 template_param_type subs;
42344234 Vector template_param;
4235 unsigned cv;
4236 unsigned ref;
4237 unsigned encoding_depth;
4238 bool parsed_ctor_dtor_cv;
4239 bool tag_templates;
4240 bool fix_forward_references;
4241 bool try_to_parse_template_args;
4235 unsigned cv = 0;
4236 unsigned ref = 0;
4237 unsigned encoding_depth = 0;
4238 bool parsed_ctor_dtor_cv = false;
4239 bool tag_templates = true;
4240 bool fix_forward_references = false;
4241 bool try_to_parse_template_args = true;
42424242
42434243 Db() : subs(0, names), template_param(0, subs) {}
42444244 };
42634263
42644264 size_t internal_size = buf != nullptr ? *n : 0;
42654265 Db db;
4266 db.cv = 0;
4267 db.ref = 0;
4268 db.encoding_depth = 0;
4269 db.parsed_ctor_dtor_cv = false;
4270 db.tag_templates = true;
42714266 db.template_param.emplace_back();
4272 db.fix_forward_references = false;
4273 db.try_to_parse_template_args = true;
42744267 int internal_status = success;
42754268 demangle(mangled_name, mangled_name + len, db, internal_status);
42764269 if (internal_status == success && db.fix_forward_references &&