[llvm] r190472 - Remove trailing whitespace
Rui Ueyama
ruiu at google.com
Tue Sep 10 17:53:08 PDT 2013
Author: ruiu
Date: Tue Sep 10 19:53:07 2013
New Revision: 190472
URL: http://llvm.org/viewvc/llvm-project?rev=190472&view=rev
Log:
Remove trailing whitespace
Modified:
llvm/trunk/lib/Support/YAMLTraits.cpp
llvm/trunk/unittests/Support/YAMLIOTest.cpp
Modified: llvm/trunk/lib/Support/YAMLTraits.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/YAMLTraits.cpp?rev=190472&r1=190471&r2=190472&view=diff
==============================================================================
--- llvm/trunk/lib/Support/YAMLTraits.cpp (original)
+++ llvm/trunk/lib/Support/YAMLTraits.cpp Tue Sep 10 19:53:07 2013
@@ -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);
}
Modified: llvm/trunk/unittests/Support/YAMLIOTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/YAMLIOTest.cpp?rev=190472&r1=190471&r2=190472&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/YAMLIOTest.cpp (original)
+++ llvm/trunk/unittests/Support/YAMLIOTest.cpp Tue Sep 10 19:53:07 2013
@@ -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());
More information about the llvm-commits
mailing list