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
40fffc8f
Commit
40fffc8f
authored
Jun 13, 2015
by
Amol Deshpande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code formatting and bug with losing enums when using --gen-onefile
parent
2f761418
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
Compiler.md
docs/source/Compiler.md
+2
-0
flatc.cpp
src/flatc.cpp
+2
-2
idl_gen_general.cpp
src/idl_gen_general.cpp
+1
-1
No files found.
docs/source/Compiler.md
View file @
40fffc8f
...
...
@@ -57,6 +57,8 @@ be generated for each file processed:
- `
--gen-mutable
` : Generate additional non-const accessors for mutating
FlatBuffers in-place.
- `
--gen-onefile
` : Generate single output file (useful for C#)
- `
--raw-binary
` : Allow binaries without a file_indentifier to be read.
This may crash flatc given a mismatched schema.
...
...
src/flatc.cpp
View file @
40fffc8f
...
...
@@ -141,9 +141,9 @@ int main(int argc, const char *argv[]) {
opts
.
mutable_buffer
=
true
;
}
else
if
(
arg
==
"--gen-includes"
)
{
opts
.
include_dependence_headers
=
true
;
}
else
if
(
arg
==
"--gen-onefile"
)
{
}
else
if
(
arg
==
"--gen-onefile"
)
{
opts
.
one_file
=
true
;
}
else
if
(
arg
==
"--raw-binary"
)
{
}
else
if
(
arg
==
"--raw-binary"
)
{
raw_binary
=
true
;
}
else
if
(
arg
==
"--"
)
{
// Separator between text and binary inputs.
binary_files_from
=
filenames
.
size
();
...
...
src/idl_gen_general.cpp
View file @
40fffc8f
...
...
@@ -901,7 +901,7 @@ bool GenerateGeneral(const Parser &parser,
std
::
string
enumcode
;
GenEnum
(
lang
,
**
it
,
&
enumcode
);
if
(
opts
.
one_file
)
{
one_file_code
=
enumcode
;
one_file_code
+
=
enumcode
;
}
else
{
if
(
!
SaveClass
(
lang
,
parser
,
(
**
it
).
name
,
enumcode
,
path
,
false
,
false
))
...
...
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