FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor(generator): use common version and inline namespace for generated code by scotthart · Pull Request #5174 · googleapis/google-cloud-cpp · GitHub

refactor(generator): use common version and inline namespace for generated code - #5174

Merged
scotthart merged 3 commits into
googleapis:masterfrom
scotthart:generator_common_version
Oct 1, 2020
Merged

refactor(generator): use common version and inline namespace for generated code#5174
scotthart merged 3 commits into
googleapis:masterfrom
scotthart:generator_common_version

Conversation

scotthart commented Sep 30, 2020
edited by coryan
Loading

Copy link
Copy Markdown
Member

This change is 

scotthart requested a review from a team September 30, 2020 22:41
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 30, 2020

codecov Bot commented Sep 30, 2020
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #5174 into master will increase coverage by 0.01%.
The diff coverage is 99.44%.

@@            Coverage Diff             @@
##           master    #5174      +/-   ##
==========================================
+ Coverage   95.79%   95.80%   +0.01%     
==========================================
  Files        1006     1012       +6     
  Lines       91645    91743      +98     
==========================================
+ Hits        87792    87897     +105     
+ Misses       3853     3846       -7     
Impacted Files Coverage Δ
...or/integration_tests/generator_integration_test.cc 96.49% <ø> (ø)
...tion_tests/golden/golden_logging_decorator_test.cc 100.00% <ø> (ø)
...ion_tests/golden/golden_metadata_decorator_test.cc 100.00% <ø> (ø)
...rator/integration_tests/golden/golden_stub_test.cc 86.33% <ø> (ø)
...rnal/database_admin_logging_decorator.gcpcxx.pb.cc 100.00% <ø> (ø)
...ernal/database_admin_logging_decorator.gcpcxx.pb.h 100.00% <ø> (ø)
...nal/database_admin_metadata_decorator.gcpcxx.pb.cc 100.00% <ø> (ø)
...rnal/database_admin_metadata_decorator.gcpcxx.pb.h 100.00% <ø> (ø)
...s/golden/internal/database_admin_stub.gcpcxx.pb.cc 100.00% <ø> (ø)
...ts/golden/internal/database_admin_stub.gcpcxx.pb.h 100.00% <ø> (ø)
... and 36 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0aa8ce5...1cca632. Read the comment docs.

Comment on lines +79 to 82
if (nspace == "GOOGLE_CLOUD_CPP_NS") {
p.Print("inline namespace $namespace$ {\n", "namespace", nspace);
} else {
p.Print("namespace $namespace$ {\n", "namespace", nspace);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nit: This is another one of those cases where it is really just the "inline " bit that is conditional. That is, ...

  if (nspace == "GOOGLE_CLOUD_CPP_NS") p.Print("inline ");
  p.Print("namespace $namespace$ {\n", "namespace", nspace);

coryan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think this will also fix the MSVC+x86 breakage. Thanks!

Reviewed 35 of 35 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @scotthart)

scotthart merged commit d10f8bf into googleapis:master Oct 1, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL