diff options
author | Casper <casperneo@uchicago.edu> | 2021-06-17 11:50:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 11:50:04 -0400 |
commit | c58ae942256577ab4c20137ead6f4e1b2a03ff3c (patch) | |
tree | 5572d3c18d3d0a8083aa8ca5daea5fa05cda311f /grpc | |
parent | 2cf7bb796684375867089b348e876ddf733ef022 (diff) | |
download | flatbuffers-c58ae942256577ab4c20137ead6f4e1b2a03ff3c.tar.gz flatbuffers-c58ae942256577ab4c20137ead6f4e1b2a03ff3c.tar.bz2 flatbuffers-c58ae942256577ab4c20137ead6f4e1b2a03ff3c.zip |
Add the file a symbol is declared in to Reflection (#6613)
* Add the file a symbol is declared in to Reflection
If we move a code-generator to depend on Reflection,
it may need to know which file something was declared in
to properly name generated files.
* Doc comments in reflection, and more precise tests
* Add --project-root flag to flatc, normalize declaraion_file to this root
* fix --project-root stuff
* posixpath
* fix scripts
* format
* rename --project-root to --bfbs-filenames
Also, make it optional, rather than defaulting to `./`, if its not
specified, then don't serialize the filenames.
* bfbs generation
* fix some tests
* uncomment a thing
* add to project root directory conditionally
* fix
* git clang format
* Added help description and removed != nullptr
* "
* Remove accidental change to docs
* Remove accidental change to docs
* Pool strings
Co-authored-by: Casper Neo <cneo@google.com>
Diffstat (limited to 'grpc')
-rwxr-xr-x | grpc/examples/generate.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grpc/examples/generate.sh b/grpc/examples/generate.sh index b0740d8a..39ca6620 100755 --- a/grpc/examples/generate.sh +++ b/grpc/examples/generate.sh @@ -41,7 +41,7 @@ generator="--grpc $current_dir/greeter.fbs" cd go cd greeter -fbc --go ${generator} +fbc --bfbs-filenames ../.. --go ${generator} cd ${current_dir} @@ -50,7 +50,7 @@ cd python cd greeter -fbc --python ${generator} +fbc --bfbs-filenames ../.. --python ${generator} cd ${current_dir} @@ -58,7 +58,7 @@ cd ${current_dir} cd swift cd Greeter/Sources/Model -fbc --swift ${generator} +fbc --bfbs-filenames ../../../.. --swift ${generator} cd ${current_dir} @@ -66,6 +66,6 @@ cd ${current_dir} cd ts cd greeter/src -fbc --ts ${generator} +fbc --bfbs-filenames ../../.. --ts ${generator} cd ${current_dir} |