Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

PTP/articles/static analysis

< PTP‎ | articles

Presentation is available here: [1] and also here: Static Analysis in PTP with CDT, EclipseCon, March 2008

  • The code in this EclipseCon 2008 talk mostly uses Eclipse 3.3 (Europa), CDT 4.0, and PTP 2.0. For information on a development environment for this, see Environment set up for PTP 2.0
    • When installing CDT 4.0.x, be sure to get the optional Testing feature, which has the DOM AST view shown in the talk.
  • The code examples in the talk are in the repository; information is on slide 9
    • CVS repository info
      • Host:
      • Repository path: /cvsroot/tools
      • User: anonymous (or your committer id)
      • Connection type: pserver (or extssh if you have a committer id)
    • Configure branches as shown in the development environment setup information above, and under ptp_2_0 branch, check out the org.eclipse.ptp.pldt.* projects under org.eclipse.ptp/tools
      • You don't need the rest of PTP to use PLDT
    • Open up HEAD to find the sample code for the talk
      • Open up org.eclipse.ptp project, open tools/samples
      • Check out org.eclipse.ptp.pldt.sampleCDTstaticAnalysis project
  • To run the examples in the code:
    • Load up the code above
    • launch an Eclipse Application with the code in the workspace
    • create a CDT project with some code
    • use the three buttons added to the toolbar to see output
    • Note that output is in the Console view of the development workbench where you checked out the code (not in the runtime workbench when the C projects are)

Copyright © Eclipse Foundation, Inc. All Rights Reserved.