Run wpiformat on merged repo (#1021)

This commit is contained in:
Tyler Veness
2018-05-13 17:09:56 -07:00
committed by Peter Johnson
parent 0babbf317c
commit 6729a7d6b1
481 changed files with 9581 additions and 6828 deletions

View File

@@ -144,8 +144,7 @@ class SendableBuilder {
* @param setter setter function (sets new value)
*/
virtual void AddValueProperty(
const wpi::Twine& key,
std::function<std::shared_ptr<nt::Value>()> getter,
const wpi::Twine& key, std::function<std::shared_ptr<nt::Value>()> getter,
std::function<void(std::shared_ptr<nt::Value>)> setter) = 0;
/**
@@ -169,8 +168,7 @@ class SendableBuilder {
*/
virtual void AddSmallBooleanArrayProperty(
const wpi::Twine& key,
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)>
getter,
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)> getter,
std::function<void(wpi::ArrayRef<int>)> setter) = 0;
/**

View File

@@ -105,8 +105,7 @@ class SendableBuilderImpl : public SendableBuilder {
std::function<void(wpi::StringRef)> setter) override;
void AddValueProperty(
const wpi::Twine& key,
std::function<std::shared_ptr<nt::Value>()> getter,
const wpi::Twine& key, std::function<std::shared_ptr<nt::Value>()> getter,
std::function<void(std::shared_ptr<nt::Value>)> setter) override;
void AddSmallStringProperty(
@@ -116,8 +115,7 @@ class SendableBuilderImpl : public SendableBuilder {
void AddSmallBooleanArrayProperty(
const wpi::Twine& key,
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)>
getter,
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)> getter,
std::function<void(wpi::ArrayRef<int>)> setter) override;
void AddSmallDoubleArrayProperty(

View File

@@ -50,8 +50,7 @@ class SmartDashboard : public SensorBase {
static double GetNumber(wpi::StringRef keyName, double defaultValue);
static bool PutString(wpi::StringRef keyName, wpi::StringRef value);
static bool SetDefaultString(wpi::StringRef key,
wpi::StringRef defaultValue);
static bool SetDefaultString(wpi::StringRef key, wpi::StringRef defaultValue);
static std::string GetString(wpi::StringRef keyName,
wpi::StringRef defaultValue);
@@ -64,8 +63,8 @@ class SmartDashboard : public SensorBase {
static bool PutNumberArray(wpi::StringRef key, wpi::ArrayRef<double> value);
static bool SetDefaultNumberArray(wpi::StringRef key,
wpi::ArrayRef<double> defaultValue);
static std::vector<double> GetNumberArray(
wpi::StringRef key, wpi::ArrayRef<double> defaultValue);
static std::vector<double> GetNumberArray(wpi::StringRef key,
wpi::ArrayRef<double> defaultValue);
static bool PutStringArray(wpi::StringRef key,
wpi::ArrayRef<std::string> value);