-
Notifications
You must be signed in to change notification settings - Fork 1
Test rust 4 #56
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
base: master
Are you sure you want to change the base?
Test rust 4 #56
Changes from all commits
1168acc
385e0c4
596b514
9ea38bf
2e9a6fc
591e7dc
c63d2ca
aaba24c
55a8984
7301574
c154e56
0600e2f
a34af55
2c6a241
c7ca6b7
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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| --- | ||
| Language: Cpp | ||
| BasedOnStyle: WebKit | ||
| BasedOnStyle: WebKit |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -182,3 +182,4 @@ CheckOptions: | |
| value: '1' | ||
| - key: readability-uppercase-literal-suffix.NewSuffixes | ||
| value: '' | ||
| ... | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,17 +1,18 @@ | ||||||||||||||||||
| /** This is a very ugly test code (doomed to fail linting) */ | ||||||||||||||||||
| #include "demo.hpp" | ||||||||||||||||||
| #include <cstdio> | ||||||||||||||||||
| #include <cstddef> | ||||||||||||||||||
| #include <stdio.h> | ||||||||||||||||||
|
github-actions[bot] marked this conversation as resolved.
Comment on lines
2
to
+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-tidy diagnostic(s)
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
|
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 suggestion
Suggested change
|
||||||||||||||||||
| // using size_t from cstddef | ||||||||||||||||||
| size_t dummyFunc(size_t i) { return i; } | ||||||||||||||||||
|
|
||||||||||||||||||
| int main() | ||||||||||||||||||
| { | ||||||||||||||||||
| for (;;) | ||||||||||||||||||
| break; | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| int main(){ | ||||||||||||||||||
|
|
||||||||||||||||||
| for (;;) break; | ||||||||||||||||||
|
github-actions[bot] marked this conversation as resolved.
|
||||||||||||||||||
|
|
||||||||||||||||||
|
Comment on lines
+6
to
+11
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 diagnostic(s)
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| printf("Hello world!\n"); | ||||||||||||||||||
|
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 diagnosticsrc/demo.cpp:13:5 warning: [cppcoreguidelines-pro-type-vararg]
13 | printf("Hello world!\n");
| ^ |
||||||||||||||||||
|
|
||||||||||||||||||
| return 0; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
github-actions[bot] marked this conversation as resolved.
|
||||||||||||||||||
| return 0;} | ||||||||||||||||||
|
Comment on lines
+15
to
+18
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 suggestion
Suggested change
|
||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,3 @@ | ||||||||||||||||||
| #pragma once | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -5,12 +5,10 @@ | |||||||||||||||||
| class Dummy { | ||||||||||||||||||
| char* useless; | ||||||||||||||||||
| int numb; | ||||||||||||||||||
|
github-actions[bot] marked this conversation as resolved.
|
||||||||||||||||||
| Dummy() :numb(0), useless("\0"){} | ||||||||||||||||||
|
Comment on lines
6
to
+8
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 diagnostic(s)
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| public: | ||||||||||||||||||
|
github-actions[bot] marked this conversation as resolved.
|
||||||||||||||||||
| void *not_usefull(char *str){ | ||||||||||||||||||
| useless = str; | ||||||||||||||||||
| return 0; | ||||||||||||||||||
| } | ||||||||||||||||||
| void *not_useful(char *str){useless = str;} | ||||||||||||||||||
|
Comment on lines
10
to
+11
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 diagnostic(s)
Suggested change
|
||||||||||||||||||
| }; | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -28,14 +26,11 @@ | |||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| struct LongDiff | ||||||||||||||||||
| { | ||||||||||||||||||
|
|
||||||||||||||||||
| long diff; | ||||||||||||||||||
|
github-actions[bot] marked this conversation as resolved.
|
||||||||||||||||||
|
|
||||||||||||||||||
|
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 suggestionPlease remove the line(s)
|
||||||||||||||||||
| }; | ||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.