Nikolas Klauser
874217f99b
[clang] Enable C++11-style attributes in all language modes
This also ignores and deprecates the `-fdouble-square-bracket-attributes` command line flag, which seems to not be used anywhere. At least a code search exclusively found mentions of it in documentation: https://sourcegraph.com/search?q=context:global+-fdouble-square-bracket-attributes+-file:clang/*+-file:test/Sema/*+-file:test/Parser/*+-file:test/AST/*+-file:test/Preprocessor/*+-file:test/Misc/*+archived:yes&patternType=standard&sm=0&groupBy=repo
RFC: https://discourse.llvm.org/t/rfc-enable-c-11-c2x-attributes-in-all-standard-modes-as-an-extension-and-remove-fdouble-square-bracket-attributes
This enables `[[]]` attributes in all C and C++ language modes without warning by default. `-Wc++-extensions` does warn. GCC has enabled this extension in all C modes since GCC 10.
Reviewed By: aaron.ballman, MaskRay
Spies: #clang-vendors, beanz, JDevlieghere, Michael137, MaskRay, sstefan1, jplehr, cfe-commits, lldb-commits, dmgreen, jdoerfert, wenlei, wlei
Differential Revision: https://reviews.llvm.org/D151683
2023-07-22 09:34:15 -07:00
..
2020-10-26 10:50:05 +01:00
2021-10-04 14:16:47 -05:00
2022-02-07 15:29:36 -05:00
2021-05-20 12:39:04 -04:00
2022-02-07 15:29:36 -05:00
2021-05-13 11:48:32 -04:00
2023-03-28 17:12:49 -04:00
2023-02-16 17:58:35 -08:00
2020-02-24 18:51:29 -08:00
2023-07-17 18:08:04 -07:00
2023-07-22 09:34:15 -07:00
2022-06-15 11:58:26 +02:00
2022-02-07 15:29:36 -05:00
2020-12-15 14:56:44 -05:00
2023-07-17 18:08:04 -07:00
2023-02-23 14:59:26 -08:00
2023-06-02 08:11:18 -07:00
2023-07-17 18:08:04 -07:00
2019-04-11 17:55:30 +00:00
2022-05-04 08:35:47 -04:00
2022-02-07 15:29:36 -05:00
2022-02-07 15:29:36 -05:00
2023-06-05 14:56:58 +02:00
2023-06-05 14:56:58 +02:00
2022-02-07 15:29:36 -05:00
2022-02-07 15:29:36 -05:00
2022-02-07 15:29:36 -05:00
2019-08-27 13:47:51 +00:00
2020-05-08 19:32:00 -07:00
2023-05-31 10:43:10 +01:00
2023-05-31 10:43:10 +01:00
2023-07-22 09:34:15 -07:00
2023-07-22 09:34:15 -07:00
2022-05-04 08:35:47 -04:00
2022-09-21 19:37:22 +00:00
2022-09-28 13:27:52 -04:00
2022-09-28 13:27:52 -04:00
2022-07-29 13:18:44 -04:00
2019-08-27 20:33:05 +00:00
2022-02-07 15:29:36 -05:00
2022-02-07 15:29:36 -05:00
2022-02-07 15:29:36 -05:00
2023-07-17 18:08:04 -07:00
2023-07-17 18:08:04 -07:00
2022-05-04 08:35:47 -04:00
2022-02-07 15:29:36 -05:00
2020-08-31 20:59:20 -07:00
2022-02-07 15:29:36 -05:00
2019-09-10 20:15:45 +00:00
2020-11-12 11:42:53 -08:00
2019-05-08 00:52:33 +00:00
2021-06-02 10:21:26 -04:00
2021-09-28 10:00:15 -07:00
2022-06-15 11:58:26 +02:00
2020-09-24 19:02:27 -07:00
2023-06-07 10:31:11 +02:00
2023-05-31 10:43:10 +01:00
2023-05-04 19:19:52 +02:00
2023-06-29 15:42:18 -07:00
2023-05-04 19:19:52 +02:00
2023-05-20 13:22:58 +02:00
2022-08-04 17:08:08 -07:00
2021-09-28 10:00:15 -07:00
2022-09-04 05:29:32 +00:00
2020-01-31 20:08:13 +02:00
2023-07-19 12:12:11 +05:30
2022-05-17 06:21:51 -07:00
2020-01-24 00:48:59 +02:00
2020-01-24 00:48:59 +02:00
2019-08-31 01:00:37 +00:00
2021-05-16 10:42:52 -07:00
2022-03-23 22:30:45 +01:00
2023-04-10 17:33:09 +02:00
2020-01-30 17:42:17 -08:00
2023-05-04 19:19:52 +02:00
2023-05-20 13:22:58 +02:00
2023-05-04 19:19:52 +02:00
2023-05-04 19:19:52 +02:00
2023-05-04 19:19:52 +02:00
2023-05-04 19:19:52 +02:00
2023-05-04 19:19:52 +02:00
2018-05-24 22:02:52 +00:00
2023-07-03 06:07:04 -04:00
2022-06-25 19:03:33 +02:00
2023-02-23 14:40:58 +08:00
2022-09-28 08:50:27 -07:00
2020-05-10 13:39:49 -07:00
2021-10-04 14:16:47 -05:00
2023-03-28 17:12:49 -04:00
2023-05-20 13:22:58 +02:00
2020-03-27 17:11:04 -07:00
2023-01-05 20:53:52 +00:00
2022-09-04 05:29:32 +00:00
2022-09-04 05:29:32 +00:00
2022-08-30 15:11:38 +02:00
2022-05-04 08:35:47 -04:00
2023-05-04 19:19:52 +02:00
2023-07-22 09:34:15 -07:00
2023-07-17 18:08:04 -07:00
2020-01-30 17:42:17 -08:00
2021-10-18 10:00:21 +02:00
2022-05-04 08:35:47 -04:00
2023-07-17 18:08:04 -07:00
2023-04-25 23:08:30 +02:00
2023-02-16 14:05:16 +08:00
2023-05-15 07:39:58 -04:00
2022-09-04 05:29:32 +00:00
2023-07-17 18:08:04 -07:00
2023-05-15 07:39:58 -04:00
2023-03-30 16:30:23 +02:00
2023-07-17 18:08:04 -07:00
2023-01-18 12:41:44 +01:00
2022-02-07 15:29:36 -05:00
2023-07-17 18:08:04 -07:00
2019-09-12 18:26:34 +00:00
2019-05-05 12:15:17 +00:00
2020-08-13 09:43:27 +02:00
2020-03-27 17:11:04 -07:00
2022-05-04 08:35:47 -04:00
2022-02-07 15:29:36 -05:00
2020-06-29 14:33:21 -07:00
2022-02-07 15:29:36 -05:00
2022-05-04 08:35:47 -04:00
2022-02-07 15:29:36 -05:00
2018-11-20 18:59:05 +00:00
2022-01-05 14:49:03 +08:00
2022-10-14 10:55:29 -04:00
2022-02-07 15:29:36 -05:00
2023-06-05 11:09:58 -04:00
2023-06-05 11:35:03 -04:00
2023-07-17 18:08:04 -07:00
2022-07-22 15:24:54 -04:00
2022-04-08 16:19:58 -04:00
2022-11-04 07:33:31 +00:00
2020-07-18 20:35:16 +01:00
2023-03-20 12:48:45 -05:00
2020-05-11 18:55:45 +01:00
2020-05-18 13:21:46 +02:00
2018-08-21 16:47:04 +00:00
2023-07-17 18:08:04 -07:00
2022-09-16 19:39:48 +00:00
2022-06-15 11:58:26 +02:00
2023-07-17 18:08:04 -07:00
2023-07-17 18:08:04 -07:00
2023-07-17 18:08:04 -07:00
2023-07-17 18:08:04 -07:00
2022-02-07 15:29:36 -05:00
2022-02-07 15:29:36 -05:00
2022-10-10 15:45:02 -04:00
2022-02-07 15:29:36 -05:00
2022-02-09 09:11:49 -05:00
2022-03-15 22:30:22 +03:00
2019-11-09 15:33:01 +01:00
2019-11-09 15:33:01 +01:00
2019-11-09 15:33:01 +01:00
2022-02-09 09:11:49 -05:00
2022-02-09 09:11:49 -05:00
2023-07-17 18:08:04 -07:00
2023-07-22 09:34:15 -07:00
2022-02-09 09:11:49 -05:00
2023-07-17 18:08:04 -07:00
2022-02-09 09:11:49 -05:00
2023-07-17 18:08:04 -07:00
2023-07-17 18:08:04 -07:00
2022-05-04 08:35:47 -04:00
2023-06-07 10:31:11 +02:00
2022-03-14 21:45:31 +01:00
2023-07-17 18:08:04 -07:00
2019-06-26 23:39:23 +00:00
2023-07-17 18:08:04 -07:00
2022-02-09 09:11:49 -05:00
2023-07-17 18:08:04 -07:00
2022-07-25 07:22:54 -04:00
2022-08-11 08:44:38 +02:00
2022-02-09 09:11:49 -05:00
2022-02-09 09:11:49 -05:00
2023-07-17 18:08:04 -07:00
2020-06-12 15:21:38 +02:00
2021-09-28 10:00:15 -07:00
2023-07-17 18:08:04 -07:00
2020-06-12 15:21:38 +02:00
2020-05-10 14:03:50 -07:00
2019-12-27 13:42:07 +00:00
2022-03-31 13:45:39 -04:00
2021-07-26 15:04:34 +01:00
2022-10-20 09:29:09 -07:00
2021-01-06 20:39:57 +00:00
2022-05-13 08:31:52 -04:00
2022-06-15 10:54:46 +01:00
2021-07-26 15:04:34 +01:00
2021-02-05 07:20:41 -05:00
2020-06-23 21:25:56 -05:00
2019-04-11 17:55:30 +00:00
2022-02-09 09:11:49 -05:00
2019-08-04 10:08:51 +00:00
2022-03-18 12:20:41 +00:00
2022-03-18 12:20:41 +00:00
2022-02-09 09:11:49 -05:00
2022-02-09 09:11:49 -05:00
2020-10-30 07:30:06 -07:00
2020-05-06 08:05:44 -07:00
2019-08-04 10:08:51 +00:00
2022-11-21 16:02:54 +00:00
2020-10-31 17:36:12 +07:00
2018-08-03 01:21:16 +00:00
2022-10-28 01:51:24 -07:00
2019-01-04 17:20:00 +00:00
2019-07-25 07:33:13 +00:00
2020-06-16 13:03:32 -07:00
2020-12-31 00:27:11 -08:00
2023-07-17 18:08:04 -07:00
2023-01-18 12:41:44 +01:00
2023-07-17 18:08:04 -07:00
2022-02-09 09:11:49 -05:00
2018-05-17 09:24:37 +00:00
2018-05-17 09:24:37 +00:00
2020-05-20 09:46:18 -07:00
2022-10-10 15:53:48 -04:00
2022-02-09 09:11:49 -05:00
2022-08-26 09:20:05 -04:00
2023-06-27 01:15:45 +03:00
2023-06-27 01:15:45 +03:00
2023-06-27 01:15:45 +03:00
2023-07-17 18:08:04 -07:00
2020-03-24 15:17:04 +01:00
2022-04-08 16:19:58 -04:00
2023-07-17 18:08:04 -07:00
2022-02-09 09:11:49 -05:00
2021-06-02 10:30:24 -04:00
2019-05-01 23:33:49 +00:00
2022-03-31 13:45:39 -04:00
2020-01-04 01:41:21 +01:00
2022-02-09 09:11:49 -05:00
2023-03-17 18:31:44 +01:00
2022-07-25 11:48:24 +08:00
2022-07-25 11:48:24 +08:00