Merge pull request #3885 from Lakedaemon/shareWarningAndTwoMethods

Share warning and two methods
This commit is contained in:
Wouter van Oortmerssen
2016-06-02 11:35:41 -07:00
73 changed files with 255 additions and 287 deletions

View File

@@ -747,9 +747,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_;