Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Your advice
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Thu, 27 Feb 2020 02:17:56 +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=Dp48cfy6vyfYP6bJzp8MMErimFP1hjzJycMFO5xbnLk=; b=MjausX2nZjxhKprecYQdKZpMX4Ai1VEQ3pTBRkQ4ovLzYHcU5t17DNK1o5Uap8hkS580BL/8tbcr6MNGDAyG8/VCP1V1qochqCyUmiRhl1CVU2J82n+Y0CTUP+kfb+aS1U6+YsTEfMpmkRMUMZjAcBTEXfxkJ2ksS9t7IJE7iu5Y+r0sacQfS3Bziuvp45PclZK/G3/T4LxaQ013Myl8qKiHEHLs9bkyl++N0bcH2MhSpZTu3DqAnC8mUdrXGh5Tl5F46HRHL4q2evF1OPKA6MW27We4yjDhatYSHvQnx5Xsm2L+L0LKprp2pjtqDOrN0FE9a/B6OWDqemJHLzyvYQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RV2Z6yaaLd3Esbl6hbY57elGfjvM9CkNoka7V80elKDroR7chsMvCfs84U9SCJpwvrjDJmLr/5F4PuhiT+KQkO2EDOFpemzj5DUPSBKJeIBSJLl+sF93/kGphjq9DyulklHaG7e/jQdL5vWSTRYUVf4M/QEl+r2a3J3h3hDLMahOKyauzvad+wlH8IqFzM+Emx7VR6GE55fTWy4Ye+bXR/Dx49D+xE0CLvOAUjyeSutJoD1UhutTny2RA2tYsxqDbA5i2hCWboeQis3jTq1V1Cs4bZNoolno6IRy/N+dLX+NmiMzLnRaCjOGYPxo8O32qsJB7oTCOPJBCFTvWOjfIQ==
  • 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: AQHV65S4k1GaPOv83Eick3ZQtzFoQqgrV4uAgAFgY8uAAA6VgIAAQeShgAAAjeGAAUfyIg==
  • Thread-topic: [cdt-dev] Your advice

Hi,

 

Hope I can close this thread asap.

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Wednesday, February 26, 2020 2:44 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Your advice

 

@Override

    public int visit(IASTDeclaration decl) {

        // how to get decl's lowest detail info?

        return PROCESS_CONTINUE;

    }

 

From: Ming Cheng <chengm349@xxxxxxxxxxx>
Sent: Wednesday, February 26, 2020 6:43 AM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Your advice

 

Hope I could understand your concern.

 

@Override

    public int visit(IASTDeclaration decl) {

        IASTDeclarationImplClass.visit(index, decl);

        return PROCESS_CONTINUE;

    }

 

Question is that how to know a declaration is class/struct/function as detail as possible yet without using internal iface/class?

 

From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
Sent: Wednesday, February 26, 2020 2:45 AM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Your advice

 

They are internal - use what you like if you are going to peek inside the API - I don't think it matters in this case but I would generally use the highest item in the hierarchy that serves my purposes. 

 

(BTW ICASTAmbiguousDeclarator does not exist, I assume you mean IASTAmbiguousDeclarator)

~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com

 

 

On Tue, 25 Feb 2020 at 20:54, Ming Cheng <chengm349@xxxxxxxxxxx> wrote:

so the ans should be ICASTAmbiguousDeclarator interfaces?

 

From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
Sent: Tuesday, February 25, 2020 4:52 AM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Your advice

 

 

 

On Mon, 24 Feb 2020 at 23:39, Ming Cheng <chengm349@xxxxxxxxxxx> wrote:

 

Should I use class like CASTAmbiguousDeclarator or interface like ICASTAmbiguousDeclarator?

 

Generally you should avoid accessing the internal classes from outside of CDT. Not sure if you really need them here or not. 

 

Please submit a change to CDT containing your improvement to the visitor classes.

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 


Back to the top