Skip to content

grpc: move ifdefs out of headers.#8458

Merged
jmarantz merged 1 commit intoenvoyproxy:masterfrom
jmarantz:no-ifdefs-in-headers
Oct 2, 2019
Merged

grpc: move ifdefs out of headers.#8458
jmarantz merged 1 commit intoenvoyproxy:masterfrom
jmarantz:no-ifdefs-in-headers

Conversation

@jmarantz
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz commented Oct 2, 2019

Description: It is problematic to have ifdefs for fields in class definitions in a header file that's used at the boundary of Envoy as a library, such as main_common.h. This PR moves the ifdef into the .cc file so that the compilation of that module is the only one that needs to see the ifdef
Risk Level: low
Testing: //test/common/grpc/...
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Copy Markdown
Contributor Author

jmarantz commented Oct 2, 2019

@envoyproxy/senior-maintainers

@jmarantz jmarantz merged commit e279cc8 into envoyproxy:master Oct 2, 2019
@jmarantz jmarantz deleted the no-ifdefs-in-headers branch October 2, 2019 19:37
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
Signed-off-by: Joshua Marantz <jmarantz@google.com>
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.

3 participants