Skip to content
Open
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
34a0eee
Fix: Suppress -Wshadow warnings in headers on macOS (Fixes #20790)
Jan 2, 2026
d6666b8
Style: Remove extra newline before footer to satisfy clang-format
Jan 3, 2026
aefdf3f
Refactor: Narrow scope of -Wshadow suppression to specific enums in 9…
Jan 4, 2026
4698a8c
Revert 4 files to original upstream state
Jan 5, 2026
b412441
Refactor: Add GCC support for -Wshadow suppression
Jan 5, 2026
691cdf1
Rename constructor arguments to resolve shadowing and remove pragma s…
Jan 9, 2026
4442723
Style cleanup: Fix TClass shadowing, revert TAttMarker whitespace, re…
Jan 9, 2026
696a0d1
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
c498219
Style cleanup: Fix copyright header formatting in TClass and TAttText
Jan 9, 2026
7d9de29
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
69b37d7
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
b1debb2
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
35b15a4
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
c6d8bf3
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
18dd104
Update core/base/inc/TAttText.h
aryansri05 Jan 9, 2026
6fe8064
Update core/base/inc/TAttText.h
aryansri05 Jan 9, 2026
e24d74e
Update core/base/inc/TSystem.h
aryansri05 Jan 9, 2026
5075119
Update core/base/inc/TSystem.h
aryansri05 Jan 9, 2026
3c355c2
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
bad85c0
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
f56079d
Update core/base/src/TAttText.cxx
aryansri05 Jan 9, 2026
3f3d0c9
Update core/base/src/TAttText.cxx
aryansri05 Jan 9, 2026
eac1c2b
Update io/io/inc/TFile.h
aryansri05 Jan 9, 2026
761e5cb
Update math/matrix/inc/TMatrixTSparse.h
aryansri05 Jan 9, 2026
9da9c3d
Update tree/tree/inc/TBranch.h
aryansri05 Jan 9, 2026
424b7b6
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
0e3588e
Update math/matrix/inc/TMatrixT.h
aryansri05 Jan 9, 2026
32f720e
Update math/matrix/inc/TMatrixT.h
aryansri05 Jan 9, 2026
de93436
Update math/matrix/inc/TMatrixTSparse.h
aryansri05 Jan 9, 2026
1c0fea7
Update math/matrix/inc/TMatrixTSym.h
aryansri05 Jan 9, 2026
de39f84
Update tree/tree/inc/TBranch.h
aryansri05 Jan 9, 2026
dc749f6
Update math/matrix/inc/TMatrixTSym.h
aryansri05 Jan 9, 2026
d8ca856
Update core/base/src/TAttText.cxx
aryansri05 Jan 9, 2026
c743796
Update core/meta/inc/TClass.h
aryansri05 Jan 9, 2026
2271329
Update core/meta/inc/TClass.h
aryansri05 Jan 9, 2026
f553e4a
Update core/meta/inc/TClass.h
aryansri05 Jan 9, 2026
5031a21
Update io/io/inc/TFile.h
aryansri05 Jan 9, 2026
206ad50
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
dad1300
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
cbdd1d8
Update core/base/inc/TAttMarker.h
aryansri05 Jan 9, 2026
7756fce
Update core/base/inc/TAttMarker.h
aryansri05 Jan 10, 2026
1aaf392
Update core/base/inc/TAttMarker.h
aryansri05 Jan 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions core/base/inc/TAttMarker.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,34 @@

#include "Rtypes.h"

class TColorNumber;

class TAttMarker {

protected:
Color_t fMarkerColor; ///< Marker color
Color_t fMarkerColor; ///< Marker color index
Style_t fMarkerStyle; ///< Marker style
Size_t fMarkerSize; ///< Marker size

public:
TAttMarker();
TAttMarker(Color_t color, Style_t style, Size_t msize);
TAttMarker(Color_t markerColor, Style_t style, Size_t msize);
virtual ~TAttMarker();
void Copy(TAttMarker &attmarker) const;
void Copy(TAttMarker &attmarker) const;
virtual Color_t GetMarkerColor() const {return fMarkerColor;} ///< Return the marker color
virtual Style_t GetMarkerStyle() const {return fMarkerStyle;} ///< Return the marker style
virtual Size_t GetMarkerSize() const {return fMarkerSize;} ///< Return the marker size
virtual void Modify();
virtual void ResetAttMarker(Option_t *toption="");
virtual void ResetAttMarker(Option_t *option="");
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1);
virtual void SetMarkerAttributes(); // *MENU*
virtual void SetMarkerColor(Color_t mcolor=1) { fMarkerColor = mcolor;} ///< Set the marker color
virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha);
virtual void SetMarkerStyle(Style_t mstyle=1) { fMarkerStyle = mstyle;} ///< Set the marker style
virtual void SetMarkerColor(Color_t tmarkerColor); ///< Set the marker color
virtual void SetMarkerColorAlpha(Color_t tmarkerColor, Float_t malpha);
virtual void SetMarkerStyle(Style_t style); ///< Set the marker style
/// Set the marker size.
/// Note that the marker styles number 1 6 and 7 (the dots), cannot be scaled.
/// They are meant to be very fast to draw and are always drawn with the same number of pixels;
/// therefore this method does not apply on them.
virtual void SetMarkerSize(Size_t msize=1) { fMarkerSize = msize;}
virtual void SetMarkerSize(Size_t msize);

static Style_t GetMarkerStyleBase(Style_t style);
static Width_t GetMarkerLineWidth(Style_t style);
Expand All @@ -69,4 +68,3 @@ class TAttMarker {
kFourSquaresPlus=49 };

#endif

6 changes: 3 additions & 3 deletions core/base/inc/TAttText.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TAttText {

public:
TAttText();
TAttText(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize);
TAttText(Int_t textAlign, Float_t textAngle, Color_t textColor, Style_t textFont, Float_t tsize);
virtual ~TAttText();
void Copy(TAttText &atttext) const;
virtual Short_t GetTextAlign() const {return fTextAlign;} ///< Return the text alignment
Expand All @@ -41,7 +41,8 @@ class TAttText {
virtual void ResetAttText(Option_t *toption="");
virtual void SaveTextAttributes(std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1);
virtual void SetTextAttributes(); // *MENU*
virtual void SetTextAlign(Short_t align=11) { fTextAlign = align;} ///< Set the text alignment
virtual void SetTextAlign(Short_t textAlign = 11) { fTextAlign = textAlign; } ///< Set the text alignment

virtual void SetTextAngle(Float_t tangle=0) { fTextAngle = tangle;} ///< Set the text angle
virtual void SetTextColor(Color_t tcolor=1) { fTextColor = tcolor;} ///< Set the text color
virtual void SetTextColorAlpha(Color_t tcolor, Float_t talpha);
Expand All @@ -58,4 +59,3 @@ class TAttText {
kVAlignBottom=1, kVAlignCenter=2, kVAlignTop=3};

#endif

12 changes: 12 additions & 0 deletions core/base/inc/TSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,19 @@ enum EAccessMode {
kFileExists = 0,
kExecutePermission = 1,
kWritePermission = 2,
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
kReadPermission = 4
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
};

enum ELogOption {
Expand Down
6 changes: 3 additions & 3 deletions core/base/src/TAttFill.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ TAttFill::TAttFill()
/// - color Fill Color
/// - style Fill Style

TAttFill::TAttFill(Color_t color, Style_t style)
TAttFill::TAttFill(Color_t fillColor, Style_t fillStyle)
{
fFillColor = color;
fFillStyle = style;
fFillColor = fillColor;
fFillStyle = fillStyle;
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
8 changes: 4 additions & 4 deletions core/base/src/TAttLine.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ TAttLine::TAttLine()
/// defined using TStyle::SetLineStyleString.
/// - width : expressed in pixel units

TAttLine::TAttLine(Color_t color, Style_t style, Width_t width)
TAttLine::TAttLine(Color_t lineColor, Style_t lineStyle, Width_t lineWidth)
{
fLineColor = color;
fLineWidth = width;
fLineStyle = style;
fLineColor = lineColor;
fLineWidth = lineWidth;
fLineStyle = lineStyle;
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
8 changes: 4 additions & 4 deletions core/base/src/TAttMarker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ TAttMarker::TAttMarker()
/// - style : Marker style (from 1 to 30)
/// - size : marker size (float)

TAttMarker::TAttMarker(Color_t color, Style_t style, Size_t msize)
TAttMarker::TAttMarker(Color_t markerColor, Style_t markerStyle, Size_t markerSize)
{
fMarkerColor = color;
fMarkerSize = msize;
fMarkerStyle = style;
fMarkerColor = markerColor;
fMarkerSize = markerSize;
fMarkerStyle = markerStyle;
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
10 changes: 5 additions & 5 deletions core/base/src/TAttText.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ TAttText::TAttText()
///
/// Text attributes are taken from the argument list.

TAttText::TAttText(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
TAttText::TAttText(Int_t textAlign, Float_t textAngle, Color_t textColor, Style_t textFont, Float_t tsize)
{
fTextAlign = align;
fTextAngle = angle;
fTextColor = color;
fTextFont = font;
fTextAlign = textAlign;
fTextAngle = textAngle;
fTextColor = textColor;
fTextFont = textFont;
fTextSize = tsize;
}

Expand Down
12 changes: 6 additions & 6 deletions core/meta/inc/TClass.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,16 +591,16 @@ friend class TStreamerInfo;

// Function to retrieve the TClass object and dictionary function
static void AddClass(TClass *cl);
static void AddClassToDeclIdMap(TDictionary::DeclId_t id, TClass* cl);
static void AddClassToDeclIdMap(TDictionary::DeclId_t declId, TClass* cl);
static void RemoveClass(TClass *cl);
static void RemoveClassDeclId(TDictionary::DeclId_t id);
static void RemoveClassDeclId(TDictionary::DeclId_t declId);
static TClass *GetClass(const char *name, Bool_t load = kTRUE, Bool_t silent = kFALSE);
static TClass *GetClass(const char *name, Bool_t load, Bool_t silent, size_t hint_pair_offset, size_t hint_pair_size);
static TClass *GetClass(const std::type_info &typeinfo, Bool_t load = kTRUE, Bool_t silent = kFALSE, size_t hint_pair_offset = 0, size_t hint_pair_size = 0);
static TClass *GetClass(ClassInfo_t *info, Bool_t load = kTRUE, Bool_t silent = kFALSE);
template<typename T>
static TClass *GetClass(Bool_t load = kTRUE, Bool_t silent = kFALSE);
static Bool_t GetClass(DeclId_t id, std::vector<TClass*> &classes);
static Bool_t GetClass(DeclId_t declId, std::vector<TClass*> &classes);
static DictFuncPtr_t GetDict (const char *cname);
static DictFuncPtr_t GetDict (const std::type_info &info);

Expand Down Expand Up @@ -681,13 +681,13 @@ template <typename T> TClass *GetClass(const T * /* dummy */) { return TClass::G

#ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION
// This can only be used when the template overload resolution can distinguish between T* and T**
template <typename T> TClass* GetClass( T** /* dummy */) { return TClass::GetClass<T>(); }
template <typename T> TClass* GetClass(const T** /* dummy */) { return TClass::GetClass<T>(); }
template <typename T> TClass* GetClass( T** /* dummy */) { return TClass::GetClass<T>(); }
template <typename T> TClass* GetClass(const T** /* dummy */) { return TClass::GetClass<T>(); }
template <typename T> TClass* GetClass( T* const* /* dummy */) { return TClass::GetClass<T>(); }
template <typename T> TClass* GetClass(const T* const* /* dummy */) { return TClass::GetClass<T>(); }
#endif

extern TClass *CreateClass(const char *cname, Version_t id,
extern TClass *CreateClass(const char *cname, Version_t cversion,
const char *dfil, const char *ifil,
Int_t dl, Int_t il);
}
Expand Down
19 changes: 19 additions & 0 deletions io/io/inc/TFile.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
// @(#)root/io:$Id$
// Author: Rene Brun 28/11/94

Expand Down Expand Up @@ -263,7 +270,19 @@ class TFile : public TDirectoryFile {
// Note that to avoid a circular dependency, this value is used
// hard coded in TObject.cxx.
k630forwardCompatibility = BIT(2),
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
kRecovered = BIT(10),
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
kHasReferences = BIT(11),
kDevNull = BIT(12),
kWriteError = BIT(14),
Expand Down
12 changes: 12 additions & 0 deletions math/matrix/inc/TMatrixT.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,19 @@ template<class Element> class TMatrixT : public TMatrixTBase<Element> {


enum {kWorkMax = 100};
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
enum EMatrixCreatorsOp1 { kZero,kUnit,kTransposed,kInverted,kAtA };
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
enum EMatrixCreatorsOp2 { kMult,kTransposeMult,kInvMult,kMultTranspose,kPlus,kMinus };

TMatrixT(): fDataStack(), fElements(nullptr) { }
Expand Down
12 changes: 12 additions & 0 deletions math/matrix/inc/TMatrixTSparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,19 @@ template<class Element> class TMatrixTSparse : public TMatrixTBase<Element> {

public:

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
enum EMatrixCreatorsOp1 { kZero,kUnit,kTransposed,kAtA };
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
enum EMatrixCreatorsOp2 { kMult,kMultTranspose,kPlus,kMinus };

TMatrixTSparse() { fElements = nullptr; fRowIndex = nullptr; fColIndex = nullptr; }
Expand Down
12 changes: 12 additions & 0 deletions math/matrix/inc/TMatrixTSym.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,19 @@ template<class Element> class TMatrixTSym : public TMatrixTBase<Element> {
public:

enum {kWorkMax = 100}; // size of work array
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
enum EMatrixCreatorsOp1 { kZero,kUnit,kTransposed,kInverted,kAtA };
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
enum EMatrixCreatorsOp2 { kPlus,kMinus };

TMatrixTSym() { fElements = nullptr; }
Expand Down
12 changes: 12 additions & 0 deletions tree/tree/inc/TBranch.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,19 @@ class TBranchIMTHelper; ///< A helper class for managing IMT work during TTree:F
const Int_t kDoNotProcess = BIT(10); // Active bit for branches
const Int_t kIsClone = BIT(11); // to indicate a TBranchClones
const Int_t kBranchObject = BIT(12); // branch is a TObject*
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
const Int_t kBranchAny = BIT(17); // branch is an object*
#if defined(__clang__)
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
const Int_t kMapObject = kBranchObject | kBranchAny;

namespace ROOT {
Expand Down