Use clang-tidy to simplify boolean conditional return statements
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/NVPTX/NVPTXAsmPrinter.cpp | ||
---|---|---|
638 | Use != | |
1919–1920 | Fix indentation to line up with previous line. | |
lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
3740 | Push negate through | |
4105–4106 | Drop the else and the curly braces | |
lib/Target/NVPTX/NVPTXUtilities.cpp | ||
338–339 | Indent to line up with previous line. Same below |
lib/Target/NVPTX/NVPTXAsmPrinter.cpp | ||
---|---|---|
638 | Fixed. | |
1919–1920 | Fixed. | |
lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
3740 | Fixed. | |
4105–4106 | While I know this is an LLVM/clang style rule, it's beyond the scope of this change. There is a check for this in clang-tidy to detect it. | |
lib/Target/NVPTX/NVPTXUtilities.cpp | ||
338–339 | Fixed. |
Comment Actions
other than that LGTM. Pretty useful tool! Thanks.
lib/Target/NVPTX/NVPTXUtilities.cpp | ||
---|---|---|
348 | return (id == Intrinsics::xxx) || (id == Intrinsics::yyy) || makes the code more aligned. |
Use !=