Commit 153a226a authored by Daniel Martin's avatar Daniel Martin

CR feedback: spacing, document return values

parent e2416caf
...@@ -67,7 +67,11 @@ class ExtensionGenerator { ...@@ -67,7 +67,11 @@ class ExtensionGenerator {
virtual ~ExtensionGenerator() {} virtual ~ExtensionGenerator() {}
virtual void Generate(io::Printer* printer) = 0; virtual void Generate(io::Printer* printer) = 0;
// Returns an estimate of the number of bytes the printed code will compile to
virtual int GenerateNonNestedInitializationCode(io::Printer* printer) = 0; virtual int GenerateNonNestedInitializationCode(io::Printer* printer) = 0;
// Returns an estimate of the number of bytes the printed code will compile to
virtual int GenerateRegistrationCode(io::Printer* printer) = 0; virtual int GenerateRegistrationCode(io::Printer* printer) = 0;
protected: protected:
......
...@@ -65,7 +65,7 @@ namespace { ...@@ -65,7 +65,7 @@ namespace {
struct FieldDescriptorCompare { struct FieldDescriptorCompare {
bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2) { bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2) {
if(f1== NULL) { if(f1 == NULL) {
return false; return false;
} }
if(f2 == NULL) { if(f2 == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment