Skip to main content

[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: .

I guess I should have looked there first, instead of searching through the sources. My apologies.

Mathias De Maré

2011/8/4 Mathias De Maré <mathias.demare+cdt@xxxxxxxxx>

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?

Mathias De Maré

Back to the top