Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
checksrc: warn for "onelinecondition" #5164
Make checksrc verify that we insert newline after if() conditions and fix a few places where this updated checksrc pointed out this mistake to exist in.
The check is a little naive and will only work for single-line conditions but I think they are the most common for this code style anyway.