mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
Corrected the order of the comments on namespace close parens
Also removed the semicolon on the bracket. It makes -pedanic unhappy. Bug: 16399323 Change-Id: I16ec0d67af13c3ca0bc6285741f5a95658d262bd
This commit is contained in:
@@ -480,9 +480,9 @@ std::string GenerateCPP(const Parser &parser, const std::string &include_guard_i
|
||||
}
|
||||
|
||||
// Close the namespaces.
|
||||
for (auto it = parser.name_space_.begin();
|
||||
it != parser.name_space_.end(); ++it) {
|
||||
code += "}; // namespace " + *it + "\n";
|
||||
for (auto it = parser.name_space_.rbegin();
|
||||
it != parser.name_space_.rend(); ++it) {
|
||||
code += "} // namespace " + *it + "\n";
|
||||
}
|
||||
|
||||
// Close the include guard.
|
||||
|
||||
Reference in New Issue
Block a user