Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
0328deda
Commit
0328deda
authored
Jul 15, 2016
by
lakedaemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clangFormating base class
parent
b22db6e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
code_generators.h
include/flatbuffers/code_generators.h
+9
-6
No files found.
include/flatbuffers/code_generators.h
View file @
0328deda
...
...
@@ -39,8 +39,8 @@ class BaseGenerator {
protected
:
BaseGenerator
(
const
Parser
&
parser
,
const
std
::
string
&
path
,
const
std
::
string
&
file_name
,
const
std
::
string
qualifying_start
,
const
std
::
string
&
file_name
,
const
std
::
string
qualifying_start
,
const
std
::
string
qualifying_separator
)
:
parser_
(
parser
),
path_
(
path
),
...
...
@@ -86,15 +86,18 @@ class BaseGenerator {
const
std
::
string
LastNamespacePart
(
const
Namespace
&
ns
)
{
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
// c++, java and csharp returns a different namespace from
// the following default (no early exit, always fully qualify),
// c++, java and csharp returns a different namespace from
// the following default (no early exit, always fully qualify),
// which works for js and php
virtual
const
Namespace
*
CurrentNameSpace
()
{
return
nullptr
;
}
// Ensure that a type is prefixed with its namespace whenever it is used
// outside of its namespace.
std
::
string
WrapInNameSpace
(
const
Namespace
*
ns
,
const
std
::
string
&
name
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment