Commit 1c3e2fe
Annotate FieldNumber constant emitted for proto extended fields.
Example:
extend MyMessage {
string new_string = 123;
}
Generates the following C++ constant:
kNewStringFieldNumber = 123;
Clicking on it leads to the generated files instead of the proto file. This change fixes that.
Tested:
added test case for testing annotations emitted for `extend` fields
PiperOrigin-RevId: 8422445631 parent ccdb652 commit 1c3e2fe
File tree
2 files changed
+32
-1
lines changed- src/google/protobuf/compiler/cpp
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
575 | 605 | | |
576 | 606 | | |
577 | 607 | | |
| |||
0 commit comments