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
..
2023-08-31 19:54:32 +00:00
2024-04-02 17:44:55 +00:00
2024-04-02 17:20:09 +00:00
2024-03-19 19:47:29 +00:00
2024-03-19 19:47:29 +00:00
2024-03-08 20:28:25 +00:00
2024-04-02 17:20:09 +00:00
2023-11-14 22:24:03 +00:00
2024-04-02 17:44:55 +00:00
2024-04-02 17:44:55 +00:00
2024-03-28 18:15:18 +00:00
2024-03-28 18:15:18 +00:00
2024-04-02 17:44:55 +00:00
2024-04-01 18:25:27 +00:00
2024-03-08 16:01:12 +00:00
2024-03-28 18:15:18 +00:00
2024-04-02 17:20:09 +00:00
2024-01-12 02:56:22 +00:00
2024-03-28 18:15:18 +00:00
2024-04-01 18:25:27 +00:00
2024-03-27 22:55:22 +00:00
2024-03-09 00:21:29 +00:00
2024-03-28 18:15:18 +00:00
2024-03-19 19:47:29 +00:00
2024-03-09 00:21:29 +00:00
2024-04-01 18:25:27 +00:00
2024-03-09 00:21:29 +00:00
2024-03-28 18:15:18 +00:00
2024-03-09 00:21:29 +00:00
2024-04-02 17:44:55 +00:00
2024-04-01 20:03:05 +00:00
2024-03-09 00:21:29 +00:00
2024-04-01 18:25:27 +00:00
2024-03-09 00:21:29 +00:00
2024-03-28 18:15:18 +00:00
2024-04-01 18:25:27 +00:00
2024-03-28 18:15:18 +00:00
2024-03-26 19:56:11 +00:00
2024-03-09 00:21:29 +00:00
2024-03-09 00:21:29 +00:00
2024-03-09 00:21:29 +00:00
2024-03-18 17:40:00 +00:00
2024-04-01 18:25:27 +00:00
2024-03-28 18:15:18 +00:00
2024-03-09 00:21:29 +00:00
2024-04-01 20:03:05 +00:00
2024-03-09 00:21:29 +00:00
2024-03-09 00:21:29 +00:00
2024-03-09 00:21:29 +00:00
2024-03-09 00:21:29 +00:00
2024-03-28 18:15:18 +00:00
2024-04-01 18:25:27 +00:00
2024-04-02 17:44:55 +00:00
2024-03-07 23:10:14 +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-27 22:22:15 +00:00
2024-02-27 19:58:19 +00:00
2024-03-20 23:32:44 +00:00
2024-03-28 18:15:18 +00:00
2024-02-28 01:56:27 +00:00
2024-04-01 18:25:27 +00:00
2024-03-19 19:47:29 +00:00
2024-03-19 19:47:29 +00:00
2024-04-02 17:44:55 +00:00
2024-04-02 17:44:55 +00:00
2024-03-28 18:15:18 +00:00
2024-03-28 18:15:18 +00:00
2024-03-09 00:21:29 +00:00
2024-03-21 20:46:34 +00:00
2024-03-19 19:47:29 +00:00
2024-03-19 19:47:29 +00:00
2024-02-27 19:58:19 +00:00
2024-03-28 18:15:18 +00:00
2024-03-19 19:47:29 +00:00
2024-03-18 17:40:00 +00:00
2024-03-09 00:21:29 +00:00
2024-03-09 00:21:29 +00:00
2024-01-25 18:19:22 +00:00
2024-04-01 18:25:27 +00:00
2024-04-01 18:25:27 +00:00
2024-03-15 23:21:12 +00:00
2024-03-15 23:21:12 +00:00