- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
Test rust 3 #47
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 3 #47
Changes from all commits
359c499
              5244d1b
              ebf8697
              c54186b
              ab83618
              a44db76
              37b2c4e
              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 | 
|---|---|---|
| 
          
            
          
           | 
    @@ -183,3 +183,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> | ||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| 
         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; } | ||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| 
         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 suggestions
        Suggested change
       
    
  | 
||||||||||||||||||||||||||||||||
| int main() | ||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||
| for (;;) | ||||||||||||||||||||||||||||||||
| break; | ||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| int main(){ | ||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| for (;;) break; | ||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| 
         
      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-format suggestions
        Suggested change
       
    
 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; | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||
| 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-format suggestions
        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
       
    
  | 
||||||||||||||||||||||||||||||||
| 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; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 suggestion
        Suggested change
       
    
  | 
||||||||||||||||||||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||||||||||||||||||||
| public: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| void *not_usefull(char *str){ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| useless = str; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| return 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| void *not_useful(char *str){useless = str;} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 
         
      Comment on lines
    
      +8
     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-format suggestions
        Suggested change
       
    
 
      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; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 
     | 
||||||||||||||||||||||||||||||||||||||||||||||||||
| 
         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 suggestionsPlease remove the line(s) 
  | 
||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||
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 diagnostic(s)