Commit d72370d
Flatten C++ namespaces in py3 generator
Summary:
- Simplify condition in `cpp_pass_field` helper
- Flatten C++ namespaces property to return a namespace string, rename to `cpp_namespace`
Reviewed By: vitaut
Differential Revision: D95888004
fbshipit-source-id: 4c4cbc22aa0c0457d0962d8744037156fb1dc0f31 parent a9215cf commit d72370d
File tree
391 files changed
+798
-2518
lines changed- thrift/compiler
- generate
- templates/py3
- common
- services
- types
- test/fixtures
- adapter/out/py3/gen-py3
- cpp
- hack
- java
- module
- python
- rust
- scope
- thrift
- aliasing/out/py3/gen-py3
- module
- scope
- thrift
- basic-annotations/out/py3/gen-py3
- cpp
- go
- hack
- scope
- thrift
- basic-enum/out/py3/gen-py3
- java
- module
- scope
- basic-stack-arguments/out/py3/gen-py3
- cpp
- scope
- thrift
- basic/out
- py3_inplace/gen-py3
- hack
- module
- scope
- thrift
- py3/gen-py3
- hack
- module
- scope
- thrift
- complex-union/out/py3/gen-py3
- cpp
- scope
- thrift
- constants/out
- py3_inplace/gen-py3
- scope
- thrift
- py3/gen-py3
- scope
- thrift
- default_values_rectification_after/out/py3/gen-py3/module
- default_values_rectification_before/out/py3/gen-py3
- module
- scope
- thrift
- default_values/out
- py3_inplace/gen-py3
- module
- scope
- thrift
- py3/gen-py3
- module
- scope
- thrift
- empty-struct/out/py3/gen-py3
- scope
- thrift
- enums/out/py3/gen-py3
- included_enum
- module
- scope
- thrift
- exceptions/out/py3/gen-py3
- python
- scope
- thrift
- includes/out
- py3_matching_struct_names/gen-py3
- scope
- thrift
- py3_service/gen-py3
- scope
- thrift
- inject_metadata_fields/out/py3/gen-py3
- internal
- scope
- thrift
- int_limits/out/py3/gen-py3
- scope
- thrift
- interactions/out
- py3_inplace/gen-py3
- cpp
- module
- scope
- thrift
- py3/gen-py3
- cpp
- module
- scope
- thrift
- mcpp2-compare/out/py3/gen-py3
- cpp
- includes
- module
- scope
- thrift
- mixin/out/py3/gen-py3
- scope
- thrift
- namespace_from_package_without_module_name/out/py3/gen-py3/module
- namespace_from_package/out/py3/gen-py3/module
- namespace/out
- py3_emptyns/gen-py3
- scope
- thrift
- py3_extend/gen-py3
- scope
- thrift
- py3/gen-py3
- scope
- thrift
- optionals/out/py3/gen-py3
- scope
- thrift
- py3/out
- py3_inplace/gen-py3
- cpp
- module
- python
- scope
- thrift
- py3_legacy_container_converters/gen-py3
- cpp
- module
- python
- scope
- thrift
- py3/gen-py3
- cpp
- module
- python
- scope
- thrift
- qualified/out/py3/gen-py3
- scope
- thrift
- refs/out/py3/gen-py3
- cpp
- java
- scope
- thrift
- req-opt/out/py3/gen-py3
- scope
- thrift
- serialization_field_order/out/py3/gen-py3
- scope
- thrift
- single_file_service/out
- py3_module_structs/gen-py3
- scope
- thrift
- py3/gen-py3
- scope
- thrift
- sink/out/py3/gen-py3
- cpp
- scope
- thrift
- stream/out
- py3_inplace/gen-py3
- cpp
- scope
- thrift
- py3/gen-py3
- cpp
- scope
- thrift
- templated-deserialize/out/py3/gen-py3
- cpp
- scope
- thrift
- terse_write/out/py3/gen-py3
- cpp
- hack
- scope
- terse_write
- thrift
- transitive-deps/out
- py3_a/gen-py3
- scope
- thrift
- py3_s/gen-py3
- scope
- thrift
- types/out
- py3_inplace/gen-py3
- cpp
- included
- module
- rust
- scope
- thrift
- py3/gen-py3
- cpp
- included
- module
- rust
- scope
- thrift
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
391 files changed
+798
-2518
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
877 | | - | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
878 | 879 | | |
879 | 880 | | |
880 | 881 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
75 | | - | |
76 | 73 | | |
| 74 | + | |
77 | 75 | | |
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 91 | | |
| 92 | + | |
96 | 93 | | |
Lines changed: 7 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 74 | + | |
| 75 | + | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 79 | + | |
| 80 | + | |
87 | 81 | | |
88 | 82 | | |
89 | 83 | | |
| |||
95 | 89 | | |
96 | 90 | | |
97 | 91 | | |
98 | | - | |
99 | | - | |
| 92 | + | |
100 | 93 | | |
101 | 94 | | |
102 | | - | |
103 | | - | |
| 95 | + | |
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
| |||
124 | 116 | | |
125 | 117 | | |
126 | 118 | | |
127 | | - | |
| 119 | + | |
128 | 120 | | |
129 | 121 | | |
130 | 122 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 25 | + | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
| |||
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
48 | | - | |
| 41 | + | |
49 | 42 | | |
50 | 43 | | |
51 | 44 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 45 | + | |
55 | 46 | | |
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
35 | 31 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 25 | + | |
| 26 | + | |
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
| 28 | + | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
0 commit comments