- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Remove checks introduced between clang tidy 6 and 14 #125
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
Conversation
57366bb    to
    279d2e6      
    Compare
  
    279d2e6    to
    2a73bbb      
    Compare
  
    Enable clang-tidy for targets created without swift_* functions
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.
I'd also like to see these changes tested in Starling just as a precaution.
Edit: just saw the starling PR link!
| message(WARNING "No sources to lint for clang-tidy-all, that doesn't sound right") | ||
| else() | ||
| list(REMOVE_DUPLICATES all_abs_srcs) | ||
| list(FILTER all_abs_srcs EXCLUDE REGEX "pb.cc") | 
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.
What were these files?
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.
Generated nanopb files? Used by real-time replay and fast start
        
          
                FindStarling.cmake
              
                Outdated
          
        
      | starling-util | ||
| SOURCE_DIR starling | ||
| SYSTEM_HEADER_FILE "pvt_driver/runner/pvt_runner.h" | ||
| SYSTEM_INCLUDES | 
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.
Interesting. Starling is already using these linting settings so I'm surprised its headers are causing linting issues.
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.
I had a problem with starling-replay headers in the orion-engine PR.
We don't want to update the linter in the orion-engine right now, so I reverted this change.
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.
find_program(CLANG_TIDY NAMES clang-tidy-6.0 clang-tidy)We're going to want to change this from clang-tidy-6.0 to clang-tidy-14
We should probably do the same thing for ClangFormat.cmake
@woodfell @RReichert will we break anything if we make it:
find_program(CLANG_FORMAT NAMES clang-format-14 clang-format)instead of that long list of names ??
| Did some light testing on mac and seems to work well. I was also curious if clang-tidy-6.0 would be able to handle the new  | 
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.
LGTM
| @RReichert @woodfell anything you'd like to add before we merge? | 
| Kudos, SonarCloud Quality Gate passed!     | 








This PR:
WITHOUT_SWIFT_TYPESoption to theswift_create_clang_tidy_targetsfunctionTested here: