Skip to content

clang-tidy: check casing on class names#8411

Merged
lizan merged 3 commits intoenvoyproxy:masterfrom
derekargueta:dereka/clang-tidy-identifier-class-name
Oct 4, 2019
Merged

clang-tidy: check casing on class names#8411
lizan merged 3 commits intoenvoyproxy:masterfrom
derekargueta:dereka/clang-tidy-identifier-class-name

Conversation

@derekargueta
Copy link
Copy Markdown
Member

Description: verify CamelCase for class names.
Risk Level: low
Testing: existing
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Derek Argueta dereka@pinterest.com

Signed-off-by: Derek Argueta <dereka@pinterest.com>
};

logTestClass testObj;
LogTestClass testObj;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/testObj/test_obj/ I think you'll catch this in next identifier-naming PR but feel free to fix here too.

@derekargueta
Copy link
Copy Markdown
Member Author

derekargueta commented Oct 1, 2019

I might need to revisit this check another time - clang-tidying source/common/common/fmt.h in isolation has an issue with #include "absl/strings/string_view.h" because the bazel target is an envoy_basic_cc_library, a thin wrapper around native.cc_library which doesn't know of abseil. Trying to move it to an envoy_cc_library causes a circular dependency ¯\_(ツ)_/¯

This isn't an effect of clang-tidy, just an issue in the build system that seems to have relied on transitive dependencies for getting abseil.

@lizan
Copy link
Copy Markdown
Member

lizan commented Oct 1, 2019

@derekargueta I think you may add abseil_strings deps to envoy_basic_cc_library, that shouldn't introduce circular dependency.

Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
@lizan lizan merged commit 0360afe into envoyproxy:master Oct 4, 2019
@derekargueta derekargueta deleted the dereka/clang-tidy-identifier-class-name branch October 5, 2019 07:55
nandu-vinodan pushed a commit to nandu-vinodan/envoy that referenced this pull request Oct 17, 2019
Description: verify `CamelCase` for class names.
Risk Level: low
Testing: existing
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Derek Argueta <dereka@pinterest.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.

2 participants