[llvm] r255317 - [ProfileData] clang-format TextInstrProfReader::hasFormat. NFC.

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 10 16:40:08 PST 2015


Author: vedantk
Date: Thu Dec 10 18:40:05 2015
New Revision: 255317

URL: http://llvm.org/viewvc/llvm-project?rev=255317&view=rev
Log:
[ProfileData] clang-format TextInstrProfReader::hasFormat. NFC.

Modified:
    llvm/trunk/lib/ProfileData/InstrProfReader.cpp

Modified: llvm/trunk/lib/ProfileData/InstrProfReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProfReader.cpp?rev=255317&r1=255316&r2=255317&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProfReader.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProfReader.cpp Thu Dec 10 18:40:05 2015
@@ -104,8 +104,9 @@ bool TextInstrProfReader::hasFormat(cons
   // 'reasonable' number of characters (up to profile magic size).
   size_t count = std::min(Buffer.getBufferSize(), sizeof(uint64_t));
   StringRef buffer = Buffer.getBufferStart();
-  return count == 0 || std::all_of(buffer.begin(), buffer.begin() + count,
-    [](char c) { return ::isprint(c) || ::isspace(c); });
+  return count == 0 ||
+         std::all_of(buffer.begin(), buffer.begin() + count,
+                     [](char c) { return ::isprint(c) || ::isspace(c); });
 }
 
 std::error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) {




More information about the llvm-commits mailing list