[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Codan checker - IncludeStatement to TranslationUnit
|
It appears that this is in fact answered in the FAQ on the CDT wiki:
http://wiki.eclipse.org/CDT/User/FAQ#I_am_developing_a_plug-in_that_requires_a_parsing_a_c_file_and_obtaining_the_information_such_as_method_signatures.2C_parameter_types_etc._How_can_I_do_this_using_the_CDT_parser.3F .
I guess I should have looked there first, instead of searching through the sources. My apologies.
Greetings,
Mathias De Maré
2011/8/4 Mathias De Maré
<mathias.demare+cdt@xxxxxxxxx>
Hello,
I’m trying to write a Codan checker.
It
consists of 2 parts. In the first, it tries to visit all of the nodes
of an IASTTranslationUnit, and check what preprocessor statements are
before/after it, to detect a preprocessor structure. I already have this
part working.
Now,
I want to take a IASTPreprocessorIncludeStatement and get the
corresponding IASTTranslationUnit, to do additional checks on that.
I’m afraid I’m new to the CDT code, and I can’t seem to find the right way to do this.
How should I go about handling this issue?
Greetings,
Mathias De Maré