[clang] Keep QualifiedCppName free of clang frontend modules dependencies

Reviewed By: da319

Differential Revision: D7179736

fbshipit-source-id: 7b4055b
master
Dulma Churchill 7 years ago committed by Facebook Github Bot
parent be53bc80e2
commit d763cfdd6f

@ -46,8 +46,8 @@ let of_rev_list = ident
let cpp_separator = "::"
let from_field_qualified_name name_decl_info =
match name_decl_info.Clang_ast_t.ni_qual_name with
let from_field_qualified_name qual_name =
match qual_name with
| _ :: rest ->
rest
| _ ->

@ -47,7 +47,7 @@ val of_list : string list -> t
val of_rev_list : string list -> t
(** given reversed list of qualifiers, produce qualified name (ie. ["move", "std"] for std::move )*)
val from_field_qualified_name : Clang_ast_t.named_decl_info -> t
val from_field_qualified_name : t -> t
val pp : Format.formatter -> t -> unit

@ -522,7 +522,8 @@ let get_objc_property_accessor tenv ms =
-> (
let class_tname =
Typ.Name.Objc.from_qual_name
(QualifiedCppName.from_field_qualified_name name_decl_info)
(QualifiedCppName.from_field_qualified_name
(QualifiedCppName.of_rev_list name_decl_info.ni_qual_name))
in
let field_name = CGeneral_utils.mk_class_field_name class_tname name_decl_info.ni_name in
match Tenv.lookup tenv class_tname with

Loading…
Cancel
Save