mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Replace typedefs in C++ with using declarations (#1339)
These are more readable than typedefs. C headers were left alone.
This commit is contained in:
committed by
Peter Johnson
parent
26c33a9a56
commit
8b1274d744
@@ -90,7 +90,7 @@ inline TLogLevel Log::FromString(const std::string& level) {
|
||||
return logINFO;
|
||||
}
|
||||
|
||||
typedef Log FILELog;
|
||||
using FILELog = Log; // NOLINT
|
||||
|
||||
#define FILE_LOG(level) \
|
||||
if (level > FILELog::ReportingLevel()) \
|
||||
|
||||
@@ -18,10 +18,10 @@ namespace hal {
|
||||
*/
|
||||
class fpga_clock {
|
||||
public:
|
||||
typedef std::chrono::microseconds::rep rep;
|
||||
typedef std::chrono::microseconds::period period;
|
||||
typedef std::chrono::microseconds duration;
|
||||
typedef std::chrono::time_point<fpga_clock> time_point;
|
||||
using rep = std::chrono::microseconds::rep;
|
||||
using period = std::chrono::microseconds::period;
|
||||
using duration = std::chrono::microseconds;
|
||||
using time_point = std::chrono::time_point<fpga_clock>;
|
||||
|
||||
static fpga_clock::time_point now() noexcept;
|
||||
static constexpr bool is_steady = true;
|
||||
|
||||
Reference in New Issue
Block a user