Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Codan checker - IncludeStatement to TranslationUnit


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