Skip to content

Conversation

jcwchen
Copy link
Member

@jcwchen jcwchen commented Jul 5, 2023

Description

Introduce optional cpplint in CI

Motivation and Context

As mentioned in #5372 (comment), cpplint might be able to help catch missing header errors in C++. Let's give it a try.

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen added the topic: code style Issues related to coding style or the linter label Jul 5, 2023
@jcwchen jcwchen requested a review from a team as a code owner July 5, 2023 23:55
@jcwchen jcwchen marked this pull request as draft July 5, 2023 23:56
jcwchen added 4 commits July 5, 2023 17:01
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen jcwchen changed the title [WIP] Introduce optional cpplint in CI Introduce optional cpplint in CI Jul 6, 2023
@jcwchen jcwchen marked this pull request as ready for review July 6, 2023 00:48
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@jcwchen
Copy link
Member Author

jcwchen commented Jul 6, 2023

cpplint can really catch include_what_you_use error when you use some functions whose header is not included. For example:
image

@jcwchen jcwchen requested a review from justinchuby July 6, 2023 00:51
@jcwchen jcwchen mentioned this pull request Jul 6, 2023
@justinchuby justinchuby added this pull request to the merge queue Jul 17, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jul 18, 2023
@justinchuby justinchuby added this pull request to the merge queue Jul 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jul 18, 2023
@justinchuby justinchuby added this pull request to the merge queue Jul 18, 2023
Merged via the queue into onnx:main with commit f3b8fbb Jul 19, 2023
@jcwchen jcwchen deleted the jcw/introduce-cpplint branch July 19, 2023 21:31
adityagoel4512 pushed a commit to adityagoel4512/onnx that referenced this pull request Jul 28, 2023
### Description
<!-- - Describe your changes. -->
Introduce optional cpplint in CI

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->
As mentioned in
onnx#5372 (comment),
cpplint might be able to help catch missing header errors in C++. Let's
give it a try.

---------

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Aditya Goel <agoel4512@gmail.com>
adityagoel4512 pushed a commit to adityagoel4512/onnx that referenced this pull request Jul 28, 2023
### Description
<!-- - Describe your changes. -->
Introduce optional cpplint in CI

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->
As mentioned in
onnx#5372 (comment),
cpplint might be able to help catch missing header errors in C++. Let's
give it a try.

---------

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Aditya Goel <agoel4512@gmail.com>
adityagoel4512 pushed a commit to adityagoel4512/onnx that referenced this pull request Jul 28, 2023
### Description
<!-- - Describe your changes. -->
Introduce optional cpplint in CI

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->
As mentioned in
onnx#5372 (comment),
cpplint might be able to help catch missing header errors in C++. Let's
give it a try.

---------

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
Signed-off-by: Aditya Goel <agoel4512@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code style Issues related to coding style or the linter
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants