[Mlir-commits] [mlir] 994a184 - Apply clang-tidy fixes for modernize-use-bool-literals in Parser.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon May 23 16:14:01 PDT 2022


Author: Mehdi Amini
Date: 2022-05-23T23:13:33Z
New Revision: 994a1841eb304d445a9d02025a19a09a645b47af

URL: https://github.com/llvm/llvm-project/commit/994a1841eb304d445a9d02025a19a09a645b47af
DIFF: https://github.com/llvm/llvm-project/commit/994a1841eb304d445a9d02025a19a09a645b47af.diff

LOG: Apply clang-tidy fixes for modernize-use-bool-literals in Parser.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Parser/Parser.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Parser/Parser.cpp b/mlir/lib/Parser/Parser.cpp
index 06b2810a2ec1e..7f21100cec6ed 100644
--- a/mlir/lib/Parser/Parser.cpp
+++ b/mlir/lib/Parser/Parser.cpp
@@ -189,7 +189,7 @@ InFlightDiagnostic Parser::emitWrongTokenError(const Twine &message) {
   StringRef startOfBuffer(bufferStart, curPtr - bufferStart);
 
   // Back up over entirely blank lines.
-  while (1) {
+  while (true) {
     // Back up until we see a \n, but don't look past the buffer start.
     startOfBuffer = startOfBuffer.rtrim(" \t");
 


        


More information about the Mlir-commits mailing list