Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++: Rename evmc::result → evmc::Result #665

Merged
merged 1 commit into from
Aug 10, 2022
Merged

C++: Rename evmc::result → evmc::Result #665

merged 1 commit into from
Aug 10, 2022

Conversation

chfast
Copy link
Member

@chfast chfast commented Aug 10, 2022

Rename the evmc::result to evmc::Result for consistency with C++ types of similar kind.

@chfast chfast requested review from gumb0 and yperbasis August 10, 2022 13:16
@@ -328,7 +328,7 @@ constexpr auto make_result = evmc_make_result;
///
/// This is a RAII wrapper for evmc_result and objects of this type
/// automatically release attached resources.
class result : private evmc_result
class Result : private evmc_result
Copy link
Member

Choose a reason for hiding this comment

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

What is the reasoning behind this? Complex data types are upper case, simple data types (bytes32 for example) are lowercase?

Copy link
Member Author

Choose a reason for hiding this comment

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

For consistency with evmc::VM, evmc::Host, evmc::HostInterface, etc. Not that we have perfect consistency but upper case names are easier to use in C++. @yperbasis was in favor.

Rename the `evmc::result` to `evmc::Result` for consistency
with C++ types of similar kind.
@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #665 (b7210a3) into master (9fbf1d6) will not change coverage.
The diff coverage is 93.75%.

@@           Coverage Diff           @@
##           master     #665   +/-   ##
=======================================
  Coverage   93.02%   93.02%           
=======================================
  Files          25       25           
  Lines        3655     3655           
  Branches      379      379           
=======================================
  Hits         3400     3400           
  Misses        145      145           
  Partials      110      110           

@chfast chfast merged commit eeb9455 into master Aug 10, 2022
@chfast chfast deleted the cpp_result branch August 10, 2022 14:19
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.

4 participants