Skip to content
Open
5 changes: 2 additions & 3 deletions bindings/tpython/src/TPython.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
#include "TClassRef.h"
#include "TObject.h"

#include <Riostream.h>

// Standard
#include <mutex>
#include <sstream>
#include <stdio.h>
#include <cstdio>
#include <iostream>
#include <string>

/// \class TPython
Expand Down
7 changes: 2 additions & 5 deletions core/base/inc/TParameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@
// //
//////////////////////////////////////////////////////////////////////////

#include "Riostream.h"

#include "TObject.h"

#include "TCollection.h"

#include "TString.h"

#include "TROOT.h"

#include <iostream>

template <class AParamType>
class TParameter : public TObject {

Expand Down
4 changes: 3 additions & 1 deletion core/rint/src/TTabCom.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@
#include "TFunction.h"
#include "TMethodArg.h"
#include "TInterpreter.h"
#include "Riostream.h"
#include "Rstrstream.h"
#include "strlcpy.h"

#include <iostream>
#include <fstream>

#define BUF_SIZE 1024 // must be smaller than/equal to fgLineBufSize in Getline.cxx and
// lineBufSize in cppcompleter.py
#define IfDebug(x) if(gDebug==TTabCom::kDebug) x
Expand Down
3 changes: 2 additions & 1 deletion geom/geom/inc/TGeoVector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
#ifndef ROOT_TGeoVector3
#define ROOT_TGeoVector3

#include <Riostream.h>
#include <TMath.h>

#include <iosfwd>

namespace ROOT {
namespace Geom {

Expand Down
1 change: 1 addition & 0 deletions geom/geom/src/TGeoTessellated.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ for the composing faces.
*/

#include <iostream>
#include <fstream>
#include <sstream>

#include "TGeoManager.h"
Expand Down
2 changes: 2 additions & 0 deletions geom/geom/src/TGeoVector3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Simple 3-vector representation

#include "TGeoVector3.h"

#include <ostream>

std::ostream &operator<<(std::ostream &os, ROOT::Geom::Vertex_t const &vec)
{
os << "{" << vec[0] << ", " << vec[1] << ", " << vec[2] << "}";
Expand Down
12 changes: 10 additions & 2 deletions gui/gui/src/TGFrame.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2895,7 +2895,11 @@ void TGMainFrame::SaveSource(const char *filename, Option_t *option)
if (strstr(inc->GetString(), "TRootEmbeddedCanvas"))
out << "#include \"TCanvas.h\"\n";
}
out << "\n#include \"Riostream.h\"\n\n";
// Workaround for https://github.com/llvm/llvm-project/issues/138683
// Include <chrono> before <fstream> to ensure _FilesystemClock is defined
// Can be removed once the upstream issue is fixed.
out << "\n#ifdef __APPLE__\n#include <chrono>\n#endif\n\n";
out << "\n#include <fstream>\n#include <iostream>\n#include <iomanip>\n\n";
// deletes created ListOfIncludes
gROOT->GetListOfSpecials()->Remove(ilist);
ilist->Delete();
Expand Down Expand Up @@ -3344,7 +3348,11 @@ void TGTransientFrame::SaveSource(const char *filename, Option_t *option)
if (strstr(inc->GetString(), "TRootEmbeddedCanvas"))
out << "#include \"TCanvas.h\"\n";
}
out << "\n#include \"Riostream.h\"\n\n";
// Workaround for https://github.com/llvm/llvm-project/issues/138683
// Include <chrono> before <fstream> to ensure _FilesystemClock is defined
// Can be removed once the upstream issue is fixed.
out << "\n#ifdef __APPLE__\n#include <chrono>\n#endif\n\n";
out << "\n#include <fstream>\n#include <iostream>\n#include <iomanip>\n\n";
// deletes created ListOfIncludes
gROOT->GetListOfSpecials()->Remove(ilist);
ilist->Delete();
Expand Down
2 changes: 1 addition & 1 deletion hist/hist/src/TConfidenceLevel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#include "TConfidenceLevel.h"
#include "TH1F.h"
#include "TMath.h"
#include "Riostream.h"

#include <iostream>

Double_t const TConfidenceLevel::fgMCLM2S = 0.025;
Double_t const TConfidenceLevel::fgMCLM1S = 0.16;
Expand Down
5 changes: 1 addition & 4 deletions hist/hist/src/TF3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
#include "TH3.h"
#include "TVirtualPad.h"
#include "TRandom.h"
#include "TVectorD.h"
#include "Riostream.h"
#include "TColor.h"
#include "TVirtualFitter.h"
#include "TVirtualHistPainter.h"
#include "Math/IntegratorOptions.h"

#include <cassert>


Expand Down
3 changes: 2 additions & 1 deletion hist/hist/src/TGraphMultiErrors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "TStyle.h"
#include "TVirtualPad.h"
#include "TEfficiency.h"
#include "Riostream.h"

#include "TArrayD.h"
#include "TVector.h"
Expand All @@ -24,6 +23,8 @@

#include "TGraphMultiErrors.h"

#include <ostream>
#include <vector>

/** \class TGraphMultiErrors
\ingroup Graphs
Expand Down
3 changes: 1 addition & 2 deletions hist/hist/src/TGraphSmooth.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
* *
******************************************************************************/


#include "Riostream.h"
#include "TMath.h"
#include "TGraphSmooth.h"
#include "TGraphErrors.h"

#include <iostream>

//______________________________________________________________________
/** \class TGraphSmooth
Expand Down
2 changes: 0 additions & 2 deletions hist/hist/src/TH2Poly.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include "TH2Poly.h"
#include "TMultiGraph.h"
#include "TGraph.h"
#include "TInterpreter.h"
#include "Riostream.h"
#include "TList.h"
#include "TMath.h"
#include <cassert>
Expand Down
2 changes: 1 addition & 1 deletion hist/hist/src/TLimit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
#include "TIterator.h"
#include "TObjString.h"
#include "TClassTable.h"
#include "Riostream.h"

#include <iostream>

TArrayD *TLimit::fgTable = new TArrayD(0);
TOrdCollection *TLimit::fgSystNames = new TOrdCollection();
Expand Down
5 changes: 3 additions & 2 deletions hist/hist/src/TMultiDimFit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@
[9]: classTMultiDimFit.html#eq:dS2
*/


#include "Riostream.h"
#include "TMultiDimFit.h"
#include "TMath.h"
#include "TH1.h"
Expand All @@ -397,6 +395,9 @@
#include "TDecompChol.h"
#include "TDatime.h"

#include <fstream>
#include <iostream>
#include <iomanip>

#define RADDEG (180. / TMath::Pi())
#define DEGRAD (TMath::Pi() / 180.)
Expand Down
2 changes: 0 additions & 2 deletions hist/hist/src/TPolyMarker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/

#include "Riostream.h"
#include "TROOT.h"
#include "TBuffer.h"
#include "TVirtualPad.h"
#include "TPolyMarker.h"
#include "TMath.h"



/** \class TPolyMarker
\ingroup Graphs
A PolyMarker is defined by an array on N points in a 2-D space.
Expand Down
5 changes: 3 additions & 2 deletions hist/hist/src/TPrincipal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ Christian Holm August 2000, CERN
#include "TDatime.h"
#include "TBrowser.h"
#include "TROOT.h"
#include "Riostream.h"


#include <fstream>
#include <iostream>
#include <iomanip>

////////////////////////////////////////////////////////////////////////////////
/// Empty constructor. Do not use.
Expand Down
12 changes: 10 additions & 2 deletions io/io/src/TStreamerInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4243,10 +4243,18 @@ UInt_t TStreamerInfo::GenerateIncludes(FILE *fp, char *inclist, const TList *ext
if (ltype < lt) ltype = lt;
if (ldata < ld) ldata = ld;

//must include Riostream.h in case of an STL container
//must include streaming classes in case of an STL container
if (!incRiostream && element->InheritsFrom(TStreamerSTL::Class())) {
incRiostream = kTRUE;
TMakeProject::AddInclude( fp, "Riostream.h", kFALSE, inclist);
#ifdef __APPLE__
// Workaround for https://github.com/llvm/llvm-project/issues/138683
// Include <chrono> before <fstream> to ensure _FilesystemClock is defined
// Can be removed once the upstream issue is fixed.
TMakeProject::AddInclude( fp, "chrono", kTRUE, inclist);
#endif
TMakeProject::AddInclude( fp, "fstream", kTRUE, inclist);
TMakeProject::AddInclude( fp, "iostream", kTRUE, inclist);
TMakeProject::AddInclude( fp, "iomanip", kTRUE, inclist);
}

//get include file name if any
Expand Down
1 change: 0 additions & 1 deletion math/smatrix/test/kalman.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "Riostream.h"
#include "TFile.h"
#include "TCanvas.h"
#include "TSystem.h"
Expand Down Expand Up @@ -37,7 +36,7 @@
int read_data(const char * machine, double * s, double * ss, double * t) {

char filename[100];
sprintf(filename,"%s.root",machine);

Check warning on line 39 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
TFile * file = new TFile(filename,machine);
if (file == 0) return -1;
SMatrix<double,9,7,ROOT::Math::MatRepStd<double,9,7> > *ms;
Expand Down Expand Up @@ -83,7 +82,7 @@
double ss[n];
double t[n];

sprintf(tmachine,"%s",machine);

Check warning on line 85 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
c1 = new TCanvas(machine,machine,xtop,ytop,800,650);
if (read_data(machine,s,ss,t)) return;

Expand Down Expand Up @@ -131,14 +130,14 @@
for (i=0;i<=nx;i++) {
line.DrawLine(xmin+i*dx,ymin,xmin+i*dx,ymax);
if(i==nx) continue;
sprintf(text,"%d",i+2);

Check warning on line 133 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
ts.DrawText(xmin+(i+0.5)*dx,ymax+0.1*dy,text);
}
ts.SetTextAlign(32);
for (i=0;i<=ny;i++) {
line.DrawLine(xmin,ymax-i*dy,xmax,ymax-i*dy);
if(i==ny) continue;
sprintf(text,"%d",i+2);

Check warning on line 140 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
ts.DrawText(xmin-0.1*dx,ymax-(i+0.5)*dy,text);
}
tss.SetTextAlign(22);
Expand All @@ -152,11 +151,11 @@
double sumt2 = 0;
for (i=0;i<nx;i++) {
for (j=0;j<ny;j++) {
sprintf(text,"%6.2f",ss[ny*i+j]);

Check warning on line 154 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
tss.DrawText(xmin+(i+0.5)*dx,ymax -(j+0.22)*dy,text);
sprintf(text,"%6.2f",s[ny*i+j]);

Check warning on line 156 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
ts.DrawText(xmin+(i+0.5)*dx,ymax -(j+0.5)*dy,text);
sprintf(text,"%6.2f",t[ny*i+j]);

Check warning on line 158 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
tt.DrawText(xmin+(i+0.5)*dx,ymax -(j+0.78)*dy,text);
if ( i <=cut-2 && j <=cut-2) {
sums1 += s[ny*i+j];
Expand All @@ -175,7 +174,7 @@
tt.DrawText (xmin+4*dx,0.05,"TMatrix");
ts.SetTextSize(0.05);
char title[100];
sprintf(title,"TestKalman [nx,ny] : %s",tmachine);

Check warning on line 177 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
ts.DrawText(0.5,0.96,title);


Expand All @@ -197,7 +196,7 @@
tt.SetTextAlign(22);

i = 2;
sprintf(text,"N1,N2 <= %d",cut);

Check warning on line 199 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
tl.DrawText (xmin+i*dx-0.15,ylow+0.04,text);
if (sym == 0) {
if (sums1 <= sumt1)
Expand All @@ -207,7 +206,7 @@
if (sumss1 <= sumt1)
box.DrawBox(xmin+i*dx,ylow,xmin+(i+1)*dx,ylow+dy);
}
sprintf(text,"%6.2f",sumss1);

Check warning on line 209 in math/smatrix/test/kalman.C

View workflow job for this annotation

GitHub Actions / mac26 ARM64

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
tss.DrawText(xmin+(i+0.5)*dx,ylow+0.078,text);
sprintf(text,"%6.2f",sums1);
ts.DrawText(xmin+(i+0.5)*dx,ylow+0.05,text);
Expand Down
3 changes: 0 additions & 3 deletions net/net/src/TGridJDL.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

#include "TGridJDL.h"
#include "TObjString.h"
#include "Riostream.h"



////////////////////////////////////////////////////////////////////////////////
/// Cleanup.
Expand Down
2 changes: 1 addition & 1 deletion net/net/src/TSQLColumnInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
#include "TSQLColumnInfo.h"
#include "TSQLServer.h"
#include "TROOT.h"
#include "Riostream.h"

#include <iostream>

////////////////////////////////////////////////////////////////////////////////
/// default contructor
Expand Down
4 changes: 1 addition & 3 deletions net/net/src/TSQLTableInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
//
////////////////////////////////////////////////////////////////////////////////



#include "TSQLTableInfo.h"

#include "TSQLColumnInfo.h"
#include "TList.h"
#include "TROOT.h"
#include "Riostream.h"

#include <iostream>

////////////////////////////////////////////////////////////////////////////////
/// default constructor
Expand Down
1 change: 0 additions & 1 deletion tmva/tmva/test/stressTMVA.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2771,7 +2771,6 @@ bool MethodUnitTestWithComplexData::create_data(const char *filename, int nmax)
// Authors: Christoph Rosemann, Eckhard von Toerne July 2010
// TMVA unit tests

#include "Riostream.h"
#include "TSystem.h"
#include "TROOT.h"
#include "TBenchmark.h"
Expand Down
Loading