Repository navigation
test: e2e of cpp-linter-action#525 (d009914, cpp-linter 1.16.0) #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| action-ref=d009914450723fd4b2f5985aaec4cb7301ce676e | ||
| clang-version=21 |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,3 @@ | ||||||||||||||||
| /** This is a very ugly test code (doomed to fail linting) */ | ||||||||||||||||
| #include "demo.hpp" | ||||||||||||||||
| #include <cstdio> | ||||||||||||||||
|
|
@@ -6,12 +6,19 @@ | |||||||||||||||
| // using size_t from cstddef | ||||||||||||||||
| size_t dummyFunc(size_t i) { return i; } | ||||||||||||||||
|
|
||||||||||||||||
| int scale(int value) | ||||||||||||||||
|
Check warning on line 9 in src/demo.cpp
|
||||||||||||||||
| { | ||||||||||||||||
| if (value > 0) | ||||||||||||||||
|
Check warning on line 11 in src/demo.cpp
|
||||||||||||||||
| return value*3; | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. clang-format suggestion
Suggested change
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. clang-tidy diagnostics
Suggested change
|
||||||||||||||||
| return 0; | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| int main() | ||||||||||||||||
| { | ||||||||||||||||
| for (;;) | ||||||||||||||||
| break; | ||||||||||||||||
|
|
||||||||||||||||
| printf("Hello world!\n"); | ||||||||||||||||
| printf("Hello world! %d\n", scale( 14 )); | ||||||||||||||||
|
Check warning on line 21 in src/demo.cpp
|
||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. clang-format suggestion
Suggested change
clang-tidy diagnosticsrc/demo.cpp:21:5: warning: [cppcoreguidelines-pro-type-vararg]
21 | printf("Hello world! %d\n", scale( 14 ));
| ^clang-tidy diagnosticsrc/demo.cpp:21:40: warning: [cppcoreguidelines-avoid-magic-numbers]
21 | printf("Hello world! %d\n", scale( 14 ));
| ^ |
||||||||||||||||
|
|
||||||||||||||||
| return 0; | ||||||||||||||||
| } | ||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy diagnostics