Manuel Klimek
1abf789c7a
Various fixes to clang-format's macro handling.
...
Some of this is still pretty rough (note the load of FIXMEs), but it is
strictly an improvement and fixes various bugs that were related to
macro processing but are also imporant in non-macro use cases.
Specific fixes:
- correctly puts espaced newlines at the end of the line
- fixes counting of white space before a token when escaped newlines are
present
- fixes parsing of "trailing" tokens when eof() is hit
- puts macro parsing orthogonal to parsing other structure
- general support for parsing of macro definitions
Due to the fix to format trailing tokens, this change also includes a
bunch of fixes to the c-index tests.
llvm-svn: 171556
2013-01-04 23:34:14 +00:00
..
2012-11-13 19:12:37 +00:00
2012-12-10 20:08:37 +00:00
2011-10-17 09:54:52 +00:00
2012-11-15 18:37:27 +00:00
2012-06-21 22:04:37 +00:00
2012-06-28 01:38:21 +00:00
2012-11-15 22:03:13 +00:00
2011-09-13 17:39:31 +00:00
2012-09-01 18:27:30 +00:00
2012-03-06 20:06:06 +00:00
2011-08-18 18:03:34 +00:00
2012-10-02 00:11:53 +00:00
2012-12-11 22:11:52 +00:00
2011-10-05 19:00:14 +00:00
2012-03-06 20:06:06 +00:00
2012-02-24 07:38:34 +00:00
2010-10-21 06:10:04 +00:00
2010-05-06 00:22:25 +00:00
2012-12-12 01:05:25 +00:00
2011-10-05 19:00:14 +00:00
2011-10-05 19:00:14 +00:00
2011-07-30 17:23:26 +00:00
2011-10-05 19:00:14 +00:00
2012-02-08 01:21:13 +00:00
2012-03-23 03:33:19 +00:00
2012-03-23 03:33:19 +00:00
2011-11-23 21:11:23 +00:00
2012-10-08 23:08:41 +00:00
2011-06-15 23:02:42 +00:00
2011-12-06 22:05:01 +00:00
2012-05-08 00:29:04 +00:00
2011-10-05 19:00:14 +00:00
2012-05-09 17:46:47 +00:00
2012-05-09 17:46:47 +00:00
2012-12-18 23:07:30 +00:00
2012-12-08 02:21:17 +00:00
2012-12-19 18:30:38 +00:00
2011-09-10 00:09:20 +00:00
2011-02-12 07:50:47 +00:00
2010-07-19 21:46:24 +00:00
2011-12-06 09:25:23 +00:00
2011-04-20 21:16:21 +00:00
2010-01-26 19:31:51 +00:00
2012-11-01 00:20:00 +00:00
2011-07-21 01:05:26 +00:00
2012-12-19 22:21:18 +00:00
2013-01-04 23:34:14 +00:00
2012-12-21 21:43:05 +00:00
2012-12-06 17:50:40 +00:00
2013-01-04 23:34:14 +00:00
2013-01-04 23:34:14 +00:00
2012-10-03 09:04:56 +00:00
2012-06-30 11:27:57 +00:00
2011-10-06 07:27:49 +00:00
2010-10-11 21:37:58 +00:00
2011-10-18 21:20:17 +00:00
2011-10-18 04:23:19 +00:00
2010-02-21 20:58:24 +00:00
2010-10-19 00:03:23 +00:00
2012-08-30 02:08:31 +00:00
2010-10-19 00:03:23 +00:00
2011-10-18 21:20:17 +00:00
2012-08-22 17:44:32 +00:00
2012-09-26 16:39:56 +00:00
2012-03-17 06:39:06 +00:00
2012-08-17 05:12:08 +00:00
2011-10-18 21:20:17 +00:00
2012-09-26 16:39:56 +00:00
2012-08-17 05:40:05 +00:00
2010-10-19 00:03:23 +00:00
2012-02-07 16:50:53 +00:00
2011-09-04 03:32:19 +00:00
2011-07-30 06:55:39 +00:00
2011-11-03 19:58:50 +00:00
2011-06-02 04:02:27 +00:00
2012-02-15 15:34:24 +00:00
2012-09-26 16:39:56 +00:00
2012-12-22 04:48:10 +00:00
2012-10-09 16:01:50 +00:00
2012-01-23 15:59:30 +00:00
2010-10-19 00:03:23 +00:00
2012-09-26 16:39:56 +00:00
2012-12-11 22:11:52 +00:00
2011-07-07 16:03:39 +00:00
2011-09-04 03:32:15 +00:00
2012-09-26 16:39:56 +00:00
2010-08-29 19:47:46 +00:00
2012-09-26 16:39:56 +00:00
2012-08-17 05:26:33 +00:00
2012-09-27 00:24:09 +00:00
2012-06-12 13:44:08 +00:00
2012-08-20 21:55:33 +00:00
2009-12-18 18:53:37 +00:00
2010-12-09 21:44:02 +00:00
2012-09-26 16:39:56 +00:00
2011-11-30 23:03:25 +00:00
2012-02-16 17:49:04 +00:00
2012-04-10 17:56:28 +00:00
2011-09-04 03:32:15 +00:00
2012-04-10 17:23:51 +00:00
2010-01-07 00:40:35 +00:00
2010-09-20 21:25:19 +00:00
2011-10-18 21:20:17 +00:00
2010-08-12 17:04:55 +00:00
2012-05-10 02:50:16 +00:00
2011-10-27 21:50:13 +00:00
2012-12-11 22:11:52 +00:00
2011-10-27 21:50:13 +00:00
2010-08-24 21:39:55 +00:00
2012-06-02 18:20:16 +00:00
2012-11-01 02:01:34 +00:00
2011-10-05 19:00:14 +00:00
2012-02-15 00:54:55 +00:00
2009-12-15 20:14:24 +00:00
2011-11-16 02:34:55 +00:00
2011-11-29 05:48:01 +00:00
2012-03-06 20:06:06 +00:00
2011-10-06 07:00:54 +00:00
2011-10-06 07:00:54 +00:00
2012-03-23 03:33:19 +00:00
2012-04-11 18:15:01 +00:00
2012-12-18 23:07:30 +00:00
2013-01-04 23:34:14 +00:00
2010-12-21 19:07:48 +00:00
2012-10-20 00:51:32 +00:00
2012-10-20 00:51:32 +00:00
2012-06-09 03:03:02 +00:00
2012-05-16 23:49:15 +00:00
2012-08-28 00:04:23 +00:00
2011-09-20 23:27:33 +00:00
2011-09-20 23:27:33 +00:00
2011-09-13 18:49:56 +00:00
2011-10-13 22:29:44 +00:00
2010-01-26 19:31:51 +00:00
2010-01-26 19:31:51 +00:00
2012-03-31 01:14:06 +00:00
2012-09-10 22:58:04 +00:00
2012-09-01 19:08:08 +00:00
2012-03-10 03:20:58 +00:00
2012-05-21 20:11:54 +00:00
2012-04-30 22:12:26 +00:00
2012-03-15 18:07:19 +00:00
2012-12-11 22:11:52 +00:00
2012-10-11 22:33:14 +00:00
2012-09-14 20:24:53 +00:00
2012-02-22 02:10:41 +00:00
2012-05-25 20:05:57 +00:00
2012-03-06 20:06:06 +00:00
2012-02-09 18:31:22 +00:00
2011-12-15 00:04:56 +00:00
2012-02-09 18:31:22 +00:00
2011-12-15 00:04:56 +00:00
2011-10-05 19:00:14 +00:00
2012-10-26 19:36:33 +00:00
2011-04-28 18:53:55 +00:00
2011-11-16 02:35:10 +00:00
2010-04-07 00:27:13 +00:00
2012-01-20 22:01:45 +00:00
2012-12-18 04:18:55 +00:00
2011-03-08 08:55:46 +00:00
2010-12-17 12:21:11 +00:00
2011-03-16 23:23:30 +00:00
2011-03-08 12:38:20 +00:00
2011-10-05 19:00:14 +00:00
2012-03-23 03:33:19 +00:00
2011-10-25 20:12:15 +00:00
2011-10-05 19:00:14 +00:00
2012-10-09 01:23:45 +00:00
2012-08-22 23:15:52 +00:00
2013-01-04 23:34:14 +00:00
2012-12-20 19:54:13 +00:00
2011-12-03 03:49:52 +00:00
2012-06-08 05:48:06 +00:00
2012-03-12 18:34:26 +00:00
2011-11-09 01:24:17 +00:00
2012-12-24 01:23:48 +00:00
2011-03-06 15:48:19 +00:00
2011-09-12 18:09:38 +00:00
2011-09-12 18:09:38 +00:00
2011-09-12 18:09:38 +00:00
2011-11-13 22:08:39 +00:00
2011-11-13 22:08:39 +00:00
2011-11-13 22:08:39 +00:00
2011-11-13 22:08:39 +00:00
2012-10-25 01:51:45 +00:00
2010-08-20 00:02:33 +00:00
2011-10-05 19:00:14 +00:00
2012-12-04 15:13:46 +00:00
2010-10-02 22:49:11 +00:00
2012-04-11 19:32:19 +00:00
2012-05-23 23:30:16 +00:00
2010-04-16 21:31:52 +00:00
2012-03-23 03:33:19 +00:00
2012-09-21 01:30:00 +00:00
2011-08-22 15:54:49 +00:00
2010-03-31 00:37:59 +00:00
2012-12-19 01:39:02 +00:00
2011-10-05 19:00:14 +00:00
2011-10-26 23:19:04 +00:00
2011-01-03 19:44:02 +00:00
2010-10-11 16:52:23 +00:00
2011-10-05 19:00:14 +00:00
2011-11-07 18:53:57 +00:00
2012-09-13 17:25:51 +00:00
2012-02-02 00:16:13 +00:00
2011-11-16 08:58:57 +00:00
2011-11-03 19:02:30 +00:00
2012-02-24 19:45:42 +00:00
2012-02-24 01:12:38 +00:00
2011-11-03 02:20:32 +00:00
2011-11-16 08:58:54 +00:00
2011-11-03 02:20:32 +00:00
2011-11-03 02:20:32 +00:00
2011-11-03 02:20:32 +00:00
2012-01-24 21:39:26 +00:00
2012-01-24 21:39:26 +00:00
2012-03-24 02:26:51 +00:00
2012-03-24 02:26:51 +00:00
2011-10-13 22:29:44 +00:00
2012-12-07 22:41:46 +00:00
2012-08-28 00:04:23 +00:00
2011-12-06 22:05:01 +00:00
2011-01-19 01:02:47 +00:00
2012-03-07 01:51:17 +00:00