Remove trailing whitespace
authorRui Ueyama <ruiu@google.com>
Wed, 11 Sep 2013 00:53:07 +0000 (00:53 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 11 Sep 2013 00:53:07 +0000 (00:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190472 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/YAMLTraits.cpp
unittests/Support/YAMLIOTest.cpp

index 1a6adbf559b3b8ae2aa1220a2836e8ad50bc737a..d0e4b1b902dc8516c383234e320b9e18dfc30c20 100644 (file)
@@ -40,15 +40,14 @@ void IO::setContext(void *Context) {
 //  Input
 //===----------------------------------------------------------------------===//
 
-Input::Input(StringRef InputContent, void *Ctxt) 
-  : IO(Ctxt), 
+Input::Input(StringRef InputContent, void *Ctxt)
+  : IO(Ctxt),
     Strm(new Stream(InputContent, SrcMgr)),
     CurrentNode(NULL) {
   DocIterator = Strm->begin();
 }
 
 Input::~Input() {
-  
 }
 
 error_code Input::error() {
@@ -550,9 +549,9 @@ bool Output::canElideEmptySequence() {
   // if the key/value is the only thing in the map and the map is used in
   // a sequence.  This detects if the this sequence is the first key/value
   // in map that itself is embedded in a sequnce.
-  if (StateStack.size() < 2) 
+  if (StateStack.size() < 2)
     return true;
-  if (StateStack.back() != inMapFirstKey) 
+  if (StateStack.back() != inMapFirstKey)
     return true;
   return (StateStack[StateStack.size()-2] != inSeq);
 }
index 9da16c6ed6ae6b34c47e84adedaae227c21216e5..8ae05f4b60681c725fb9f53fffed2cefdcffa7f8 100644 (file)
@@ -657,9 +657,9 @@ TEST(YAMLIO, TestReadWriteMyFlowSequence) {
     map.numbers.push_back(1024);
 
     llvm::raw_string_ostream ostr(intermediate);
-    Output yout(ostr); 
+    Output yout(ostr);
     yout << map;
-    
+
     // Verify sequences were written in flow style
     ostr.flush();
     llvm::StringRef flowOut(intermediate);
@@ -1403,7 +1403,7 @@ TEST(YAMLIO, SequenceElideTest) {
   Input yin(intermediate);
   OptionalTestSeq Seq2;
   yin >> Seq2;
-  
+
   EXPECT_FALSE(yin.error());
 
   EXPECT_EQ(4UL, Seq2.Tests.size());