diff options
author | Casper <casperneo@uchicago.edu> | 2021-06-22 10:19:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 10:19:46 -0400 |
commit | 71d43f3be94d6f448ff8776cb88dafa025c7b80d (patch) | |
tree | 4cc3e7c95b349ee1c40f0e8126dadccbb91d31e0 /docs | |
parent | c8db1ca5d43b74418eb32a57bf1cb6208a655ece (diff) | |
download | flatbuffers-71d43f3be94d6f448ff8776cb88dafa025c7b80d.tar.gz flatbuffers-71d43f3be94d6f448ff8776cb88dafa025c7b80d.tar.bz2 flatbuffers-71d43f3be94d6f448ff8776cb88dafa025c7b80d.zip |
Make --bfbs-filenames default to location of first schema file. (#6705)
* Make --bfbs-filenames default to location of first schema file.
Make RelativeToProjectRoot always work, applying "../" where needed. This is
needed for backwards compatibility. The first input file may be deeper in some
directory than the other files. Now, there will always be a declaration
file.
* documentation
* clang format
Co-authored-by: Casper Neo <cneo@google.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/IntermediateRepresentation.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/source/IntermediateRepresentation.md b/docs/source/IntermediateRepresentation.md index f5c302a7..f4eb0753 100644 --- a/docs/source/IntermediateRepresentation.md +++ b/docs/source/IntermediateRepresentation.md @@ -13,6 +13,9 @@ There are some quirks: field of `Schema`. These mark the presence of new, backwards incompatible, schema features. Code generators must error if generating a schema with unrecognized advanced features. +- Filenames are relative to a "project root" denoted by "//" in the path. This + may be specified in flatc with `--bfbs-filenames=$PROJECT_ROOT`, or it will be + inferred to be the directory containing the first provided schema file. ## Invocation |