Skip to content

Commit

Permalink
Tidy up some more #include lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
devbww committed Apr 13, 2017
1 parent 65554a3 commit 5e7c694
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 9 deletions.
3 changes: 0 additions & 3 deletions examples/classic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <cstddef>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <chrono>
#include <string>

std::string format(const std::string& fmt, const std::tm& tm) {
Expand Down
3 changes: 1 addition & 2 deletions examples/epoch_shift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <cstddef>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <string>

std::string format(const std::string& fmt, const std::tm& tm) {
char buf[100];
Expand Down
1 change: 1 addition & 0 deletions examples/example3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <chrono>
#include <iostream>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions examples/example4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <chrono>
#include <iostream>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion examples/hello.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <iostream>
#include <chrono>
#include <iostream>
#include <string>

#include "civil_time.h"
Expand Down
6 changes: 5 additions & 1 deletion src/time_zone_format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,24 @@
#endif

#include "time_zone.h"
#include "time_zone_if.h"

#include <cctype>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <ctime>
#include <limits>
#include <string>
#include <vector>
#if !HAS_STRPTIME
#include <iomanip>
#include <sstream>
#endif

#include "civil_time.h"
#include "time_zone_if.h"

namespace cctz {
namespace detail {

Expand Down
1 change: 1 addition & 0 deletions src/time_zone_if.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef CCTZ_TIME_ZONE_IF_H_
#define CCTZ_TIME_ZONE_IF_H_

#include <chrono>
#include <cstdint>
#include <memory>
#include <string>
Expand Down
2 changes: 2 additions & 0 deletions src/time_zone_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#include "time_zone_impl.h"

#include <mutex>
#include <string>
#include <unordered_map>
#include <utility>

#include "time_zone_fixed.h"

Expand Down
1 change: 1 addition & 0 deletions src/time_zone_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <memory>
#include <string>

#include "civil_time.h"
#include "time_zone.h"
#include "time_zone_if.h"
#include "time_zone_info.h"
Expand Down
2 changes: 1 addition & 1 deletion src/time_zone_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits>
#include <string>

#include "civil_time.h"
#include "time_zone_fixed.h"
#include "time_zone_posix.h"

Expand Down
4 changes: 3 additions & 1 deletion src/time_zone_libc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
#include "time_zone_libc.h"

#include <chrono>
#include <cstdint>
#include <ctime>
#include <tuple>
#include <utility>

#include "civil_time.h"
#include "time_zone.h"

namespace cctz {

namespace {
Expand Down
1 change: 1 addition & 0 deletions src/time_zone_lookup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <cstdlib>
#include <cstring>
#include <string>

#include "time_zone_fixed.h"
#include "time_zone_impl.h"
Expand Down
1 change: 1 addition & 0 deletions src/time_zone_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "time_zone_posix.h"

#include <cstddef>
#include <cstring>
#include <limits>
#include <string>
Expand Down

0 comments on commit 5e7c694

Please sign in to comment.