Ofek
a62c5a84b5
Fix #5889 : add block-lookahead logic to processAST ( #5903 )
...
The code here assumes a top-level AST subtree can be in 3 states:
1. The header line indicates it's system code (e.g. includes `/usr`
etc.)
2. The header line indicates it's user code (includes `<source>`)
3. The header contains no such info (typically it includes `<invalid
sloc>`)
For the 3rd case this PR looks-ahead inside the current subtree and
decides based on its contents.
This is enough to filter out `<vector>` or `<string>` contents, as
demonstrated in issue #5889 (added a test). This solution holds also for
the case from issue #3849 .
2023-12-28 16:10:09 +02:00
..
2023-12-28 16:10:09 +02:00
2023-11-27 10:33:03 -05:00
2023-11-04 20:54:43 +01:00
2021-05-23 13:40:51 -05:00
2020-05-17 15:20:06 -04:00
2023-05-22 22:35:01 -05:00
2023-11-11 13:56:25 +01:00
2021-04-26 18:34:16 -05:00
2023-11-07 23:59:40 +01:00
2021-10-05 01:45:05 +02:00
2021-06-02 22:58:41 +02:00
2019-08-21 01:26:16 +02:00
2021-09-13 20:22:27 +02:00
2023-02-02 21:37:22 -05:00
2023-11-07 18:19:07 +01:00
2023-07-30 19:01:16 -05:00
2023-03-18 11:46:27 +01:00
2023-11-27 22:32:04 -06:00
2023-02-27 18:06:38 -06:00
2021-03-11 20:40:50 -06:00
2023-02-26 12:21:35 -05:00
2023-05-22 22:35:01 -05:00
2023-02-27 18:06:38 -06:00
2023-10-24 15:30:00 -04:00
2023-11-03 12:44:46 -04:00
2023-11-22 03:06:26 +01:00
2023-02-27 18:06:38 -06:00
2023-07-30 19:01:16 -05:00
2023-11-04 20:54:24 +01:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-06-28 20:13:10 -04:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-10-22 12:18:14 +02:00
2023-07-10 21:31:04 -05:00
2023-12-23 17:54:46 -06:00
2023-10-08 18:11:32 -05:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-06-11 17:00:53 -04:00
2023-02-27 18:06:38 -06:00
2023-12-28 16:10:09 +02:00
2023-06-17 10:52:51 -04:00
2023-02-27 18:06:38 -06:00
2023-10-30 19:40:45 -05:00
2023-10-15 18:44:27 +02:00
2023-10-22 12:15:44 +02:00
2023-02-27 18:06:38 -06:00
2018-05-24 12:36:57 -05:00
2023-12-18 20:11:11 -06:00
2023-10-22 12:15:44 +02:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-06-11 17:35:59 -04:00
2023-02-27 18:06:38 -06:00
2023-04-02 19:52:03 -05:00
2023-12-11 19:35:45 -06:00
2023-02-27 18:06:38 -06:00
2023-05-04 14:02:10 -05:00
2023-06-19 20:26:15 -05:00
2023-02-27 18:06:38 -06:00
2023-02-27 18:06:38 -06:00
2023-05-16 03:53:57 +02:00
2023-07-17 23:36:36 +02:00
2023-06-11 17:35:59 -04:00
2023-08-07 22:17:12 -05:00
2023-02-27 18:06:38 -06:00