Skip to main content

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

Hi Markus, thank you for the answer.

That means, I have to gather all Non System Includes of the Root C
File first to get the relevant header file names and then I have to
check for each containing filename of a comment that it is part of the
list of found c header filenames.

Thats right?

Sincerely,

Helko Glathe



2010/8/19 Schorn, Markus <Markus.Schorn@xxxxxxxxxxxxx>:
> The only access to comments you have is
> IASTTranslationUnit.getComments().
> You can use IASTComment.getContainingFilename() or
> IASTComment.getFileLocation()
> to filter out the comments you are interested in.
>
> Markus.
>
>> -----Original Message-----
>> From: cdt-dev-bounces@xxxxxxxxxxx
>> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Helko Glathe
>> Sent: Wednesday, August 18, 2010 6:47 PM
>> To: cdt-dev@xxxxxxxxxxx
>> Subject: [cdt-dev] Re: Accessing IASTComments from non
>> systemIASTInclusionNode
>> Importance: Low
>>
>> 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
>> >
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>


Back to the top