[datalog] Fix sorting of related header (#7832)

This commit is contained in:
Tyler Veness
2025-03-02 10:47:48 -08:00
committed by GitHub
parent baa20fa239
commit 7cb29ce70b
6 changed files with 10 additions and 13 deletions

View File

@@ -23,7 +23,3 @@ includeOtherLibs {
^gtest/
^wpi/(?!datalog)
}
includeProject {
^wpi/datalog/
}

View File

@@ -2,6 +2,8 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/datalog/DataLog.h"
#include <algorithm>
#include <bit>
#include <cstdio>
@@ -17,8 +19,6 @@
#include <wpi/print.h>
#include <wpi/timestamp.h>
#include "wpi/datalog/DataLog.h"
using namespace wpi::log;
static constexpr size_t kRecordMaxHeaderSize = 17;

View File

@@ -2,13 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/datalog/DataLogReader.h"
#include <bit>
#include <utility>
#include <wpi/Endian.h>
#include "wpi/datalog/DataLog.h"
#include "wpi/datalog/DataLogReader.h"
using namespace wpi::log;

View File

@@ -2,14 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/datalog/DataLogReaderThread.h"
#include <string>
#include <utility>
#include <wpi/StringExtras.h>
#include <wpi/print.h>
#include "wpi/datalog/DataLogReaderThread.h"
using namespace wpi::log;
DataLogReaderThread::~DataLogReaderThread() {

View File

@@ -2,14 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/datalog/DataLogWriter.h"
#include <memory>
#include <utility>
#include <vector>
#include <wpi/raw_ostream.h>
#include "wpi/datalog/DataLogWriter.h"
using namespace wpi::log;
static std::unique_ptr<wpi::raw_ostream> CheckOpen(std::string_view filename,

View File

@@ -2,6 +2,8 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/datalog/FileLogger.h"
#ifdef __linux__
#include <fcntl.h>
#include <sys/inotify.h>
@@ -18,8 +20,6 @@
#include <fmt/format.h>
#include <wpi/StringExtras.h>
#include "wpi/datalog/FileLogger.h"
namespace wpi::log {
FileLogger::FileLogger(std::string_view file,
std::function<void(std::string_view)> callback)