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

@@ -10,6 +10,7 @@
#include "DriverStation.h"
#include "LiveWindow/LiveWindow.h"
#include "Timer.h"
#include "llvm/raw_ostream.h"
#include "networktables/NetworkTable.h"
using namespace frc;
@@ -29,7 +30,7 @@ SampleRobot::SampleRobot() : m_robotMainOverridden(true) {}
* ready, causing the robot to be bypassed in a match.
*/
void SampleRobot::RobotInit() {
std::printf("Default %s() method... Override me!\n", __FUNCTION__);
llvm::outs() << "Default " << __FUNCTION__ << "() method... Overload me!\n";
}
/**
@@ -39,7 +40,7 @@ void SampleRobot::RobotInit() {
* field is disabled.
*/
void SampleRobot::Disabled() {
std::printf("Default %s() method... Override me!\n", __FUNCTION__);
llvm::outs() << "Default " << __FUNCTION__ << "() method... Overload me!\n";
}
/**
@@ -50,7 +51,7 @@ void SampleRobot::Disabled() {
* robot enters the autonomous state.
*/
void SampleRobot::Autonomous() {
std::printf("Default %s() method... Override me!\n", __FUNCTION__);
llvm::outs() << "Default " << __FUNCTION__ << "() method... Overload me!\n";
}
/**
@@ -61,7 +62,7 @@ void SampleRobot::Autonomous() {
* each time the robot enters the teleop state.
*/
void SampleRobot::OperatorControl() {
std::printf("Default %s() method... Override me!\n", __FUNCTION__);
llvm::outs() << "Default " << __FUNCTION__ << "() method... Overload me!\n";
}
/**
@@ -72,7 +73,7 @@ void SampleRobot::OperatorControl() {
* test mode
*/
void SampleRobot::Test() {
std::printf("Default %s() method... Override me!\n", __FUNCTION__);
llvm::outs() << "Default " << __FUNCTION__ << "() method... Overload me!\n";
}
/**