Jon Ross-Perkins
dffe4a36de
When merging functions, detect uses of imports prior to a redecl. ( #3836 )
...
LookupNameInDecl is only called from DeclNameStack, but I'm adding
mark_imports_used there because it feels more consistent. Not sure if we
want a better API boundary. I admit I'm also suspicious of its call to
LookupInCurrentScope but maybe it's okay due to how imports work.
I was choosing to print multiple diagnostics when a declaration is
previously used _and_ doesn't match because I think the "previously
used" is more important, but the "doesn't match" may give an additional
hint about why it didn't work.
The merge.h utility function is because I think we can follow a similar
model for identifying errors with other declarations: classes,
interfaces, etc.
2024-04-02 17:44:55 +00:00
..
2024-03-13 23:44:38 +00:00
2024-03-06 23:32:33 +00:00
2024-03-18 20:01:08 +00:00
2024-03-13 23:44:38 +00:00
2024-03-13 23:44:38 +00:00
2024-03-13 23:44:38 +00:00
2024-03-06 23:32:33 +00:00
2024-04-01 18:25:27 +00:00
2024-03-18 20:01:08 +00:00
2024-04-02 17:20:09 +00:00
2024-03-06 23:32:33 +00:00
2024-03-13 23:44:38 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-06 23:32:33 +00:00
2024-03-22 18:10:49 +00:00
2024-03-06 23:32:33 +00:00
2024-03-16 22:38:23 +00:00
2024-03-06 23:32:33 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-04-02 17:44:55 +00:00
2024-03-22 18:10:49 +00:00
2024-03-06 23:32:33 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-06 23:32:33 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-06 23:32:33 +00:00
2024-03-22 18:10:49 +00:00
2024-03-06 23:32:33 +00:00
2024-03-22 18:10:49 +00:00
2024-04-01 18:25:27 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-04-02 17:44:55 +00:00
2024-04-01 18:25:27 +00:00
2024-03-22 18:10:49 +00:00
2024-03-22 18:10:49 +00:00
2024-03-06 23:32:33 +00:00
2024-03-13 23:44:38 +00:00
2024-03-13 23:44:38 +00:00
2024-03-06 23:32:33 +00:00
2024-04-02 17:20:09 +00:00
2024-04-02 17:20:09 +00:00
2024-04-02 17:20:09 +00:00
2024-04-02 17:20:09 +00:00
2024-03-13 23:44:38 +00:00
2024-03-06 23:32:33 +00:00
2024-03-06 23:32:33 +00:00
2024-03-13 23:44:38 +00:00
2024-03-13 23:44:38 +00:00
2024-04-01 18:25:27 +00:00
2024-04-01 18:25:27 +00:00
2024-03-13 23:44:38 +00:00
2024-03-06 23:32:33 +00:00
2024-03-06 23:32:33 +00:00
2024-03-06 23:32:33 +00:00
2024-04-01 18:25:27 +00:00
2024-04-01 18:25:27 +00:00
2024-04-01 18:25:27 +00:00
2024-03-13 23:44:38 +00:00
2024-03-13 23:44:38 +00:00
2024-03-13 23:44:38 +00:00
2024-03-06 23:32:33 +00:00