Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-05 Thread Jacob Barrett
ome otherwise very-readable code. > >From: Blake Bender >Date: Monday, May 3, 2021 at 11:23 AM > To: dev@geode.apache.org >Subject: RE: DISCUSSION: Geode Native C++ Style and Formatting Guide >My $0.02 on these: > >Things I'd like to see us con

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-05 Thread Ernie Burghardt
eode.apache.org Subject: RE: DISCUSSION: Geode Native C++ Style and Formatting Guide My $0.02 on these: Things I'd like to see us conform to Google style on: * I'd be happy to move to C++ 17 * Would also be happy to remove forward declarations. "I'm not a c

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-04 Thread Jacob Barrett
> On May 4, 2021, at 7:59 AM, Mario Salazar de Torres > wrote: > > Sure, gladly 🙂. Let me put up the info and I will open the discussion. > And sorry for polluting this topic regarding Style and Formatting :S No apologies! I just think this topic has a much bigger scope than documenting our

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-04 Thread Mario Salazar de Torres
: Geode Native C++ Style and Formatting Guide Mario, Let’s start a separate discussion for going to C++17 on a minor release. Can you lay out the pros and cons to kick it off? > On May 4, 2021, at 7:31 AM, Mario Salazar de Torres > wrote: > > Hi everyone, > > Regarding Blake&#

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-04 Thread Jacob Barrett
dard for the project as it has > several cool features, but sadly I must admit is too recent to be adopted. > > Thanks, > Mario. > > From: Blake Bender > Sent: Monday, May 3, 2021 8:23 PM > To: dev@geode.apache.org > Subject: RE: DISCU

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-04 Thread Mario Salazar de Torres
ION: Geode Native C++ Style and Formatting Guide My $0.02 on these: Things I'd like to see us conform to Google style on: * I'd be happy to move to C++ 17 * Would also be happy to remove forward declarations. "I'm not a critic, but I know what I hate," as it were, and I h

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-03 Thread Jacob Barrett
> On May 3, 2021, at 11:23 AM, Blake Bender wrote: > > My $0.02 on these: > > Things I'd like to see us conform to Google style on: > * I'd be happy to move to C++ 17 This is likely an ABI change and certainly moves the minimum runtime library. The latter might be hard in a minor release. >

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-03 Thread Jacob Barrett
ng-tidy?) of mangling some otherwise very-readable code. > > From: Blake Bender > Date: Monday, May 3, 2021 at 11:23 AM > To: dev@geode.apache.org > Subject: RE: DISCUSSION: Geode Native C++ Style and Formatting Guide > My $0.02 on these: > > Things I'd like to see us con

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-03 Thread Robert Houghton
80 characters also feels arbitrary, especially with auto-formatters (clang-tidy?) of mangling some otherwise very-readable code. From: Blake Bender Date: Monday, May 3, 2021 at 11:23 AM To: dev@geode.apache.org Subject: RE: DISCUSSION: Geode Native C++ Style and Formatting Guide My $0.02 on

RE: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-03 Thread Blake Bender
elevant to the fix/feature, and mixing it with random style guide refactoring, I feel, muddies the waters for future maintainers. Thanks, Blake -Original Message- From: Jacob Barrett Sent: Saturday, May 1, 2021 9:21 AM To: dev@geode.apache.org Subject: Re: DISCUSSION: Geode Native C++

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-01 Thread Jacob Barrett
Great call outs! > On May 1, 2021, at 7:57 AM, Mario Salazar de Torres > wrote: > > 1. Member variables names as of Google style guide requires a '_' char to > be added at the end so it can be identified. Should we also adopt that? > For example, imagine you have a region mutex, so, should w

Re: DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-05-01 Thread Mario Salazar de Torres
only used when there is no alternative"? Thanks, Mario. From: Jacob Barrett Sent: Saturday, May 1, 2021 2:31 AM To: dev@geode.apache.org Subject: DISCUSSION: Geode Native C++ Style and Formatting Guide Team, We haven’t been good about documenting our style

DISCUSSION: Geode Native C++ Style and Formatting Guide

2021-04-30 Thread Jacob Barrett
Team, We haven’t been good about documenting our style and formatting guidance. Like the Java sources are loosely styled after the Google Java Style Guide, the C++ sources are loosely styled after the Google C++ Style Guide. We deviate in some places from the Google C++ Style Guide. Without

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-28 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/geode-native/pull/32 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103054588 --- Diff: src/cppcache/integration-test/BuiltinCacheableWrappers.hpp --- @@ -23,7 +23,7 @@ #include "CacheableWrapper.hpp" extern "C"

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103054617 --- Diff: src/cppcache/src/CacheableBuiltins.cpp --- @@ -19,7 +19,7 @@ #include extern "C" { -#include +#include

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103045677 --- Diff: src/tests/cpp/fwklib/Timer.hpp --- @@ -28,18 +28,18 @@ #ifdef _WIN32 -#include -#include -#include +#inclu

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103044451 --- Diff: src/cppcache/src/Utils.cpp --- @@ -22,7 +22,7 @@ #include extern "C" { -#include +#include --- End diff --

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103031314 --- Diff: src/tests/cpp/fwklib/Timer.hpp --- @@ -28,18 +28,18 @@ #ifdef _WIN32 -#include -#include -#include

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103031038 --- Diff: src/cppcache/src/Utils.cpp --- @@ -22,7 +22,7 @@ #include extern "C" { -#include +#include --- End diff

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
GitHub user dgkimura reopened a pull request: https://github.com/apache/geode-native/pull/32 GEODE-2439: Replace c-style headers with c++ headers Purpose is to remove potentially non-portable c headers with the c++ equivalent headers. Testing - built on OSX You can merge

[GitHub] geode-native issue #32: GEODE-2439: Replace c-style headers with c++ headers

2017-02-24 Thread dgkimura
Github user dgkimura commented on the issue: https://github.com/apache/geode-native/pull/32 @echobravopapa Yessir --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wish

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura closed the pull request at: https://github.com/apache/geode-native/pull/32 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103009496 --- Diff: src/tests/cpp/security/PkcsAuthInit.cpp --- @@ -19,7 +19,7 @@ #include #include #include -#include "stdio.h" +#inclu

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103009417 --- Diff: src/tests/cpp/security/XmlAuthzCredentialGenerator.hpp --- @@ -27,7 +27,7 @@ #include #include --- End diff --

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103009272 --- Diff: src/cppcache/test/ByteArray.cpp --- @@ -20,7 +20,7 @@ #include "config.h" #ifdef _MACOSX -#include // For wcstom

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103009143 --- Diff: src/tests/cpp/fwklib/TaskClient.cpp --- @@ -20,12 +20,12 @@ #include "fwklib/FwkLog.hpp" #include "fwklib/PerfFwk.hpp" -#i

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103008731 --- Diff: src/cppcache/test/ByteArray.cpp --- @@ -20,7 +20,7 @@ #include "config.h" #ifdef _MACOSX -#include // For wcstombs()

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103008420 --- Diff: src/cppcache/test/ByteArray.cpp --- @@ -20,7 +20,7 @@ #include "config.h" #ifdef _MACOSX --- End diff -- Yeah, se

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103008324 --- Diff: src/cppcache/src/statistics/HostStatHelperWin.hpp --- @@ -27,10 +27,10 @@ #include #include -#include -#include

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103005713 --- Diff: src/cppcache/src/statistics/HostStatHelperWin.hpp --- @@ -27,10 +27,10 @@ #include #include -#include -#inc

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103004805 --- Diff: src/cppcache/test/ByteArray.cpp --- @@ -20,7 +20,7 @@ #include "config.h" #ifdef _MACOSX --- End diff --

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103005160 --- Diff: src/tests/cpp/fwklib/TaskClient.cpp --- @@ -20,12 +20,12 @@ #include "fwklib/FwkLog.hpp" #include "fwklib/PerfFwk.hpp"

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103005494 --- Diff: src/tests/cpp/security/XmlAuthzCredentialGenerator.hpp --- @@ -27,7 +27,7 @@ #include #include --- End diff --

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103004766 --- Diff: src/cppcache/test/ByteArray.cpp --- @@ -20,7 +20,7 @@ #include "config.h" #ifdef _MACOSX -#include // For wcstom

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread pivotal-jbarrett
Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/32#discussion_r103005369 --- Diff: src/tests/cpp/security/PkcsAuthInit.cpp --- @@ -19,7 +19,7 @@ #include #include #include -#include "stdio.h"

[GitHub] geode-native issue #32: GEODE-2439: Replace c-style headers with c++ headers

2017-02-24 Thread echobravopapa
Github user echobravopapa commented on the issue: https://github.com/apache/geode-native/pull/32 @dgkimura STABLE tests passing? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature e

[GitHub] geode-native pull request #32: GEODE-2439: Replace c-style headers with c++ ...

2017-02-24 Thread dgkimura
GitHub user dgkimura opened a pull request: https://github.com/apache/geode-native/pull/32 GEODE-2439: Replace c-style headers with c++ headers Purpose is to remove potentially non-portable c headers with the c++ equivalent headers. Testing - built on OSX You can merge

Re: C++ Style

2017-02-23 Thread Ernest Burghardt
t) should be used in cases >> where the value may be entirely absent (e.g., there is no foo) and >> references (both const and non-const) used in all other cases. There may be >> special cases (e.g., mocks for Google Test) where a pointer to an interface >> is preferable but

Re: C++ Style

2017-02-22 Thread Ernest Burghardt
o) and > references (both const and non-const) used in all other cases. There may be > special cases (e.g., mocks for Google Test) where a pointer to an interface > is preferable but as a general rule the precondition that a reference can > not be null makes them preferable. > > Sarg

Re: C++ Style

2017-02-21 Thread Michael William Dodge
pecial cases (e.g., mocks for Google Test) where a pointer to an interface is preferable but as a general rule the precondition that a reference can not be null makes them preferable. Sarge > On 20 Feb, 2017, at 13:48, Jacob Barrett wrote: > > A bit back we discussed and adopted th

C++ Style

2017-02-20 Thread Jacob Barrett
A bit back we discussed and adopted the Google C++ Style Guide. As we dig deeper into the C++ sources we find some striking differences in some of the conventions that we may want to discuss and address before tackling them. *Variable Naming* Google style dictates no *camelCase*, use either