-
Notifications
You must be signed in to change notification settings - Fork 27
Reprioritize the analysis search path #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
975c98e to
f7ce4ed
Compare
This change enables behaviors like: - shadowing standard library units with a unit on `DCC_UnitSearchPath` - shadowing `DCC_UnitSearchPath` units with a `DCCReference` unit These cases are somewhat unusual, but they are possible in Delphi.
f7ce4ed to
075807c
Compare
fourls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just have a couple of questions.
delphi-frontend/src/main/java/au/com/integradev/delphi/symbol/SymbolTableBuilder.java
Show resolved
Hide resolved
delphi-frontend/src/main/java/au/com/integradev/delphi/msbuild/DelphiProjectParser.java
Show resolved
Hide resolved
075807c to
094b175
Compare
29243ea to
1dbe3a8
Compare
fourls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one nitpick.
delphi-frontend/src/main/java/au/com/integradev/delphi/msbuild/DelphiProjectParser.java
Outdated
Show resolved
Hide resolved
1dbe3a8 to
7229927
Compare
fourls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This PR includes the browsing path in the search path, makes changes to the order of paths during
SearchPathcreation, and changes up the order of the unit data processing in theSymbolTableBuilder.The new search path priority is (highest to lowest):
sonar.sourcesDCCReferenceDCC_UnitSearchPathDebugger_DebugSourcePathDelphiLibraryPathDelphiTranslatedLibraryPathDelphiBrowsingPathThis change enables behaviors like:
DCC_UnitSearchPathDCC_UnitSearchPathunits with aDCCReferenceunitThese cases are somewhat unusual, but they are possible in Delphi.