flatbuffers/docs/source
jalitriver 920f3827a0
[C++] Add Command-Line Flag to Suppress MIN and MAX Enums (#7705)
Add the --no-minmax-values flag to prevent flatc from generating C++
enums with MIN and MAX enumerated values that otherwise would be set
to the inclusive lower and upper bound respectively of the enum.

This command-line flag is needed to avoid collisions when an enum that
is being ported to FlatBuffers already has a MIN or MAX enumerated
value.

It is also needed to work around a long-standing problem with
magic_enum that causes magic_enum to not see enumerated values that
are not unique.  For example, if FlatBuffers sets MIN = FOO and MAX =
BAR, MIN and FOO share the same underlying value so they are not
unique.  The same is true of MAX and BAR.  This prevents magic_enum
from converting FOO and BAR to and from strings as well as causing
magic_enum to return a count of enumerated values that is two fewer
than it should be.

Co-authored-by: Paul Serice <paul@serice.net>
2023-01-07 10:33:11 -08:00
..
gRPC
Benchmarks.md
Building.md Generate SLSA signatures for Released zip files (#7450) 2022-08-16 16:30:37 -07:00
Compiler.md [C++] Add Command-Line Flag to Suppress MIN and MAX Enums (#7705) 2023-01-07 10:33:11 -08:00
CONTRIBUTING.md
CppUsage.md
CsharpUsage.md Update missing C# namespace to Google.FlatBuffers 2022-12-01 20:04:49 -08:00
CUsage.md
DartUsage.md
doxyfile
doxygen_layout.xml
FlatBuffers.md
FlexBuffers.md
GoApi.md
GoApi_generated.txt
GoUsage.md replace io/ioutil to os (#7281) 2022-06-14 15:10:57 -07:00
Grammar.md Update documentation to mention enum value attributes (#7570) 2022-10-08 19:52:38 -04:00
groups
IntermediateRepresentation.md
Internals.md
JavaScriptUsage.md
JavaUsage.md
KotlinUsage.md
LobsterUsage.md
LuaUsage.md
PHPUsage.md
PythonUsage.md
README_TO_GENERATE_DOCS.md Fix "Download Doxygen" URL (#7699) 2022-12-06 14:01:12 -08:00
RustUsage.md Update Rust docs page (#7296) 2022-05-12 10:02:14 -07:00
Schemas.md Fix #7580 by documenting union schema evolution rules (#7585) 2022-10-17 17:49:28 -04:00
style.css
Support.md
SwiftUsage.md Removes Dead code & regenerate code (#7744) 2023-01-06 16:40:40 -08:00
Tutorial.md Removes Dead code & regenerate code (#7744) 2023-01-06 16:40:40 -08:00
TypeScriptUsage.md Moved TypeScriptTests to python script (#7411) 2022-08-07 11:42:02 -07:00
WhitePaper.md Fix minor typo in WhitePaper.md (#7108) 2022-02-18 21:29:21 -08:00