aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/cpp_generator.cc
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2017-11-27 13:08:01 -0800
committerGravatar GitHub <noreply@github.com>2017-11-27 13:08:01 -0800
commitc04f4f16cdea21d793c5c65a771e4ac21206c164 (patch)
treef571ef2ce38b985d63fef6ac37547cab9ddaec48 /src/compiler/cpp_generator.cc
parent4922c3572b5842c2d0636665b09a0d1c844215fe (diff)
Revert "Revert "Do not interpolate variables in leading comments.""
Diffstat (limited to 'src/compiler/cpp_generator.cc')
-rw-r--r--src/compiler/cpp_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc
index 3adf0fa451..dec8cd0f25 100644
--- a/src/compiler/cpp_generator.cc
+++ b/src/compiler/cpp_generator.cc
@@ -104,7 +104,7 @@ grpc::string GetHeaderPrologue(grpc_generator::File* file,
grpc::string leading_comments = file->GetLeadingComments("//");
if (!leading_comments.empty()) {
printer->Print(vars, "// Original file comments:\n");
- printer->Print(leading_comments.c_str());
+ printer->PrintRaw(leading_comments.c_str());
}
printer->Print(vars, "#ifndef GRPC_$filename_identifier$__INCLUDED\n");
printer->Print(vars, "#define GRPC_$filename_identifier$__INCLUDED\n");