aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/csharp/csharp_field_base.cc
Commit message (Collapse)AuthorAge
* Deleted scoped_ptr.hGravatar Adam Cozzette2018-03-14
| | | | | We no longer need this, now that we have finished the switch to C++11 and are using std::unique_ptr.
* Add std:: namespace prefix to set and map (#3332)Gravatar tanderson-google2017-07-09
| | | * Remove using std::{set,map}
* Remove "using namespace std" from stubs/common.hGravatar Adam Cozzette2017-04-26
| | | | | | | | This prevents the contents of the std namespace from being effectively pulled into the top-level namespace in all translation units that include common.h. I left in individual using statements for a few common things like std::set and std::map, because it did not seem worth going through the churn of updating the whole codebase to fix those right now.
* Fixing code formatting issuesGravatar Andrew Spiering2017-01-11
|
* Added the support for class level deprecation which will in turn also ↵Gravatar Andrew Spiering2016-12-21
| | | | deprecate any fields that are currently using that type
* Move DebuggerNonUserCodeAttribute to function membersGravatar Jon Skeet2016-07-04
| | | | | | | | | I think this has caught everything. I've left a stub for attributes to be applied to the types themselves, but we don't currently need anything. Follow-up commit will include the changes to generated code itself. Fixes #1671.
* Use 0 as the default value for all enums, rather than finding the actual ↵Gravatar Jon Skeet2016-04-11
| | | | | | enum value name This will make it easier to change the enum value names, as it reduces the number of places they're used.
* Line-wrapping changes only for C# generator codeGravatar Jon Skeet2016-04-06
| | | | | | | | This should have no behavioral changes at all. This doesn't strictly enforce an 80-column limit, but removes the most egregious violations. The indentation in the C# generator code is inconsistent in general, unfortunately - if we have any good tools that can be trusted to reformat, I'd be happy to apply them.
* Added access_level for typesGravatar Gaurav Vaish2016-04-05
| | | | | | | | | | | * `csharp_options`: Added `Options` to encapsulate generator options. Supported options for now - file_extension, base_namespace * `{Blah}Generator`: Now accept `Options*` as parameter to constructor * `csharp_generator.cc`: Parse and populate options * `Makefile.am`: Added `csharp_options.h` * `extract_includes.bat.in`: Added `csharp_options.h` Refactoring code to two commits. This is the first commit
* fix type initialization problem with FileDescriptorGravatar Jan Tattermusch2015-08-14
|
* Remove our own version of MakeTag now that the main one is fixed.Gravatar Jon Skeet2015-08-07
| | | | "Tested" by regenerating code and observing that there are no changes.
* Prohibit null values for string/bytes fields in generated code.Gravatar Jon Skeet2015-07-30
|
* Remove the usage of attributes for field/method discovery.Gravatar Jon Skeet2015-07-22
| | | | Instead, introduce GeneratedCodeInfo which passes in what we need, and adjust the codegen to take account of this.
* Revamp to reflection.Gravatar Jon Skeet2015-07-21
| | | | | | | | | | | | | | | | | Changes in brief: 1. Descriptor is now the entry point for all reflection. 2. IReflectedMessage has gone; there's now a Descriptor property in IMessage, which is explicitly implemented (due to the static property). 3. FieldAccessorTable has gone away 4. IFieldAccessor and OneofFieldAccessor still exist; we *could* put the functionality straight into FieldDescriptor and OneofDescriptor... I'm unsure about that. 5. There's a temporary property MessageDescriptor.FieldAccessorsByFieldNumber to make the test changes small - we probably want this to go away 6. Discovery for delegates is now via attributes applied to properties and the Clear method of a oneof I'm happy with 1-3. 4 I'm unsure about - feedback welcome. 5 will go away 6 I'm unsure about, both in design and implementation. Should we have a ProtobufMessageAttribute too? Should we find all the relevant attributes in MessageDescriptor and pass them down, to avoid an O(N^2) scenario? Generated code changes coming in the next commit.
* Merge pull request #611 from jskeet/csharp-wrappersGravatar Jon Skeet2015-07-17
|\ | | | | C# wrapper types
* \ Merge pull request #586 from jtattermusch/csharp_names_exportGravatar Jan Tattermusch2015-07-16
|\ \ | | | | | | Export c# naming routines publicly
| | * First pass at wrapper types.Gravatar Jon Skeet2015-07-16
| | | | | | | | | | | | | | | - We do still generate the message types, as otherwise reflection breaks, even though it doesn't actually use those types. - JSON handling hasn't been implemented yet
| | * First part of implementing wrapper types. Not ready yet!Gravatar Jon Skeet2015-07-16
| |/ |/|
* | Merge remote-tracking branch 'upstream/master' into csharp-experimentalGravatar Jan Tattermusch2015-07-15
|\ \
| | * export c# naming routines publiclyGravatar Jan Tattermusch2015-07-10
| |/ |/|
* | Codegen changes to support descriptor runtime changesGravatar Jon Skeet2015-07-09
| | | | | | | | | | | | - Add a partial method called by all constructors - Generate internal classes for descriptor.proto (only) - Forbid proto2 descriptors except for descriptor.proto
| * MinGW64+MSYS2 compilation issues and portable isnan using MathLimitsGravatar Karol Ostrovsky2015-07-01
| |
* | First pass at map support.Gravatar Jon Skeet2015-06-25
| | | | | | | | More tests required. Generated code in next commit.
* | Revert the change to wire_format.h.Gravatar Jon Skeet2015-06-24
| | | | | | | | | | It seems too much code relies on the broken behaviour. See issue #493. Instead, we reimplement MakeTag just for C#, temporarily.
* | Implement freezing for messages and repeated fields.Gravatar Jon Skeet2015-06-24
| | | | | | | | Fixes issue #523.
* | Use the fact that we know the tag size and bytes at codegen time to optimize.Gravatar Jon Skeet2015-06-17
| |
* | First pass at the mutable API. Quite a bit more to do - in particular, it's ↵Gravatar Jon Skeet2015-06-09
| | | | | | | | pretty slow right now.
* | First stab at new proto3-only code generatorGravatar Jon Skeet2015-06-05
|/
* Migrate writer to io::Printer for C#Gravatar Jie Luo2015-06-04
|
* Add oneof support for C#Gravatar Jie Luo2015-05-29
|
* Remove ClsCompliant declarations from C# codeGravatar Jie Luo2015-05-01
|
* added support for deprecated fields, reworded some todosGravatar Jan Tattermusch2015-04-13
|
* updated C# codegen to use restricted set of csharp options from descriptor.protoGravatar Jan Tattermusch2015-04-13
|
* Rewrote C# protogen to C++ (initial version)Gravatar Jan Tattermusch2015-03-26