Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] CDT API Forum and ASTVisitor
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Fri, 8 May 2020 08:18:09 +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=t6kdCbq2J+8Yqr2VDy410KGJzSsAqYgJu0Pw1YCrzU0=; b=nX/49fMrtBT+Tk3LHM8NWjalW/p++dG1L6KLpfyfwzCCknkI9UgdJzxa/ArtcUzPP0c3npJdReQdSQXUkd4KY8Hu0n4ZUAjxUIqR1B2POsnjAwolsL0rHzA7XJD8GsT4veDCP/VEDf4OSTLxj6+0ucIm+cdX78tTgNrshqFm7wIVwFSE5PJn+Shmz9RXKHbNVorE3oqf5+lp6yvVikTEvv8Py5AnosYpoDD2U5UmXn6Q7meBtswi26UolvM2G/jDTDz52tcv7Ayi6qHH+tscitXALk6SEahywcleh9bOfkdLNXX9ISjDld4J+J14Tuyc8T2OQyZKgydPUcp95JNXqA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y7S7OUY2abq47epfyjnH8ulBGNKMsOSpjJI3dK4LtXgzr38iz8z345bz14bxvcbTFA4rWwMns7CGsS4CsDTtUkaFUjYEnq+muVIDf17YvWWQKYQHfNz9McSsykByiHIaXjCk4VgYZvm22wsp6+WwGZCNLUFr0LNnpWxHdZAwsLj+495bx5IN8EfEZQPdRV/6y0QdIZjV9bkle18e8og15paNmthHtHcpCExHFeKWX8NBaNRFpmOGkHK0AfyHHIZbH3DFseegox+7gSKSuqryPSyXYZQYW+rNpuSpinXFVTPQhPoklxhiMzYDhckRPMa410JOJTsBv5IcmI5Shjt0aw==
  • 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: AQHWJQ8jJpAE7A9uf0KDwwBJcP0zng==
  • Thread-topic: CDT API Forum and ASTVisitor

Hi All,

Seems there is no CDT API Forum. Please kindly let me know if there is one. Home » Language IDEs » C / C++ IDE (CDT) seems for IDE user.

Assume I have a header file XYZ.h and its content is:

#include "ABC.h"
class XYZ
{
....
}

My java processing code to this effect:

ITranslationUnit tu= (ITranslationUnit) CoreModel.getDefault().create(file);  // file here is XYZ.h
IASTTranslationUnit ast= tu.getAST();
ast.accept(new ASTVisitor());

It seems to me that the visitor also visit ABC.h file content which is out of my expectation.

Thanks.

Back to the top