diff options
author | Garret Kelly <gdk@google.com> | 2017-10-10 15:58:41 -0400 |
---|---|---|
committer | Garret Kelly <gdk@google.com> | 2017-11-06 16:45:13 -0500 |
commit | cf5a1f2c8162fbfefc0f4aa5d28e6a17d50a840f (patch) | |
tree | 18453d288ea86769cc138c6ee096d3c62154698b /src/compiler/ruby_generator.cc | |
parent | 0f2cfdcc0f57d21fe2823268263ef5bdc4b6704c (diff) |
Do not interpolate variables in leading comments.
There is at least one well-known proto file (plugin.proto) with comments
that include variable-like strings that are not actual variables. This
leads to DFATAL log statements that clutter the output and don't provide
any benefit.
Diffstat (limited to 'src/compiler/ruby_generator.cc')
-rw-r--r-- | src/compiler/ruby_generator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/ruby_generator.cc b/src/compiler/ruby_generator.cc index ed7e074b47..e81dea603b 100644 --- a/src/compiler/ruby_generator.cc +++ b/src/compiler/ruby_generator.cc @@ -174,7 +174,7 @@ grpc::string GetServices(const FileDescriptor* file) { grpc::string leading_comments = GetRubyComments(file, true); if (!leading_comments.empty()) { out.Print("# Original file comments:\n"); - out.Print(leading_comments.c_str()); + out.PrintRaw(leading_comments.c_str()); } out.Print("\n"); |