Skip to content

clang-tidy: check casing on type aliases#8408

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
derekargueta:dereka/clang-tidy-identifier-type-alias
Sep 27, 2019
Merged

clang-tidy: check casing on type aliases#8408
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
derekargueta:dereka/clang-tidy-identifier-type-alias

Conversation

@derekargueta
Copy link
Copy Markdown
Member

Description: verify CamelCase for using FooBar = ...; statements with some exceptions.
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>
using HashSet =
absl::flat_hash_set<StatNameStorage, HeterogeneousStatNameHash, HeterogeneousStatNameEqual>;
using iterator = HashSet::iterator;
using Iterator = HashSet::iterator;
Copy link
Copy Markdown
Member Author

@derekargueta derekargueta Sep 27, 2019

Choose a reason for hiding this comment

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

I was on the fence about exempting this since ::iterator is more STL-like, but prefer fewer exemptions since it doesn't have to be lower_case (unlike is_transparent and type) - open to opinions.

using iterator = DataContainer::iterator;
using const_iterator = DataContainer::const_iterator;
using Iterator = DataContainer::iterator;
using ConstIterator = DataContainer::const_iterator;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

same here

Signed-off-by: Derek Argueta <dereka@pinterest.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit 72e5a2b into envoyproxy:master Sep 27, 2019
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
Signed-off-by: Derek Argueta <dereka@pinterest.com>
@derekargueta derekargueta deleted the dereka/clang-tidy-identifier-type-alias branch November 26, 2019 10:53
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