Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 4f25d66

Browse files
committed
Fix missing or redundant headers.
1 parent bb5f444 commit 4f25d66

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

src/app.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @file app.cpp
33
*/
44

5-
#include <string> // for std::string
5+
#include <stdexcept> // for std::runtime_error
6+
#include <string> // for std::string
67

78
#include <fmt/color.h>
89
#include <fmt/core.h>

src/core/env.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
* @file env.cpp
33
*/
44

5-
#include <cstdlib> // for std::getenv
6-
#include <string> // for std::string
5+
#include <cstdlib> // for std::getenv
6+
#include <stdexcept> // for std::runtime_error
7+
#include <string> // for std::string
78

89
#include <fmt/core.h>
910

src/core/env.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
#pragma once
88

9-
#include <stdexcept> // for std::runtime_error
10-
#include <string> // for std::string
9+
#include <string> // for std::string
1110

1211
namespace core::env {
1312

src/core/shell.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
* @file shell.cpp
33
*/
44

5-
#include <array> // for std::array
6-
#include <cstdio> // for popen, pclose, FILE, fgets
7-
#include <memory> // for std::unique_ptr
8-
#include <string> // for std::string
5+
#include <array> // for std::array
6+
#include <cstdio> // for popen, pclose, FILE, fgets
7+
#include <memory> // for std::unique_ptr
8+
#include <stdexcept> // for std::runtime_error
9+
#include <string> // for std::string
910

1011
#include <fmt/core.h>
1112

src/core/shell.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
#pragma once
88

9-
#include <stdexcept> // for std::runtime_error
10-
#include <string> // for std::string
9+
#include <string> // for std::string
1110

1211
namespace core::shell {
1312

src/modules/cpu.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @file cpu.cpp
33
*/
44

5-
#include <string> // for std::string
5+
#include <stdexcept> // for std::runtime_error
6+
#include <string> // for std::string
67

78
#include <fmt/core.h>
89

src/modules/host.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <array> // for std::array
66
#include <cstddef> // for std::size_t
77
#include <exception> // for std::exception
8+
#include <stdexcept> // for std::runtime_error
89
#include <string> // for std::string, std::stoi, std::to_string
910
#include <sys/sysctl.h> // for sysctl
1011
#include <sys/time.h> // for timeval, time_t, time, difftime

0 commit comments

Comments
 (0)