Avoid unnecessary out-of-scope file promotion when the cursor results in no declaration #172
Labels
Area-Translation
Issues concerning the translation from libclang into Biohazrd
Bug
Concept-OutputFriendliness
Issues concerning the friendliness of using the Biohazrd output
Out-of-scope file promotion happens eagerly in
TranslationUnitParser.CreateDeclarations
:https://github.com/InfectedLibraries/Biohazrd/blob/99a504b77c076651ade931aa168ce7359adc0a4a/Biohazrd/TranslationUnitParser.cs#L251-L253
An unfortunate side-effect of this is if the
cursor
results in no translated declarations, the file is still promoted and the warning is still emitted.This was discovered with this workaround (see #171 for some background.)
The text was updated successfully, but these errors were encountered: