Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to create BaseClassInfo if I just have a name
  • From: Nathan Ridge <zeratul976@xxxxxxxxxxx>
  • Date: Tue, 17 Mar 2020 14:54:41 +0000
  • Accept-language: en-CA, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1P43252z0EA4CdrrkW4nbVNxw+1WPynqlLD8GqUZ1jo=; b=ORyybNdnTvbT6bfAQhGwbR2kaJM8n7XS2K0vSVLL/hbbXkSBMJBhZUn6Rqjvv4xGGhjgZ2ccBIOfqj3OtXkJy2HqOw1cyZyeKE322dSJTQR2dS1qHOQ5ICN4Wari/qEbTFdYAYiesrSIQMOtY1TMkaJ4LQDjsHLSWTY+e7A2QguDfV72fMMic/nJXIDCP1g5a9F8POlt4ACrTCLmtuEQw1a76F6KnRVkDkuLesg0rNdM+r1d4K3j7YIySW1t+5lhWxFpJShXAcrMOELt0mS5NQiMIaMq8z4Ke8nVs9HuR/ESQ+e+JzhAntpnH9JIkTH0PjUxXbVGg94Ry0t2DjH3Bg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B1nc1MEpBGCLr5zqDXwT9Y8DTaOy4XQDwUTbMC12ZYSDpaWsl4DjBCOvbkwAQKkAi97hkePyFUHEFDDVkuzKHRhwN3qEr/PZxmfSTnOIk7YbkSikg+vEgCJj2vC1xKwGaSlFQ2k/PgDpcYGRs913UPK71e76+PBZkYf6HmJdhwH8A91bSg7oRlSQBjdU0B35LMJUSL4ZvuVj9X7xsekLgh4ulcFBidLKOMerTNwInwoMLlnvOmGrhhPwBEcekBs23Y+LLM39DbyA0Zgjcet1t1Y1EZ7GZ+fRG9tilrRIICpgT9PCP6u2CB0a7mxAmsCDEvnoHmZmXPUJDux7bwzMqA==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHV/DwjmcM0l6zN+0+GU4Ndyn0PyqhM3t32
  • Thread-topic: How to create BaseClassInfo if I just have a name

> Or the question eventually could become how to create an object 
> of ITypeInfo from string name with other necessary hard-coded value?

If the string names a type in the current source file, you can find an IASTName referencing this type, and use ASTTypeInfo.create(IASTName).

If the string names a type in an included header file, you can find it in the index and use IndexTypeInfo.create().

Hope that helps,
Nate

Back to the top