Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Re: Accessing IASTComments from non system IASTInclusionNode

Hello again,

does anyone have an idea how to solve my problem?

Sincerely,

Helko Glathe



2010/8/16 Helko Glathe <glathe.helko@xxxxxxxxxxxxxx>:
> Hello,
>
> I need to get all the IASTComments contained by the resource which is
> referenced by an IASTInclusionNode.
>
> First - on the given IASTTranslationUnit - I've got the dependency
> tree (IDependencyTree) and called the method getInclusions() on it to
> get all IASTInclusionNode's.
>
> But an IASTInclusionNode only provides methods for getting the
> Inclusion Statement etc...
>
> Is there a method for getting all IASTComment's directly contained by
> the resource which is responsable for a certain IASTInclusionNode?
>
>
> Or do I need to buid an extra TranslationUnit for the resource
> referenced by the Filename of the IASTPreprocessorIncludeStatement?
>
>
> Many thanks in advance, Helko
>


Back to the top