Skip to content

Commit

Permalink
Fix missing or redundant headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryouze committed Sep 25, 2024
1 parent a31fbc6 commit aa95a7c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* @file app.cpp
*/

#include <stdexcept> // for std::runtime_error
#include <string> // for std::string
#include <string> // for std::string

#include <fmt/color.h>
#include <fmt/core.h>
Expand Down
2 changes: 1 addition & 1 deletion src/core/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

#include <cstdlib> // for std::getenv
#include <optional> // for std::optional
#include <optional> // for std::optional, std::nullopt
#include <string> // for std::string

#include "env.hpp"
Expand Down
11 changes: 5 additions & 6 deletions src/core/shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
* @file shell.cpp
*/

#include <array> // for std::array
#include <cstdio> // for popen, pclose, FILE, fgets
#include <memory> // for std::unique_ptr
#include <optional> // for std::optional
#include <stdexcept> // for std::runtime_error
#include <string> // for std::string
#include <array> // for std::array
#include <cstdio> // for popen, pclose, FILE, fgets
#include <memory> // for std::unique_ptr
#include <optional> // for std::optional, std::nullopt
#include <string> // for std::string

#include <fmt/core.h>

Expand Down
2 changes: 1 addition & 1 deletion src/core/sysctl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#pragma once

#include <cstddef> // for std::size_t
#include <optional> // for std::optional
#include <optional> // for std::optional, std::nullopt
#include <string> // for std::string
#include <sys/sysctl.h> // for ::sysctl, ::sysctlbyname
#include <type_traits> // for std::is_arithmetic_v, std::is_standard_layout_v, std::is_trivial_v
Expand Down
3 changes: 1 addition & 2 deletions src/modules/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* @file cpu.cpp
*/

#include <optional> // for std::optional
#include <string> // for std::string
#include <string> // for std::string

#include "core/sysctl.hpp"
#include "cpu.hpp"
Expand Down
7 changes: 4 additions & 3 deletions src/modules/host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
* @file host.cpp
*/

#include <algorithm> // for std::remove_if
#include <array> // for std::array
#include <algorithm> // for std::remove_if, std::all_of
#include <cctype> // for std::isspace, std::isdigit
#include <cstddef> // for std::size_t
#include <ctime> // for std::time_t, std::time, std::difftime
#include <string> // for std::string
#include <exception> // for std::exception
#include <string> // for std::string, std::to_string, std::stoi
#include <sys/utsname.h> // for utsname, uname

#include <fmt/core.h>
Expand Down

0 comments on commit aa95a7c

Please sign in to comment.