Skip to content

stats: fix clang-tidy errors in null stats#7760

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
jmarantz:null-stat-destruction-clang-tidy
Jul 30, 2019
Merged

stats: fix clang-tidy errors in null stats#7760
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
jmarantz:null-stat-destruction-clang-tidy

Conversation

@jmarantz
Copy link
Copy Markdown
Contributor

Description: for some reason I was able to check in this code that called a virtual function during destruction, which clang-tidy doesn't like. Fortunately it's easy to fix.
Risk Level: low
Testing: //test/common/stats/...
Docs Changes: n/a
Release Notes: n/a

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

/azp run macos

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@jmarantz
Copy link
Copy Markdown
Contributor Author

/azp run envoy-macos

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@derekargueta
Copy link
Copy Markdown
Member

clang-analyzer-optin.cplusplus.VirtualCall looks for virtual calls to constructors/destructors but we only have it enabled as a warning, not an error (yet!). Last I checked we have 159 warnings for this.

@mattklein123 mattklein123 merged commit c499402 into envoyproxy:master Jul 30, 2019
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.

4 participants