lint: add more linters for using absl:: over std::#13043
lint: add more linters for using absl:: over std::#13043mattklein123 merged 10 commits intoenvoyproxy:masterfrom
Conversation
Signed-off-by: Michael Rebello <me@michaelrebello.com>
|
Sorry, format check fails and run |
|
LGTM modulo format fix. |
|
Thanks. Running the docker command didn't work for me but I fixed locally and pushed |
ggreenway
left a comment
There was a problem hiding this comment.
I think we should add the entire (commonly used) API for variants, which unfortunately for this purpose are free functions, not members, so they all need a linter entry:
std::holds_alternative
std::get
std::monostate
std::get_if
|
Also, while you are in here did we ever add a linter for string_view? We need that also. |
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
|
Done, added additional linters / test cases. |
|
Hm, looks like there are a lot of usages of |
Huh, |
Signed-off-by: Michael Rebello <me@michaelrebello.com>
|
Sounds good, removed. |
|
Looks like we also have existing usages of |
|
@rebello95 looks like those uses are all in extensions code we don't include/compile into Envoy Mobile. Hence why they are in the codebase here but causes no trouble to Envoy Mobile. But yes, the decision was to not use std::string_view, so the linter change here to prohibit it is great, thanks! |
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
|
Thanks for confirming @junr03! I pushed a change to fix the violations from the main branch. |
|
Coverage failure looks unrelated |
|
I think coverage on main branch is broken somehow due to recent limit changes. I will merge this and we can sort it out there. |
|
Thanks! |
…code * upstream/master: lint: add more linters for using absl:: over std:: (envoyproxy#13043) udpa: filesystem list collection support for inline entries. (envoyproxy#13028) filter: http: jwt: implement matching for HTTP CONNECT (envoyproxy#13064) [fuzz] split http filter logic into a fuzzing class (envoyproxy#13016) xds: allow empty delta update (envoyproxy#12699) CacheFilter: parses the allowed_vary_headers from the cache config. (envoyproxy#12928) router: extend HTTP CONNECT route matching criteria (envoyproxy#13056) docs: clarify use of Extended CONNECT for h/2 (envoyproxy#13051) build: shellcheck tools/ (envoyproxy#13007) [fuzz] Refactored Health Checker Impl Tests (envoyproxy#13017) Signed-off-by: Lihao Luo <lihao@squareup.com>
Follow up to #13040. Some of these examples are based on absl docs and C++ docs.
These linters are here to prevent additional breakages of Envoy Mobile on iOS due to usages of
std::types/functions that are not supported on iOS 11. More discussion in #12341.Risk Level: Low
Testing: In PR
Signed-off-by: Michael Rebello me@michaelrebello.com