MCPcopy Create free account
hub / github.com/Genivia/RE-flex / write_namespace_close

Method write_namespace_close

src/reflex.cpp:3184–3194  ·  view source on GitHub ↗

Write namespace closing scope } // NAME

Source from the content-addressed store, hash-verified

3182
3183/// Write namespace closing scope } // NAME
3184void Reflex::write_namespace_close()
3185{
3186 const std::string& s = options["namespace"];
3187 size_t i = 0, j;
3188 while ((j = s.find("::", i)) != std::string::npos)
3189 {
3190 *out << "} // namespace " << s.substr(i, j-i) << '\n';
3191 i = j + 2;
3192 }
3193 *out << "} // namespace " << s.substr(i) << '\n';
3194}
3195
3196/// Write namespace scope NAME ::
3197void Reflex::write_namespace_scope()

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected