Skip to content

Commit 2fd9629

Browse files
clang changes
Signed-off-by: AdityaPandeyCN <adityapand3y666@gmail.com>
1 parent 00f6327 commit 2fd9629

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/ramcore/RAMNTupleView.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <cstdint>
44
#include <cstring>
55
#include <iostream>
6-
#include <limits> // NOLINT(misc-include-cleaner)
6+
#include <limits>
77
#include <string>
88

99
#include <ROOT/RNTuple.hxx>
@@ -182,3 +182,4 @@ Long64_t ramntupleview(const char *file, const char *query, bool cache, bool per
182182
std::cout << "Found " << static_cast<long long>(count) << " records in region " << (query ? query : "") << std::endl;
183183
return count;
184184
}
185+

src/ramcore/SamToNTuple.cxx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
#include "ramcore/SamParser.h"
33
#include "rntuple/RAMNTupleRecord.h"
44

5+
#include <algorithm>
56
#include <cstdint>
7+
#include <cstdio>
68
#include <map>
79
#include <memory>
8-
#include <cstdio>
9-
#include <thread>
10-
#include <vector>
1110
#include <mutex>
12-
#include <algorithm>
11+
#include <string>
12+
#include <thread>
1313
#include <unordered_set>
14+
#include <vector>
1415

1516
#include <ROOT/RNTupleModel.hxx>
1617
#include <ROOT/RNTupleWriter.hxx>
@@ -23,7 +24,7 @@
2324
#include <TFile.h>
2425
#include <TROOT.h>
2526

26-
void samtoramntuple(const char *datafile, const char *treefile, bool index, bool split, bool cache,
27+
void samtoramntuple(const char *datafile, const char *treefile, bool index, bool split, bool cache, // NOLINT(misc-use-internal-linkage)
2728
int compression_algorithm, uint32_t quality_policy)
2829
{
2930
(void)split;
@@ -126,7 +127,7 @@ void samtoramntuple(const char *datafile, const char *treefile, bool index, bool
126127
};
127128

128129
if (!parser.ParseFile(datafile, header_callback, record_callback)) {
129-
printf("Failed to parse SAM file %s\n", datafile);
130+
std::cerr << "Failed to parse SAM file " << datafile << std::endl;
130131
return;
131132
}
132133

@@ -298,3 +299,4 @@ void samtoramntuple_split_by_chromosome(const char *datafile, const char *output
298299
}
299300
}
300301
}
302+

0 commit comments

Comments
 (0)