Skip to content

Commit e92ede3

Browse files
iwyu
1 parent b64428f commit e92ede3

24 files changed

+80
-74
lines changed

GenomicRegion.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@
2121
*/
2222

2323
#include "GenomicRegion.hpp"
24-
25-
#include <exception>
24+
#include "smithlab_os.hpp"
2625

2726
#include <cassert>
27+
#include <cctype>
28+
#include <cstdlib>
2829
#include <fstream>
30+
#include <limits>
31+
#include <sstream>
32+
#include <stdexcept>
2933
#include <unordered_map>
3034

3135
using std::ostringstream;
@@ -136,8 +140,6 @@ bool SimpleGenomicRegion::operator!=(const SimpleGenomicRegion &rhs) const {
136140
return (chrom != rhs.chrom || start != rhs.start || end != rhs.end);
137141
}
138142

139-
#include <iostream>
140-
141143
unordered_map<string, chrom_id_type> GenomicRegion::fw_table_in;
142144
unordered_map<chrom_id_type, string> GenomicRegion::fw_table_out;
143145

GenomicRegion.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@
2424
#ifndef GENOMIC_REGION_HPP
2525
#define GENOMIC_REGION_HPP
2626

27-
#include "smithlab_os.hpp"
2827
#include "smithlab_utils.hpp"
2928

29+
#include <algorithm>
3030
#include <fstream>
31-
#include <limits>
31+
#include <iterator>
32+
#include <stdio.h>
3233
#include <string>
3334
#include <unordered_map>
35+
#include <utility>
3436
#include <vector>
37+
class GenomicRegion;
3538

3639
typedef unsigned chrom_id_type;
3740

38-
class GenomicRegion;
39-
4041
class SimpleGenomicRegion {
4142
public:
4243
SimpleGenomicRegion() : chrom(assign_chrom("(null)")), start(0), end(0) {}

MappedRead.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
*/
2222

2323
#include "MappedRead.hpp"
24-
#include "smithlab_utils.hpp"
2524

2625
#include <algorithm>
27-
#include <fstream>
26+
#include <cctype>
2827
#include <sstream>
28+
#include <stdexcept>
2929
#include <string>
3030

3131
using std::runtime_error;

MappedRead.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#define MAPPED_READ_HPP
2525

2626
#include "GenomicRegion.hpp"
27+
#include <cstdio>
28+
#include <string>
2729

2830
struct MappedRead {
2931
MappedRead() {}

OptionParser.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,18 @@
2222
*/
2323

2424
#include "OptionParser.hpp"
25+
#include "smithlab_utils.hpp"
2526

27+
#include <algorithm>
2628
#include <cassert>
2729
#include <cctype>
2830
#include <cstdlib>
29-
#include <cstring>
30-
#include <exception>
3131
#include <fstream>
32-
#include <functional>
3332
#include <iomanip>
3433
#include <iterator>
3534
#include <regex>
3635
#include <sstream>
37-
38-
#include "smithlab_utils.hpp"
36+
#include <stdexcept>
3937

4038
using std::begin;
4139
using std::end;

OptionParser.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#ifndef OPTION_PARSER_HPP
2020
#define OPTION_PARSER_HPP
2121

22+
#include <cstddef>
2223
#include <limits>
2324
#include <string>
2425
#include <vector>

QualityScore.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222

2323
#include "QualityScore.hpp"
2424

25-
#include "smithlab_utils.hpp"
25+
#include <cctype>
2626
#include <fstream>
27+
#include <stdexcept>
2728

2829
using std::runtime_error;
2930
using std::string;

QualityScore.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#include <algorithm>
2727
#include <cmath>
28+
#include <cstddef>
2829
#include <string>
2930

3031
////////////////////////////////////////////////////////////////////////

bisulfite_utils.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@
2222
*/
2323

2424
#include "bisulfite_utils.hpp"
25+
#include <cctype>
2526
#include <cstdlib>
26-
#include <iostream>
2727
#include <random>
2828

29-
using std::string;
30-
31-
void bisulfite_treatment(std::mt19937 &generator, string &seq, double bs_rate,
32-
double meth_rate) {
29+
void bisulfite_treatment(std::mt19937 &generator, std::string &seq,
30+
double bs_rate, double meth_rate) {
3331

3432
std::uniform_real_distribution<double> unif(0.0, 1.0);
3533

chromosome_utils.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,16 @@
2121
*/
2222

2323
#include "chromosome_utils.hpp"
24+
#include "GenomicRegion.hpp"
25+
#include "smithlab_os.hpp"
2426

27+
#include <algorithm>
28+
#include <cassert>
2529
#include <cctype>
30+
#include <cmath>
31+
#include <cstdlib>
32+
#include <fstream>
33+
#include <iterator>
2634
#include <stdexcept>
2735
#include <string>
2836
#include <unordered_map>

0 commit comments

Comments
 (0)