Skip to content

Commit

Permalink
Make sure used std includes are the system ones and called in the rig…
Browse files Browse the repository at this point in the history
…ht order
  • Loading branch information
nadrino committed May 23, 2023
1 parent ec087f4 commit dcb5eae
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 23 deletions.
4 changes: 2 additions & 2 deletions include/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#include "implementation/LoggerParameters.h"
#include "implementation/LoggerUtils.h"

#include <string>
#include <mutex>
#include <string>
#include <vector>
#include <sstream>
#include <unordered_set>
#include "sstream"


// Here is what you want to use
Expand Down
21 changes: 10 additions & 11 deletions include/implementation/Logger.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,23 @@

#include "LoggerParameters.h"

#include <cstdarg>
#include <cstdio>
#include <map>
#include <mutex>
#include <cmath> // std::abs
#include <ctime>
#include <cstdio>
#include <memory> // For std::unique_ptr
#include <string>
#include <utility>
#include <vector>
#include <thread>
#include <map>
#include <mutex>
#include <type_traits>
#include <cstdio>
#include <cstdarg>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <memory> // For std::unique_ptr
#include <cmath> // std::abs
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <type_traits>


#define LoggerInitializerImpl( lambdaInit ) \
Expand Down
10 changes: 5 additions & 5 deletions include/implementation/LoggerUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
#ifndef SIMPLE_CPP_LOGGER_LOGGERUTILS_H
#define SIMPLE_CPP_LOGGER_LOGGERUTILS_H

#include <iostream>
#include <thread>
#include <vector>
#include <string>
#include <fstream>
#include "thread"
#include "vector"
#include "string"
#include "functional"
#include <iostream>
#include <functional>


#ifndef HAS_CPP_17
Expand Down
10 changes: 5 additions & 5 deletions include/implementation/LoggerUtils.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
#ifndef SIMPLE_CPP_LOGGER_LOGGERUTILS_IMPL_H
#define SIMPLE_CPP_LOGGER_LOGGERUTILS_IMPL_H

#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <memory>
#include <cstring> // strrchr
#include "cmath"
#include "vector"
#include <fstream>
#include <iostream>
#include <algorithm>

#if defined(_WIN32)
// Windows
Expand Down

0 comments on commit dcb5eae

Please sign in to comment.