summaryrefslogtreecommitdiff
path: root/src/idl_gen_cpp.cpp
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2023-05-09 21:50:28 -0700
committerGitHub <noreply@github.com>2023-05-09 21:50:28 -0700
commit10b79d87c19bd2d0f4fd061d623f3b08cb55a1a9 (patch)
treec05ee752775d9d37d36e0dd10908a380b0e87601 /src/idl_gen_cpp.cpp
parent16a7df46f0aee4ea6f74f1e3af36a0eefa1caf05 (diff)
downloadflatbuffers-10b79d87c19bd2d0f4fd061d623f3b08cb55a1a9.tar.gz
flatbuffers-10b79d87c19bd2d0f4fd061d623f3b08cb55a1a9.tar.bz2
flatbuffers-10b79d87c19bd2d0f4fd061d623f3b08cb55a1a9.zip
removed extern code generation declarations preferring direct includes (#7948)
* removed extern code generation definitions, preferring direct includes * add static to functions * remove idl_gen_lua
Diffstat (limited to 'src/idl_gen_cpp.cpp')
-rw-r--r--src/idl_gen_cpp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idl_gen_cpp.cpp b/src/idl_gen_cpp.cpp
index b5199062..c090fbff 100644
--- a/src/idl_gen_cpp.cpp
+++ b/src/idl_gen_cpp.cpp
@@ -4066,7 +4066,7 @@ class CppGenerator : public BaseGenerator {
} // namespace cpp
-bool GenerateCPP(const Parser &parser, const std::string &path,
+static bool GenerateCPP(const Parser &parser, const std::string &path,
const std::string &file_name) {
cpp::IDLOptionsCpp opts(parser.opts);
// The '--cpp_std' argument could be extended (like ASAN):
@@ -4105,7 +4105,7 @@ bool GenerateCPP(const Parser &parser, const std::string &path,
return generator.generate();
}
-std::string CPPMakeRule(const Parser &parser, const std::string &path,
+static std::string CPPMakeRule(const Parser &parser, const std::string &path,
const std::string &file_name) {
const auto filebase = StripPath(StripExtension(file_name));
cpp::CppGenerator geneartor(parser, path, file_name, parser.opts);