c++ - Difference between Eclipse CDT ast and model packages -
i use eclipse cdt analyse c/c++ source code part of research project. noticed cdt's api has 2 packages of "accessible" interfaces:
(1) package org.eclipse.cdt.core.dom.ast
(2) package org.eclipse.cdt.core.model
i assume (1) ast traversal, purpose of (2)?
the "model" less detailed model of source code ast. models entities variables, functions, classes, , preprocessor directives, not other things statements , expressions. it's used generating outline view, contents of project explorer, , entries in other views call hierarchy , type hierarchy.
i believe model pre-dates ast, , @ least of uses rewritten use ast instead.
Comments
Post a Comment