extract out pet_clang_base_type into separate file