mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 06:58:05 +00:00
clangFormating base class
This commit is contained in:
@@ -86,7 +86,10 @@ class BaseGenerator {
|
|||||||
|
|
||||||
const std::string LastNamespacePart(const Namespace &ns) {
|
const std::string LastNamespacePart(const Namespace &ns) {
|
||||||
auto &namespaces = ns.components;
|
auto &namespaces = ns.components;
|
||||||
if (namespaces.size()) return *(namespaces.end() - 1); else return std::string("");
|
if (namespaces.size())
|
||||||
|
return *(namespaces.end() - 1);
|
||||||
|
else
|
||||||
|
return std::string("");
|
||||||
}
|
}
|
||||||
|
|
||||||
// tracks the current namespace for early exit in WrapInNameSpace
|
// tracks the current namespace for early exit in WrapInNameSpace
|
||||||
|
|||||||
Reference in New Issue
Block a user