Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Include thirdparty libraries with angle brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Aug 27, 2023
1 parent f55601c commit ff68efa
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 24 deletions.
19 changes: 10 additions & 9 deletions .styleguide
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,22 @@ repoRootNameOverride {
}

includeOtherLibs {
^glass
^GLFW
^cscore
^ctre
^Eigen
^Eigen/
^GLFW/
^cscore/
^ctre/
^fmt/
^frc
^frc/
^glass/
^gtest/
^imgui
^implot\.h$
^libssh
^libssh/
^networktables/
^portable-file-dialogs
^rev/
^units
^uv
^units/
^uv/
^wpi/
^wpigui
^wpimath/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
#include <thread>

#include <fmt/core.h>
#include <gtest/gtest.h>
#include <networktables/BooleanTopic.h>
#include <networktables/NetworkTableInstance.h>
#include <wpi/Logger.h>
#include <wpi/timestamp.h>

#include "IntegrationUtils.h"
#include "gtest/gtest.h"
#include "sysid/Util.h"
#include "sysid/analysis/AnalysisManager.h"
#include "sysid/analysis/AnalysisType.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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 "gtest/gtest.h"
#include <gtest/gtest.h>

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <thread>

#include <fmt/core.h>
#include <gtest/gtest.h>
#include <networktables/BooleanTopic.h>
#include <networktables/NetworkTableInstance.h>
#include <networktables/StringTopic.h>
Expand All @@ -20,7 +21,6 @@
#include <wpi/timestamp.h>

#include "IntegrationUtils.h"
#include "gtest/gtest.h"
#include "sysid/Util.h"
#include "sysid/generation/ConfigManager.h"
#include "sysid/generation/HardwareType.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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 "gtest/gtest.h"
#include <gtest/gtest.h>

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
#include <stdexcept>

#include <fmt/core.h>
#include <gtest/gtest.h>
#include <wpi/timestamp.h>

#include "gtest/gtest.h"

void LaunchSim(std::string_view projectDirectory) {
// Install the robot program.
std::string installCmd =
Expand Down
2 changes: 1 addition & 1 deletion sysid-application/src/test/native/cpp/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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 "gtest/gtest.h"
#include <gtest/gtest.h>

int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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 "gtest/gtest.h"
#include <gtest/gtest.h>

#include "sysid/analysis/AnalysisType.h"

TEST(AnalysisTypeTest, FromName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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 "gtest/gtest.h"
#include <gtest/gtest.h>

#include "sysid/analysis/FeedbackAnalysis.h"
#include "sysid/analysis/FeedbackControllerPreset.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

#include <cmath>

#include <gtest/gtest.h>
#include <units/time.h>
#include <units/voltage.h>

#include "gtest/gtest.h"
#include "sysid/analysis/AnalysisManager.h"
#include "sysid/analysis/ArmSim.h"
#include "sysid/analysis/ElevatorSim.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#include <cmath>
#include <vector>

#include "gtest/gtest.h"
#include <gtest/gtest.h>

#include "sysid/analysis/AnalysisManager.h"
#include "sysid/analysis/FeedforwardAnalysis.h"
#include "sysid/analysis/FilteringUtils.h"
Expand Down
3 changes: 2 additions & 1 deletion sysid-application/src/test/native/cpp/analysis/OLSTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

#include <vector>

#include "gtest/gtest.h"
#include <gtest/gtest.h>

#include "sysid/analysis/OLS.h"

TEST(OLSTest, TwoVariablesTwoPoints) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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 "gtest/gtest.h"
#include <gtest/gtest.h>

#include "sysid/analysis/TrackWidthAnalysis.h"

TEST(TrackWidthAnalysisTest, Calculate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// 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 <gtest/gtest.h>
#include <wpi/Logger.h>
#include <wpi/json.h>

#include "gtest/gtest.h"
#include "sysid/deploy/DeploySession.h"
#include "sysid/generation/ConfigManager.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#include <stdexcept>
#include <string_view>

#include "gtest/gtest.h"
#include <gtest/gtest.h>

#include "sysid/generation/HardwareType.h"

/**
Expand Down

0 comments on commit ff68efa

Please sign in to comment.