Skip to content

ORC-1377: [C++] Enforce override keyword - #1420

Closed
wgtmac wants to merge 1 commit into
apache:mainfrom
wgtmac:ORC-1377
Closed

wgtmac wants to merge 1 commit into
apache:mainfrom
wgtmac:ORC-1377

Conversation

@wgtmac

@wgtmac wgtmac commented Feb 21, 2023

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Enforce adding override keyword to virtual functions.

Why are the changes needed?

A lot of warnings are related to missing override keyword in the Github Actions.

How was this patch tested?

Make sure all tests pass.

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM (Pending CIs).

@dongjoon-hyun dongjoon-hyun added this to the 1.9.0 milestone Feb 21, 2023
DIAGNOSTIC_IGNORE("-Wnested-anon-types")
DIAGNOSTIC_IGNORE("-Wreserved-id-macro")
DIAGNOSTIC_IGNORE("-Wshorten-64-to-32")
DIAGNOSTIC_IGNORE("-Wsuggest-destructor-override")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

During #1532, I found that this broke Clang 10 due to unknown warning group.

Comment thread CMakeLists.txt
set (WARN_FLAGS "${WARN_FLAGS} -Wno-reserved-identifier")
endif()
if (CMAKE_HOST_APPLE AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "12.0")
set (WARN_FLAGS "${WARN_FLAGS} -Wno-c++2a-compat -Wno-unknown-warning-option -Wno-suggest-override -Wno-suggest-destructor-override")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We cannot enforce it in Clang 10. Let me recover this part.

dongjoon-hyun added a commit that referenced this pull request Jun 22, 2023
### What changes were proposed in this pull request?

This PR aims to recover Clang 10 dev environment by stopping enforcing `override` keyword.

- This is a partial revert of #1420 because we still keep the changed other code.
- GitHub Action missed this.
  - `Clang on Ubuntu 20.04` job missed this because it uses Clang 11.0.0.
  - `Clang on MacOS 11` job missed this because it uses AppleClang 13.0.0.

### Why are the changes needed?

During `Apache ORC 1.9.0 Preparation`, I found that this broke `ubuntu20_jdk=11_cc=clang` docker test due to the `unknown warning group` errors.
- #1532

### How was this patch tested?

Pass the CI and do the manual testing with Docker environment.

Closes #1545 from dongjoon-hyun/CLANG10.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request Jun 22, 2023
### What changes were proposed in this pull request?

This PR aims to recover Clang 10 dev environment by stopping enforcing `override` keyword.

- This is a partial revert of #1420 because we still keep the changed other code.
- GitHub Action missed this.
  - `Clang on Ubuntu 20.04` job missed this because it uses Clang 11.0.0.
  - `Clang on MacOS 11` job missed this because it uses AppleClang 13.0.0.

### Why are the changes needed?

During `Apache ORC 1.9.0 Preparation`, I found that this broke `ubuntu20_jdk=11_cc=clang` docker test due to the `unknown warning group` errors.
- #1532

### How was this patch tested?

Pass the CI and do the manual testing with Docker environment.

Closes #1545 from dongjoon-hyun/CLANG10.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 568d1d6)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?
Enforce adding `override` keyword to virtual functions.

### Why are the changes needed?
A lot of warnings are related to missing override keyword in the Github Actions.

### How was this patch tested?
Make sure all tests pass.

Closes apache#1420 from wgtmac/ORC-1377.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?

This PR aims to recover Clang 10 dev environment by stopping enforcing `override` keyword.

- This is a partial revert of apache#1420 because we still keep the changed other code.
- GitHub Action missed this.
  - `Clang on Ubuntu 20.04` job missed this because it uses Clang 11.0.0.
  - `Clang on MacOS 11` job missed this because it uses AppleClang 13.0.0.

### Why are the changes needed?

During `Apache ORC 1.9.0 Preparation`, I found that this broke `ubuntu20_jdk=11_cc=clang` docker test due to the `unknown warning group` errors.
- apache#1532

### How was this patch tested?

Pass the CI and do the manual testing with Docker environment.

Closes apache#1545 from dongjoon-hyun/CLANG10.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@wgtmac
wgtmac deleted the ORC-1377 branch February 27, 2024 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants