Skip to content

Conversation

@masaori335
Copy link
Contributor

@masaori335 masaori335 commented Mar 19, 2019

The modernize-use-default-member-init makes constructors modern and consistent.
I enabled UseAssignment option, because many current code initialise members with an assignment.

Below files are changed by hand.

  1. Remove unmatched #endif and set _location nullptr.

    • iocore/eventsystem/I_IOBuffer.h
    • iocore/eventsystem/P_IOBuffer.h
  2. Include "ts/apidefs.h"

    • include/tscpp/api/Stat.h
  3. Rollback changes made with -fix-error option (clang-diagnostic-implicit-function-declaration) -> Suppress false positive of clang-tidy on macOS #5193

    • plugins/lua/ts_lua_client_request.c
    • plugins/lua/ts_lua_client_response.c
    • plugins/lua/ts_lua_server_response.c
    • plugins/experimental/remap_stats/remap_stats.c

This includes #5182 changes. I'll rebase this when it is merged.

@masaori335 masaori335 added this to the 9.0.0 milestone Mar 19, 2019
@masaori335 masaori335 self-assigned this Mar 19, 2019
@masaori335 masaori335 force-pushed the modernize-use-default-member-init branch 2 times, most recently from a3bd11c to 1fb15e0 Compare March 20, 2019 03:27
@masaori335 masaori335 marked this pull request as ready for review March 20, 2019 03:28
1. Remove unmatched #endif and set `_location` nullptr.
- iocore/eventsystem/I_IOBuffer.h
- iocore/eventsystem/P_IOBuffer.h

2. Include "ts/apidefs.h"
- include/tscpp/api/Stat.h

3. Rollback changes made with -fix-error option (clang-diagnostic-implicit-function-declaration)
- plugins/lua/ts_lua_client_request.c
- plugins/lua/ts_lua_client_response.c
- plugins/lua/ts_lua_server_response.c
- plugins/experimental/remap_stats/remap_stats.c
@masaori335 masaori335 force-pushed the modernize-use-default-member-init branch from 1fb15e0 to e28ec4b Compare March 21, 2019 23:15
@masaori335
Copy link
Contributor Author

Rebased. This is ready for review.

@masaori335 masaori335 merged commit 7651e26 into apache:master Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants