- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 33
 
Update clang-format rules #126
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 | 
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // Copyright 2017-2024 the nyan authors, LGPLv3+. See copying.md for legal info. | ||
| // Copyright 2017-2025 the nyan authors, LGPLv3+. See copying.md for legal info. | ||
| 
     | 
||
| #include "database.h" | ||
| 
     | 
||
| 
          
            
          
           | 
    @@ -532,7 +532,7 @@ void Database::resolve_types(const std::vector<fqon_t> &new_objects) { | |
| // check if the member we're looking for isn't already typed. | ||
| if (unlikely(member_info.is_initial_def())) { | ||
| // another parent defines this type, | ||
| // which is disallowed! | ||
| // which is disallowed! | ||
| 
         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. this should remain one-tab indented, just like the line before. 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. I tested why this is happening and it looks like this is the trade-off of turning  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. oh dear. that surely seems like a bug then. so far i couldn't find an upstream report about this... 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. seems like a bad interaction of   | 
||
| 
     | 
||
| // TODO: show location of infringing type instead of member | ||
| throw LangError{ | ||
| 
        
          
        
         | 
    @@ -546,7 +546,7 @@ void Database::resolve_types(const std::vector<fqon_t> &new_objects) { | |
| member_info.set_type(new_type, false); | ||
| } | ||
| // else that member knows the type, | ||
| // but we're looking for the initial definition. | ||
| // but we're looking for the initial definition. | ||
| 
         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. same here  | 
||
| 
     | 
||
| // we need to traverse all members and never stop early. | ||
| return false; | ||
| 
          
            
          
           | 
    ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // Copyright 2016-2021 the nyan authors, LGPLv3+. See copying.md for legal info. | ||
| // Copyright 2016-2025 the nyan authors, LGPLv3+. See copying.md for legal info. | ||
| 
     | 
||
| #include "error.h" | ||
| 
     | 
||
| 
        
          
        
         | 
    @@ -8,7 +8,7 @@ | |
| #define WIN32_LEAN_AND_MEAN | ||
| #include <windows.h> | ||
| // TODO - CaptureStackBackTrace doesn't report number of frames available | ||
| // need to implement increase buffer size | ||
| // need to implement increase buffer size | ||
| 
         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. same here  | 
||
| #define backtrace(buffer, buf_size) CaptureStackBackTrace(0, buf_size, buffer, NULL) | ||
| #else | ||
| #include <execinfo.h> | ||
| 
          
            
          
           | 
    ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // Copyright 2017-2020 the nyan authors, LGPLv3+. See copying.md for legal info. | ||
| // Copyright 2017-2025 the nyan authors, LGPLv3+. See copying.md for legal info. | ||
| 
     | 
||
| #include "transaction.h" | ||
| 
     | 
||
| 
          
            
          
           | 
    @@ -108,7 +108,7 @@ bool Transaction::add(const Object &patch) { | |
| // apply all patch parents in order (last the patch itself) | ||
| target_obj->apply( | ||
| // TODO: use the same mechanism as above to get only parent | ||
| // obj states of base_state | ||
| // obj states of base_state | ||
| 
         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. same, should remain the tab.  | 
||
| view->get_raw(patch_name, this->at), | ||
| view->get_info(patch_name), | ||
| patch_tracker); | ||
| 
          
            
          
           | 
    ||
Uh oh!
There was an error while loading. Please reload this page.