Commit Graph

51 Commits

Author SHA1 Message Date
levlam
ac018e21b2 Add write_tl_to_multiple_files to allow C++ autogenerated header splitting. 2023-06-26 19:25:40 +03:00
levlam
014f880e41 Simplify get_children_types usage. 2023-06-26 17:10:04 +03:00
levlam
f4b4893124 Support additional headers in gen_output_begin. 2023-06-26 17:01:19 +03:00
levlam
6e543d3cdd Add get_children_types helper. 2023-06-26 15:56:15 +03:00
levlam
496dc3284e Always compare file content before replacing it. 2023-06-26 15:08:36 +03:00
levlam
c8824c15fd Generate forward declarations near class definitions. 2023-06-26 14:36:30 +03:00
levlam
aab207cdd2 Extract gen_output_begin_once from gen_output_begin. 2023-06-26 13:14:26 +03:00
levlam
d171366faa Add gen_import_declaration to TL_writer. 2023-06-26 11:44:09 +03:00
levlam
6ce85fdc4f Remove explicit mode parameter from tl_file_utils. 2023-06-26 06:59:19 +03:00
levlam
29ca948f09 TL-generate: split write_tl to several functions. 2023-06-26 06:47:54 +03:00
levlam
4db4828726 Remove unused Object forward declaration. 2023-06-26 00:55:53 +03:00
levlam
c923396751 Suppress warning in Release build. 2023-05-11 11:49:31 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
7d1d5e636c Suppress compiler warning. 2022-08-14 16:41:59 +03:00
levlam
6d17d58307 Fix formatting. 2022-04-04 16:48:53 +03:00
Andrea Cavalli
48a93aadb9
Support function generic result type (#1809)
Fixes #1708
2022-03-14 16:29:17 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
4533f79338 Don't generate MASK for parsed object/vector fields. 2021-11-01 20:48:06 +03:00
levlam
c66cf3dec6 Use range-based for on arrays/strings if possible. 2021-11-01 01:24:51 +03:00
levlam
d225bdf073 Improve tdtl C++03 compatibility. 2021-10-20 01:01:22 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
a4e1839089 Generate only needed telegram_api full constructors. 2021-08-01 07:23:50 +03:00
levlam
8398a6f19d Remove more default constructors of telegram_api classes. 2021-07-31 09:21:12 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
f553638521 Use full path in tdtl includes. 2020-12-22 01:56:36 +03:00
levlam
7b4afb7673 tdtl: always recalc number of simple constructors.
GitOrigin-RevId: dcc2c48f29d8a8f039bb53ec69c8b3076b153608
2020-10-17 00:47:05 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
95bee16523 Simplify td_api_json more.
GitOrigin-RevId: 4df61a045e381a4577321c87a2b393747992127e
2019-12-08 10:44:41 +03:00
levlam
7842b174b2 Do not generate empty constructor for functions.
GitOrigin-RevId: 9a83f40616728dd814ca4ce5424b955b17ca4dfe
2019-11-22 18:48:03 +03:00
levlam
003c93f0d6 Improve parameter names.
GitOrigin-RevId: 9eb8a512d2f908ef5cb725eed74b1d979ead9ef2
2019-11-22 18:21:13 +03:00
levlam
1823cad280 Minor tl_generate improvements.
GitOrigin-RevId: 2b76bb22c02e9dc42020fec46c348a8f3b0db102
2019-11-22 15:57:03 +03:00
levlam
6d53f3a85a Add field_num to gen_fetch_function_begin.
GitOrigin-RevId: a8679b71820cbd500ee489dec3a828eeec358080
2019-11-21 18:09:52 +03:00
levlam
26c5328b89 Do not generate default constructors.
GitOrigin-RevId: 89afa038ad99739ca0465e05a2e123ac60e7fa7a
2019-11-21 17:53:39 +03:00
levlam
ef4135dbf0 Use snprintf instead of sprintf.
GitOrigin-RevId: faf4720f949a43cfcf772ef761f33016bfaa97c8
2019-08-02 01:03:16 +03:00
Arseny Smirnov
620e4221f3 tl json: support tl::TL_writer::Mode
GitOrigin-RevId: db6769e80f43f5fa2eedac5414cd2a44f8dcaf3c
2019-07-01 10:43:31 +02:00
Ernesto Castellotti
41191732e6 Fix typo mistake 2019-04-30 21:40:53 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
9ea321b252 Remove uneeded warning.
GitOrigin-RevId: 63933b5e7ae003e350c52cc9758b844cebc2b961
2018-12-27 04:41:47 +03:00
levlam
22eb4e1cb2 Remove unneeded reinterpret casts.
GitOrigin-RevId: 54a161ad11e5909f9c06912cf67e6805279f2327
2018-12-20 00:44:15 +03:00
levlam
28bfa4c4a6 Fix some MSVC Analyzer warnings.
GitOrigin-RevId: f62e8173ae9a5b78818f6575548ce22d4aa5c51d
2018-10-26 17:11:20 +03:00
levlam
eb4c85a797 Fix CE.
GitOrigin-RevId: 0bb7986447b8c9fcdc80b8caf1feb03f8a945d90
2018-09-26 03:54:37 +03:00
levlam
ca58d36d4d Return parent type from tl_object::fetch to reduce number of unique_ptr types in header.
GitOrigin-RevId: c2bfa4b2879c8ee3a0feda50fca605a58673cc87
2018-09-25 06:26:36 +03:00
levlam
642f5ed81a Use Windows line feeds in generated files on Windows.
GitOrigin-RevId: 53010ee7d1a3b88bedc3c0a5fd6914d31bb33c09
2018-09-01 17:00:28 +03:00
levlam
f25bcd8d70 Remove unnecessary semicolons after namespace end.
GitOrigin-RevId: bf290001b072fd390fe2cada06722a3b90309cca
2018-07-18 04:30:29 +03:00
levlam
d30d227289 Fix accessing of first character of an empty string.
GitOrigin-RevId: 9a4f25e6f46bacb397b43c88665a71da929a5531
2018-06-30 03:46:56 +03:00
Arseny Smirnov
fb79d6f95a Layer 78. Initial Telegram Passport support.
GitOrigin-RevId: 197994bcf62a76cd963f32a8dd7f5951d7b6588b
2018-03-27 16:11:15 +03:00
levlam
0bbad22da4 Move tl utils functions to tl_file_utils.
GitOrigin-RevId: 4b061356cc965e972af6d640507076a10743a20a
2018-03-16 16:33:27 +03:00
levlam
ea504ae920 Better remove_documentation.
GitOrigin-RevId: ba92888e8278594dc6be6035a40e1292110ca647
2018-03-16 16:07:34 +03:00
levlam
8c45a03244 tdtl: pass class_name to constructor generators.
GitOrigin-RevId: 217c0cbd9eb99777f8970879d9b3da42cd6c8a02
2018-01-09 18:56:58 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00