Skip to content

Commit

Permalink
Add @generated to the output erl
Browse files Browse the repository at this point in the history
The intention is to mitigate performance issues with
the Erlang laguage platform.
  • Loading branch information
tomas-abrahamsson committed Feb 19, 2024
1 parent fbda672 commit 945ed64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gpb_compile.erl
Original file line number Diff line number Diff line change
Expand Up @@ -4392,7 +4392,8 @@ format_erl(Mod, Defs, DefsNoRenamings, DefsForIntrospect,
DoDecoders = gpb_lib:get_gen_decoders(Opts),
CompileOptsStr = get_erlc_compile_options_str(Opts),
gpb_lib:iolist_to_utf8_or_escaped_binary(
[?f("%% @private~n"
[?f("%% % this file is @generated~n"
"%% @private~n"
"%% Automatically generated, do not edit~n"
"%% Generated by ~p version ~s~n"
"%% Version source: ~s~n",
Expand Down

0 comments on commit 945ed64

Please sign in to comment.