[cfe-dev] Clang Checker for Import Statements

ajotwani ajotwani85 at gmail.com
Thu Jul 14 13:34:21 PDT 2011

I want to write a checker that will analyze the #import statements within
Objective-C files and issue a warning when a certain file is included in the
import directive. For example if I have:

#import "x.h"

and x.h is the file name I am looking for then the checker would issue a
warning that x.h is being used when it comes across this import statement.

What would be the best way to go about doing this? Using the
InclusionDirective class?


View this message in context: http://clang-developers.42468.n3.nabble.com/Clang-Checker-for-Import-Statements-tp3170252p3170252.html
Sent from the Clang Developers mailing list archive at Nabble.com.

More information about the cfe-dev mailing list