Akira Hatanaka
3738ce05a7
Add support for a backdoor driver option that enables emitting header
...
usage information in JSON to a file
Each line in the file is a JSON object that has the name of the main
source file followed by the list of system header files included
directly or indirectly from that file.
For example:
{"source":"/tmp/foo.c",
"includes":["/usr/include/stdio.h", "/usr/include/stdlib.h"]}
To reduce the amount of data written to the file, only the system
headers that are directly included from a non-system header file are
recorded.
In order to emit the header information in JSON, it is necessary to set
the following environment variables:
CC_PRINT_HEADERS_FORMAT=json CC_PRINT_HEADERS_FILTERING=only-direct-system
The following combination is equivalent to setting CC_PRINT_HEADERS=1:
CC_PRINT_HEADERS_FORMAT=textual CC_PRINT_HEADERS_FILTERING=none
Differential Revision: https://reviews.llvm.org/D137996
2022-12-07 15:30:19 -08:00
..
2022-12-07 15:30:19 -08:00
2009-12-15 20:14:24 +00:00
2019-03-19 22:09:55 +00:00
2019-04-11 21:18:22 +00:00
2021-11-05 00:43:40 -05:00
2015-07-30 21:30:00 +00:00
2022-12-07 16:30:16 +01:00
2021-06-23 07:40:38 -04:00
2015-03-18 07:53:20 +00:00
2020-12-03 07:53:59 -08:00
2022-11-16 10:20:14 +00:00
2021-08-18 07:33:14 -04:00
2022-11-23 01:21:09 +01:00
2022-11-23 01:21:09 +01:00
2022-05-06 13:46:49 +00:00
2016-01-27 02:18:28 +00:00
2019-04-26 15:35:51 +00:00
2021-10-17 09:23:43 -04:00
2018-10-18 17:42:41 +00:00
2013-03-05 22:51:04 +00:00
2010-11-16 10:26:08 +00:00
2012-10-19 12:44:48 +00:00
2016-04-20 01:02:18 +00:00
2021-07-25 23:30:57 -05:00
2022-04-06 11:37:37 +08:00
2016-11-18 01:11:32 +00:00
2022-04-12 13:29:46 -07:00
2022-12-06 11:02:27 +08:00
2009-12-15 20:14:24 +00:00
2009-12-15 20:14:24 +00:00
2009-12-15 20:14:24 +00:00
2009-12-15 20:14:24 +00:00
2009-12-15 20:14:24 +00:00
2009-12-15 20:14:24 +00:00
2017-07-14 09:23:40 +00:00
2013-04-10 21:10:39 +00:00
2009-12-15 20:14:24 +00:00
2015-06-26 17:49:10 +00:00
2009-12-15 20:14:24 +00:00
2010-02-26 19:42:53 +00:00
2016-11-17 22:45:31 +00:00
2016-11-17 22:45:31 +00:00
2016-11-17 22:45:31 +00:00
2016-11-17 22:45:31 +00:00
2009-12-15 20:14:24 +00:00
2009-12-15 22:01:24 +00:00
2022-05-12 09:26:44 -04:00
2018-09-13 21:10:08 +00:00
2021-10-09 08:20:20 -04:00
2009-12-15 20:14:24 +00:00
2016-01-19 15:15:31 +00:00
2016-04-16 00:07:09 +00:00
2009-12-15 20:14:24 +00:00
2012-10-19 12:44:48 +00:00
2010-04-07 18:43:41 +00:00
2022-07-23 14:10:11 +02:00
2022-02-12 07:25:06 -05:00
2022-05-19 11:34:42 -04:00
2022-10-21 11:23:10 +00:00
2019-05-16 21:13:49 +00:00
2022-05-11 15:05:55 -07:00
2022-06-03 17:54:03 -07:00
2006-06-18 07:18:04 +00:00
2021-07-25 23:30:57 -05:00
2022-06-29 19:36:22 +01:00
2009-12-15 20:14:24 +00:00
2007-07-19 00:07:36 +00:00
2021-10-17 07:54:48 -04:00
2021-10-17 07:54:48 -04:00
2021-10-17 07:54:48 -04:00
2022-09-13 11:08:58 -04:00
2019-11-25 17:35:12 -05:00
2019-03-19 01:51:19 +00:00
2022-05-19 11:34:42 -04:00
2021-07-25 23:30:57 -05:00
2009-12-15 20:14:24 +00:00
2016-10-27 14:17:10 +00:00
2022-11-18 09:39:47 -08:00
2022-04-12 13:29:46 -07:00
2022-05-12 09:26:44 -04:00
2022-05-12 09:26:44 -04:00
2012-10-01 23:39:44 +00:00
2018-07-25 19:16:26 +00:00
2009-12-15 20:14:24 +00:00
2011-07-11 14:53:27 +00:00
2019-08-09 19:49:14 +00:00
2019-05-27 19:15:30 +00:00
2019-02-05 22:34:55 +00:00
2019-01-15 20:08:23 +00:00
2009-12-15 20:14:24 +00:00
2019-03-21 20:42:13 +00:00
2019-05-10 20:11:36 +00:00
2022-06-27 11:37:40 +01:00
2022-11-03 13:58:47 -07:00
2022-04-06 11:37:37 +08:00
2022-11-10 17:27:29 +08:00
2022-02-23 15:00:18 -08:00
2022-11-22 17:01:39 -08:00
2022-04-22 02:03:55 -04:00
2022-02-23 15:00:18 -08:00
2022-02-23 15:00:18 -08:00
2021-08-16 18:34:29 +09:00
2022-10-03 10:58:45 +03:00
2022-11-17 19:48:01 -05:00
2016-04-05 08:36:47 +00:00
2016-04-05 08:36:47 +00:00
2017-12-14 19:22:41 +00:00
2022-11-02 13:49:04 -07:00
2022-08-26 18:20:06 -04:00
2022-08-26 18:20:06 -04:00
2017-12-14 19:22:41 +00:00
2021-04-01 09:47:56 +01:00
2022-09-20 11:31:38 -07:00
2022-12-01 07:21:07 -08:00
2021-07-25 23:30:57 -05:00
2022-05-11 06:42:00 -04:00
2022-05-11 06:42:00 -04:00
2021-04-21 13:34:33 +03:00
2021-04-26 22:04:29 +03:00
2014-06-26 17:24:16 +00:00
2019-02-14 04:13:17 +00:00
2014-02-04 19:18:32 +00:00
2013-08-28 20:35:38 +00:00
2010-03-26 17:49:16 +00:00
2014-02-24 20:50:36 +00:00
2016-02-09 08:51:26 +00:00
2013-07-23 18:01:49 +00:00
2022-05-12 09:26:44 -04:00
2019-05-10 20:11:36 +00:00
2014-10-25 11:40:40 +00:00
2013-07-04 16:16:58 +00:00
2012-07-11 19:58:23 +00:00
2018-04-06 15:14:32 +00:00
2013-05-25 01:35:18 +00:00
2009-12-15 20:14:24 +00:00
2011-07-07 03:40:37 +00:00
2022-05-04 08:35:47 -04:00
2009-12-15 20:14:24 +00:00
2011-06-14 18:19:37 +00:00
2009-12-15 20:14:24 +00:00
2014-02-04 19:18:28 +00:00
2022-02-12 07:25:06 -05:00
2014-04-04 00:17:16 +00:00
2009-12-15 20:14:24 +00:00
2021-07-25 23:30:57 -05:00
2009-12-15 20:14:24 +00:00
2022-05-12 09:26:44 -04:00
2021-01-27 12:34:43 -08:00
2019-05-04 06:46:18 +00:00
2022-04-30 10:03:51 -04:00
2018-01-04 22:58:30 +00:00
2015-08-01 02:55:59 +00:00
2021-11-30 15:06:04 -05:00
2021-11-30 15:06:04 -05:00
2010-02-12 08:03:27 +00:00
2010-02-12 08:03:27 +00:00
2009-12-15 20:14:24 +00:00
2008-01-07 19:50:27 +00:00
2019-11-04 12:49:19 -05:00
2022-03-23 14:49:17 +01:00
2015-07-28 16:48:12 +00:00
2013-01-28 20:55:54 +00:00
2021-07-25 23:30:57 -05:00
2021-07-28 22:50:54 -05:00
2016-10-25 10:13:10 +00:00
2011-08-30 23:07:51 +00:00
2011-08-30 23:07:51 +00:00
2012-05-09 18:49:52 +00:00
2012-10-19 12:44:48 +00:00
2013-09-04 04:12:25 +00:00
2013-02-08 22:30:31 +00:00
2009-12-15 20:14:24 +00:00
2016-06-23 15:07:32 +00:00
2017-04-29 00:34:47 +00:00
2013-04-29 17:31:48 +00:00
2013-02-22 18:35:59 +00:00
2012-03-27 18:47:48 +00:00
2009-12-15 20:14:24 +00:00
2008-02-25 19:03:15 +00:00
2022-02-12 07:25:06 -05:00
2019-12-03 16:43:35 -08:00
2022-11-29 08:59:09 -08:00
2022-05-13 06:39:47 -07:00
2019-09-27 05:37:06 +00:00
2021-06-23 13:26:03 +02:00
2020-10-25 06:46:25 -07:00
2022-06-02 07:52:26 -07:00
2022-02-02 11:16:11 -08:00
2018-11-15 03:04:21 +00:00
2022-11-09 16:56:03 +08:00
2014-10-27 20:02:19 +00:00
2022-09-02 13:36:23 -05:00
2022-02-23 22:28:29 -05:00
2015-06-24 22:02:16 +00:00
2022-08-23 14:29:52 +00:00
2021-08-25 12:48:59 -05:00
2021-08-25 12:48:59 -05:00
2010-09-17 02:47:35 +00:00
2021-07-25 23:30:57 -05:00
2013-01-09 03:16:42 +00:00
2021-08-25 12:48:59 -05:00
2017-10-16 23:07:15 +00:00
2022-12-07 15:30:19 -08:00
2020-02-14 19:41:01 +01:00
2019-09-17 08:19:17 +00:00
2022-11-30 08:35:53 -08:00
2022-03-16 12:17:52 +01:00
2021-08-25 12:48:59 -05:00
2022-10-26 12:42:56 -07:00
2021-03-03 08:48:27 -05:00
2021-03-03 08:48:27 -05:00
2019-11-12 12:45:18 +00:00
2016-04-01 19:02:20 +00:00
2019-08-01 09:10:37 +00:00
2021-07-25 23:30:57 -05:00
2022-06-10 13:32:19 -07:00
2022-05-16 15:46:59 -07:00
2021-05-18 10:34:14 -04:00
2016-05-06 21:17:32 +00:00
2015-08-31 21:48:52 +00:00
2021-08-18 07:33:14 -04:00
2022-07-14 07:50:58 +02:00
2012-06-06 17:25:21 +00:00
2021-09-23 16:15:40 -07:00
2022-02-12 07:25:06 -05:00
2021-08-18 07:33:14 -04:00
2016-04-05 08:36:47 +00:00
2022-03-07 16:45:42 -08:00
2021-08-20 11:10:53 -04:00
2021-08-01 19:08:13 -05:00
2018-09-19 16:18:55 +00:00
2022-08-31 18:13:16 -07:00
2022-10-31 23:39:38 +08:00