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: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Wed, 18 Mar 2020 01:47:39 +0000
  • Accept-language: 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=vwkp40R1DhfsaowYGLx/hb8j7zeBzkaqrD5OKv7k1Fo=; b=W7Y4fHbcJM4IGX4Ez2/M8DcCV7o9nWDdKqyEQ3+nxSpIaPpK8of52sZx4Si8voSDFA44tgJCLJ6Ui6IhkZ+cH0MR+nEOLaH8hruuUd5X3Voo9mF/Jzh5fsGKX73HrXXUvs1I9BzHoax6EwYyeUPk/UXq9K0uLrXKWFZ7qt3ZfPVZsP7M9yGpiA+aBFBDeWTUhAmxwlbVnJ2o4OdVkDkIFdkHGCVFKuhjJitnx+hFqs+mnmC9z9c+HweG0BciaGKhILfjjsOmGHchF2qrD3FvIIdlgmkgDtLDDDEfD6eWtNXIDBT85/84mckE4hwolNFpgtfyeeFMxE1TdwNMNc1gsQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T3zdR8p4LWXNbjqCNPBFt/i0B4Mg7Sqw9Kt3m7UQx7IBHGw45HheuZkdhdYfagTsj8LqEMC67zyF1hW6xiwu/bq3KiDP3r5wd/OdSPV8bgCvjFUod34PEU5nvy5wAtsmEBJXVQL4+tmkirfV1tIUfwJ4BSgTj+h6ehlOcYQRfDsN/mr23D9yh9y1msLG+FgoiR1xeiroc2MWH+6kg7BcV2uuo4a85WLRosqaeC37VZxirWX6a6yP8WwASmGdfclyd3xfpUA7ZjSJIlSvJMbstN3uACwN2ZRaoJzrcflTFlDnQ1j86varmNOCG8EQ6XxY/zNbA4ptJM4RdIA4epgvIA==
  • 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+GU4Ndyn0PyqhM3t32gAC3AIQ=
  • Thread-topic: How to create BaseClassInfo if I just have a name

Nate,

 

Thanks. Very helpful.

 

Sent from Mail for Windows 10

 


From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Nathan Ridge <zeratul976@xxxxxxxxxxx>
Sent: Tuesday, March 17, 2020 10:54:41 PM
To: cdt-dev@xxxxxxxxxxx <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] 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
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top