mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
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:
committed by
Peter Johnson
parent
c57a7f0a41
commit
9d93820717
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "Commands/PrintCommand.h"
|
||||
|
||||
#include <iostream>
|
||||
#include "llvm/raw_ostream.h"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -16,4 +16,4 @@ PrintCommand::PrintCommand(const std::string& message)
|
||||
m_message = message;
|
||||
}
|
||||
|
||||
void PrintCommand::Initialize() { std::cout << m_message << "\n"; }
|
||||
void PrintCommand::Initialize() { llvm::outs() << m_message << "\n"; }
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "Commands/Scheduler.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <set>
|
||||
|
||||
#include "Buttons/ButtonScheduler.h"
|
||||
|
||||
Reference in New Issue
Block a user