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
9fb195cc
Commit
9fb195cc
authored
Jun 24, 2019
by
Bryan Furia
Committed by
Wouter van Oortmerssen
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix generating nested Flatbuffer accessors when they cross namespaces (#5414)
parent
7836e65d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
idl_parser.cpp
src/idl_parser.cpp
+1
-6
No files found.
src/idl_parser.cpp
View file @
9fb195cc
...
...
@@ -843,12 +843,7 @@ CheckedError Parser::ParseField(StructDef &struct_def) {
"nested_flatbuffer attribute may only apply to a vector of ubyte"
);
// This will cause an error if the root type of the nested flatbuffer
// wasn't defined elsewhere.
LookupCreateStruct
(
nested
->
constant
);
// Keep a pointer to StructDef in FieldDef to simplify re-use later
auto
nested_qualified_name
=
current_namespace_
->
GetFullyQualifiedName
(
nested
->
constant
);
field
->
nested_flatbuffer
=
LookupStruct
(
nested_qualified_name
);
field
->
nested_flatbuffer
=
LookupCreateStruct
(
nested
->
constant
);
}
if
(
field
->
attributes
.
Lookup
(
"flexbuffer"
))
{
...
...
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