summaryrefslogtreecommitdiff
path: root/src/code_generators.cpp
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2017-05-12 15:58:26 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2017-05-12 16:08:58 -0700
commitc559eb451e7783b72c44e27db375158edaa498b7 (patch)
tree639c8bb58f36f5145f51691a5414f319cadae6c3 /src/code_generators.cpp
parent6a7ec85e83be45efd7ddc4f6a7a34ca099e9f6e7 (diff)
downloadflatbuffers-c559eb451e7783b72c44e27db375158edaa498b7.tar.gz
flatbuffers-c559eb451e7783b72c44e27db375158edaa498b7.tar.bz2
flatbuffers-c559eb451e7783b72c44e27db375158edaa498b7.zip
Made codegen always output a file, even on an empty schema.
Previously, we had a check to simply skip such files, but this tends to make build systems unhappy. This only affects C++ and JS, since other language output per-class files. Change-Id: I54224642725bbafb9f6e1654ed3693e62ca9f7d7 Tested: on Linux.
Diffstat (limited to 'src/code_generators.cpp')
-rw-r--r--src/code_generators.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/code_generators.cpp b/src/code_generators.cpp
index b9e73c62..7838cedf 100644
--- a/src/code_generators.cpp
+++ b/src/code_generators.cpp
@@ -89,18 +89,6 @@ std::string BaseGenerator::NamespaceDir(const Namespace &ns) const {
return BaseGenerator::NamespaceDir(parser_, path_, ns);
}
-bool BaseGenerator::IsEverythingGenerated() const {
- for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end();
- ++it) {
- if (!(*it)->generated) return false;
- }
- for (auto it = parser_.structs_.vec.begin();
- it != parser_.structs_.vec.end(); ++it) {
- if (!(*it)->generated) return false;
- }
- return true;
- }
-
std::string BaseGenerator::FullNamespace(const char *separator,
const Namespace &ns) {
std::string namespace_name;