Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Your advice
  • From: Nathan Ridge <zeratul976@xxxxxxxxxxx>
  • Date: Sat, 29 Feb 2020 04:48:42 +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=XdCxuKyaAZGrTdKHfUEBWTC8HqrIgfF8GHCDy00CKy8=; b=I0igRvgPEJY2UBgDw5Ze5iSE1SSCO5mjcQWqFNz1ZUtUHHYpZe133Y3m+MwgkKXlHvAbLVvLIKQ7nQFRRcPsBoBEEzM9ZPvwyb7CplNa9ojpvDPzbLzGukCBbWI3mG9QZg5N04X/qsCRJhamPW1aQ159fWTe4b+vqU7RABGnOKSsxQSTroFTJPX6c/wilxotdX93YVKYMWoHYNyYEEEHwXTh98IY3zCIL8FM+K0FGa2Tq3dWTDSc57IYZp0VS0vaDe5P3wXOfpSDdbw97OQUCfpMS77vD/MMg2wnWy6XX6Vf7cFXxT0fLirkxLWYwVzqrxbkWfUT/hp1AtoGXVYdsg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GBeiBYBusGKuDPqMO0kcHQgs/NPer9WqtR5WLfIZEGoFaoQYoE7CYygxu+3LjohUvWfQHnwHLhTXChK9yC1kor3y4KY2CL1ANkWGfBtgzeLwPu6r6nkqd4VqwUG3QLtLeUUFjb3WAwC61+4Bnst3fAO8uaoCqxsVh4+XH10ln0qNsgIySUBhAfoSKnkBgkOUPWwjRZCS4bE+2jlUK+jUj52MjtJKbQmoUoLTcTzta/YgSz6D//0fUramXpPTnVBC0YnhnEj/gQdBptacpqQvvalfwEfVcs2KCKt3z0RjuVHNwui7EyEq897CeI5kztq07IjEHhTldmchioPRzufzRQ==
  • 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: AQHV65S4k1GaPOv83Eick3ZQtzFoQqgrV4uAgAFgY8uAAA6VgIAAQeShgAFOp1OAAZyGAYAAApGigABccr6AAUxWSw==
  • Thread-topic: [cdt-dev] Your advice

You should be able to use the public IAST* / ICAST* / ICPPAST* interfaces, as in your last code example, rather than the concrete CAST* / CPPAST* classes.

You are right that there are other kinds of declarations in C++ than classes/structs, variables, and functions. For comprehensive handling of all declaration types, you would want to handle all the derived classes of IASTDeclaration.

Hope that helps,
Nate

Back to the top