mirror of https://github.com/vee1e/flatbuffers - FlatBuffers: Memory Efficient Serialization Library
Find a file
Aman Priyadarshi 468c00a3fe
Rebased: grpc/compiler: Respect filename suffix and extension during code generation (#7414)
* grpc/compiler: Respect filename suffix and extension during code generation

grpc compiler is not respecting filename suffix and extension passed to
flatc CLI. This causes compiler to spit out incorrect code, which then
cannot be compiled without modification.

Following patch fixes the problem.

Note, I ended up removing some code introduced #6954 ("Have grpc include
file with correct filename-suffix given to flatc") in favour of keeping
sanity of the generator code.

Signed-off-by: Aman Priyadarshi <aman.eureka@gmail.com>

* tests: Add filename-suffix and filename-ext test files

* Test 1: Filename extension changed to "hpp".
* Test 2: Filename suffix changed to "_suffix".
* Test 3: Filename extension changed to "hpp" and suffix changed to "_suffix"

Signed-off-by: Aman Priyadarshi <aman.eureka@gmail.com>
2022-08-07 11:32:53 -07:00
.bazelci
.github Add FLATBUFFERS_STRICT_MODE (#7408) 2022-08-06 21:06:14 -07:00
android [Kotlin] Update gradle to 7.4.1 and simplify config files. (#7231) 2022-04-08 11:23:13 -07:00
bazel
benchmarks Started to migrate to target_compile_options (#7222) 2022-04-06 13:25:43 -07:00
CMake (#7323) Rename CMake files according to project name (#7378) 2022-08-05 22:19:17 -07:00
conan Fix Clang-Cl compile on Windows (#7308) 2022-08-05 22:08:36 -07:00
dart Fix references to LICENSE file (#7377) 2022-07-07 16:06:19 -07:00
docs Add FLATBUFFERS_STRICT_MODE (#7408) 2022-08-06 21:06:14 -07:00
go
grpc Rebased: grpc/compiler: Respect filename suffix and extension during code generation (#7414) 2022-08-07 11:32:53 -07:00
include/flatbuffers Fix FlexBuffers Verifier tracking vectors reuse at wrong offset 2022-08-05 10:45:01 -07:00
java/com/google/flatbuffers
js
kotlin [Kotlin] Remove download benchmark files dependency (#7314) 2022-06-14 15:49:42 -07:00
lobster
lua
mjs
net/FlatBuffers
php
python Implement optional scalars for Python (#7318) 2022-06-13 09:16:00 -04:00
reflection [TS/Bazel] Minor improvements to typescript.bzl (#7300) 2022-08-05 22:04:05 -07:00
rust Rust: fix a name conflict when building with "no_std" feature (#7268) 2022-04-25 13:09:41 -04:00
samples Add explicit return types to lobster generated code (#7312) 2022-05-23 10:50:01 -07:00
scripts Rebased: grpc/compiler: Respect filename suffix and extension during code generation (#7414) 2022-08-07 11:32:53 -07:00
snap
src Rebased: grpc/compiler: Respect filename suffix and extension during code generation (#7414) 2022-08-07 11:32:53 -07:00
swift Adds full supposed for Wasm in the swift lib (#7328) 2022-05-29 20:56:33 +02:00
tests Rebased: grpc/compiler: Respect filename suffix and extension during code generation (#7414) 2022-08-07 11:32:53 -07:00
ts [TS] Use TextEncoder and TextDecoder (#7400) 2022-08-06 22:00:30 +00:00
.clang-format
.editorconfig
.eslintrc.js
.gitattributes
.gitignore Started to migrate to target_compile_options (#7222) 2022-04-06 13:25:43 -07:00
.travis.yml
BUILD.bazel code gen flexbuffer verifier (#7207) 2022-04-05 16:29:42 -07:00
build_defs.bzl
CMakeLists.txt Add FLATBUFFERS_STRICT_MODE (#7408) 2022-08-06 21:06:14 -07:00
composer.json
conanfile.py
CONTRIBUTING.md
Formatters.md
LICENSE.txt
package.json
pom.xml
readme.md Update readme.md 2022-08-05 23:41:06 -07:00
SECURITY.md
swift.swiftformat
tsconfig.json
tsconfig.mjs.json
typescript.bzl [TS/Bazel] Minor improvements to typescript.bzl (#7300) 2022-08-05 22:04:05 -07:00
WORKSPACE
yarn.lock

logo FlatBuffers

Build status Fuzzing Status OpenSSF Scorecard Join the chat at https://gitter.im/google/flatbuffers Discord Chat Twitter Follow Twitter Follow

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.

Go to our landing page to browse our documentation.

Supported operating systems

  • Windows
  • MacOS X
  • Linux
  • Android
  • And any others with a recent C++ compiler.

Supported programming languages

  • C++
  • C#
  • C
  • Dart
  • Go
  • Java
  • JavaScript
  • Lobster
  • Lua
  • PHP
  • Python
  • Rust
  • Swift
  • TypeScript

and more in progress...

Contribution

To contribute to this project, see CONTRIBUTING.

Security

Please see our Security Policy for reporting vulnerabilities.

Licensing

Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.