Replaced STL streams with LLVM's raw_ostream (#344)

std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
This commit is contained in:
Tyler Veness
2017-06-30 22:33:43 -04:00
committed by Peter Johnson
parent c57a7f0a41
commit 9d93820717
27 changed files with 118 additions and 118 deletions

View File

@@ -7,6 +7,7 @@
#include "simulation/SimDigitalInput.h"
#include "llvm/raw_ostream.h"
#include "simulation/MainNode.h"
using namespace frc;
@@ -14,7 +15,7 @@ using namespace frc;
SimDigitalInput::SimDigitalInput(std::string topic) {
sub = MainNode::Subscribe("~/simulator/" + topic, &SimDigitalInput::callback,
this);
std::cout << "Initialized ~/simulator/" + topic << std::endl;
llvm::outs() << "Initialized ~/simulator/" + topic << "\n";
}
bool SimDigitalInput::Get() { return value; }