sharing the Flatbuffers warning

This commit is contained in:
lakedaemon
2016-05-26 15:26:58 +02:00
parent 06eb6e94e3
commit cd1493b082
73 changed files with 255 additions and 252 deletions

View File

@@ -733,9 +733,7 @@ class CppGenerator : public BaseGenerator {
if (IsEverythingGenerated()) return true;
std::string code;
code =
"// automatically generated by the FlatBuffers compiler,"
" do not modify\n\n";
code = code + "// " + FlatBuffersGeneratedWarning();
// Generate include guard.
std::string include_guard_ident = file_name_;