Have grpc include file with correct filename-suffix given to flatc (#6954)
authorPanagiotis Gourgaris <panagiotis.gourgaris@citrix.com>
Thu, 2 Dec 2021 17:49:12 +0000 (19:49 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Dec 2021 17:49:12 +0000 (09:49 -0800)
commitfadd40e402c7d3861dae5820afac2eee58097cfe
tree32f4507f297012dd8986581acf4163b9d19acc0a
parente47dc0e465894998f269fbbe2abbeaafb7a4bf56
Have grpc include file with correct filename-suffix given to flatc (#6954)

When generating code with --grpc,  --cpp and using filename-suffix, the generated grpc files where not including the correct header that had the filename-suffix. As a suffix, they used the default "_generated".
Free functions for these were used to get the suffix. FlatBufFile had such methods, but also needed to be into its base File and use these.
- grpc generated files include the correct message header.
- grpc generated files also have the suffix
- grpc generated cc file does not include initial message header
grpc/src/compiler/cpp_generator.cc
grpc/src/compiler/schema_interface.h
src/idl_gen_grpc.cpp