-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Move newScope
out of AST nodes to dsymbolsem.d
#16880
Merged
+135
−137
Merged
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
c01f76b
extract newScope to dsymbolsem
dchidindu5 b2300c0
Extract newScope functions to dsymbolsem
dchidindu5 83ba750
Batch 3 errors encountered
dchidindu5 8ed06f1
Merge branch 'dlang:master' into practice1
dchidindu5 36489c9
Extract newScope and turn to visitor
dchidindu5 b9eab55
Merge branch 'dlang:master' into practice1
dchidindu5 21de527
Extract newScope and turn into a visitor
dchidindu5 311414f
Merge branch 'dlang:master' into practice1
dchidindu5 cd797ca
C
dchidindu5 b1c7e9c
Move newScope out of AST nodes to dsymbolsem.d
dchidindu5 fd7f928
Move newScope out of AST nodes to dsymbolsem.d
dchidindu5 e9c9c7e
Move newScope out of AST nodes to dsymbolsem.d
dchidindu5 d65d3f7
Merge branch 'dlang:master' into practice1
dchidindu5 74a7aaf
Move newScope out of AST nodes to dsymbolsem.d
dchidindu5 4e90a5d
Merge branch 'practice1' of https://github.com/dchidindu5/dmd into pr…
dchidindu5 1f4b10d
Move newScope out of AST nodes to dsymbolsem.d
dchidindu5 f6d9314
Move newScope out of AST nodes to dsymbolsem.d
dchidindu5 78c9e42
Fix segfault when compiling druntime
RazvanN7 063ccba
Merge branch 'master' into practice1
thewilsonator 02757c9
Remove newScope from attrib.h
dchidindu5 f5e9fc9
Merge branch 'dlang:master' into practice1
dchidindu5 15bab03
Merge branch 'practice1' of https://github.com/dchidindu5/dmd into pr…
dchidindu5 f788b09
Remove whitespace
dchidindu5 e0f76cd
make newScope extern(D)
dchidindu5 9ec7a80
Remove newScope from frontend.h
dchidindu5 4b0e00b
Fix newScope in frontend.h
dchidindu5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
...in which case remove this from this header
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.
if for some reason it needs to be, you will also need to update
frontend.h
with the same changes (look for a failure on the CircleCI tester)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.
Razvan said I only should remove newScope from
attrib.h
@thewilsonatorThere 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.
Yes, but that doesn't mean you need add it here. You must do one of two things:
leave
newScope
extern(C++), leave this
dsymbol.haddition here and add it to
frontend.h` (see the Circle CI failure)make
newScope
extern(D)
and remove this addition (and don't updatefrontend.h
, because there is nothing that needs updating).newScope
is unused by LDC and from what I can tell is unused by GDC, so there is no need for it to beextern(C++)
.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.
it says "newly generated header file (/home/circleci/dmd/generated/linux/release/64/frontend.h) doesn't match with the reference header file (/home/circleci/dmd/compiler/src/dmd/frontend.h) and The file
src/dmd/frontend.h
seems to be out of sync. This is likely because changes were made which affect the C++ interface used by GDC and LDC.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.
I think I got it now
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.
Yes, this is because
newScope
isextern(C++)
. See also the diff that is says you should apply:Note that you should leave out that last addition if you make
newScope
extern(D)