Skip to content

cc: Convert base file name to screaming snake case#272

Merged
akonradi merged 4 commits intobufbuild:masterfrom
dio:screaming-snake-case
Sep 4, 2019
Merged

cc: Convert base file name to screaming snake case#272
akonradi merged 4 commits intobufbuild:masterfrom
dio:screaming-snake-case

Conversation

@dio
Copy link
Copy Markdown
Contributor

@dio dio commented Sep 4, 2019

This patch converts the base file name into screaming_snake_case instead
of upper for cc macro generation.

This is motivated by:

INFO: From Compiling external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.cc:
In file included from bazel-out/k8-opt/bin/external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.cc:5:
bazel-out/k8-opt/bin/external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.h:37:31: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
                              ^
1 warning generated.

As reported in
envoyproxy/envoy#6985 (comment).

Signed-off-by: Dhi Aurrahman dio@tetrate.io

This patch converts the base file name into screaming snake case instead
of upper for cc macro generation.

This is motivated by:

INFO: From Compiling external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.cc:
In file included from bazel-out/k8-opt/bin/external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.cc:5:
bazel-out/k8-opt/bin/external/com_github_openzipkin_zipkinapi/zipkin-jsonv2.pb.validate.h:37:31: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
                              ^
1 warning generated.

As reported in
envoyproxy/envoy#6985 (comment).

Signed-off-by: Dhi Aurrahman <dio@tetrate.io>
@akonradi
Copy link
Copy Markdown
Contributor

akonradi commented Sep 4, 2019

Thanks, this is definitely the right way forward. Looks like the pgv_python_proto_library rule declares output file names that don't match what is actually being produced. Let me know if you need help debugging.

@akonradi akonradi self-requested a review September 4, 2019 13:53
@akonradi akonradi self-assigned this Sep 4, 2019
Signed-off-by: Dhi Aurrahman <dio@tetrate.io>
dio added 2 commits September 4, 2019 22:38
Signed-off-by: Dhi Aurrahman <dio@tetrate.io>
Signed-off-by: Dhi Aurrahman <dio@tetrate.io>
@akonradi
Copy link
Copy Markdown
Contributor

akonradi commented Sep 4, 2019

Looks good, will merge once CI passes

@dio
Copy link
Copy Markdown
Contributor Author

dio commented Sep 4, 2019

Thank you, @akonradi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants