Skip to content

build: update abseil & enable -Wrange-loop-analysis#13364

Merged
mattklein123 merged 11 commits intoenvoyproxy:masterfrom
rebello95:wrange
Oct 5, 2020
Merged

build: update abseil & enable -Wrange-loop-analysis#13364
mattklein123 merged 11 commits intoenvoyproxy:masterfrom
rebello95:wrange

Conversation

@rebello95
Copy link
Copy Markdown
Contributor

@rebello95 rebello95 commented Oct 1, 2020

Resolves #13154.

Risk Level: Low
Testing: CI
Docs Changes: N/A

Signed-off-by: Michael Rebello me@michaelrebello.com

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/dependency-watchers: FYI only for changes made to (bazel/repository_locations\.bzl)|(api/bazel/repository_locations\.bzl)|(.*/requirements\.txt).

🐱

Caused by: #13364 was opened by rebello95.

see: more, trace.

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>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
@rebello95 rebello95 marked this pull request as ready for review October 2, 2020 13:30
@rebello95 rebello95 requested a review from dio as a code owner October 2, 2020 13:30
@rebello95
Copy link
Copy Markdown
Contributor Author

Looks like this should pass CI now

Signed-off-by: Michael Rebello <me@michaelrebello.com>
@rebello95
Copy link
Copy Markdown
Contributor Author

Hm looks like some platforms don't have this option:

Execution platform: @rbe_ubuntu_gcc//config:platform
gcc: error: unrecognized command line option '-Wrange-loop-analysis'

Is there a preferred way to enable this only for macOS within Envoy?

@keith
Copy link
Copy Markdown
Member

keith commented Oct 2, 2020

there's a place for clang specific options below, maybe that's the right place instead of darwin only?

@mattklein123
Copy link
Copy Markdown
Member

Yeah just add to clang below.

/wait

Signed-off-by: Michael Rebello <me@michaelrebello.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 for doing this. LGTM with one question.

/wait-any

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.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 fe7af9a into envoyproxy:master Oct 5, 2020
@rebello95 rebello95 deleted the wrange branch October 5, 2020 20:26
@rgs1
Copy link
Copy Markdown
Member

rgs1 commented Oct 6, 2020

@rebello95 i think some extensions were missed:

external/envoy/source/extensions/retry/priority/previous_priorities/previous_priorities.cc:54:17: error: loop variable 'excluded_priority' is always a copy because the range of type 'std::vector<bool>' does not return a reference [-Werror,-Wrange-loop-analysis]
16:16:36     for (auto&& excluded_priority : excluded_priorities_) {
16:16:36                 ^
16:16:36 external/envoy/source/extensions/retry/priority/previous_priorities/previous_priorities.cc:54:10: note: use non-reference type 'std::_Bit_reference'
16:16:36     for (auto&& excluded_priority : excluded_priorities_) {
16:16:36          ^~~~~~~~~~~~~~~~~~~~~~~~~~
16:16:36 1 error generated.

rgs1 pushed a commit to rgs1/envoy that referenced this pull request Oct 6, 2020
Leftover from envoyproxy#13364.

Signed-off-by: Raul Gutierrez Segales <rgs@pinterest.com>
@rgs1
Copy link
Copy Markdown
Member

rgs1 commented Oct 7, 2020

#13415 fixes it for us.

mattklein123 pushed a commit that referenced this pull request Oct 7, 2020
Leftover from #13364.

Signed-off-by: Raul Gutierrez Segales <rgs@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.

errors when building with -Wrange-loop-analysis option build: enable -Wrange-loop-analysis

4 participants