Replace typedefs in C++ with using declarations (#1339)

These are more readable than typedefs. C headers were left alone.
This commit is contained in:
Tyler Veness
2018-09-26 00:09:25 -07:00
committed by Peter Johnson
parent 26c33a9a56
commit 8b1274d744
15 changed files with 31 additions and 33 deletions

View File

@@ -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()) \

View File

@@ -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;