Closed bruntib closed 5 years ago
Can one of the admins verify this patch?
LGTM! Thanks!
In CTU mode the macro's position can't be located in the imported TU.
Is this an error in CTU? Do we expect to have that location imported? FYI @balazske is working right now on importing all source locations properly....
Could you please check if you have the error with this branch? balazske:sourcelocation_import_fix We expect all source locations proper there.
Hmmm. The idea behind macro expansion is to receive the Preprocessor
object after the end of the analysis, which will leave it in its final state, containing every preprocessor related event for that given TU. Unless you actually merge all Preprocessor
states for each TU, I don't think this'll work, and I'm not even sure where we could begin with that.
In CTU mode the macro's position can't be located in the imported TU. This commit skips this case, however this might be a symptomatic treatment.