llvm.org GIT mirror llvm / 0062f39
Refactor: Simplify boolean conditional return statements in llvm/lib/Support Summary: Use clang-tidy to simplify boolean conditional return statements Reviewers: rafael, bkramer, ddunbar, Bigcheese, chandlerc, chapuni, nicholas, alexfh Subscribers: alexfh, craig.topper, llvm-commits Patch by Richard Thomson! Differential Revision: http://reviews.llvm.org/D9978 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256500 91177308-0d34-0410-b5e6-96231b3b80d8 Alexander Kornienko 3 years ago
2 changed file(s) with 3 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
344344 Value = Val;
345345 }
346346
347 if (Handler->addOccurrence(pos, ArgName, Value, MultiArg))
348 return true;
349
350 return false;
347 return Handler->addOccurrence(pos, ArgName, Value, MultiArg);
351348 }
352349
353350 /// ProvideOption - For Value, this differentiates between an empty value ("")
961961 bool Scanner::isBlankOrBreak(StringRef::iterator Position) {
962962 if (Position == End)
963963 return false;
964 if ( *Position == ' ' || *Position == '\t'
965 || *Position == '\r' || *Position == '\n')
966 return true;
967 return false;
964 return *Position == ' ' || *Position == '\t' || *Position == '\r' ||
965 *Position == '\n';
968966 }
969967
970968 bool Scanner::consumeLineBreakIfPresent() {