Skip to content

Commit

Permalink
Nitpicks from clang-tidy. [NFC]
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm authored and pcanal committed Sep 18, 2017
1 parent 51fb50a commit 353af50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tree/tree/inc/TBasket.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TBasket : public TKey {
// If (fIOBits & ~kSupported) is non-zero -- i.e., an unknown IO flag is set
// in the fIOBits -- then the zombie flag will be set for this object.
//
enum class EIOBits: Char_t {
enum class EIOBits : Char_t {
// The following to bits are reserved for now; when supported, set
// kSupported = kGenerateOffsetMap | kBasketClassMap
// kGenerateOffsetMap = BIT(1),
Expand All @@ -79,7 +79,7 @@ class TBasket : public TKey {
// changes that are not going go into a supported release.
//
// (kUnsupported | kSupported) should result in the '|' of all IOBits.
enum class EUnsupportedIOBits: Char_t { kUnsupported = 0 };
enum class EUnsupportedIOBits : Char_t { kUnsupported = 0 };
// The number of known, defined IOBits.
static constexpr int kIOBitCount = 0;

Expand Down
5 changes: 3 additions & 2 deletions tree/tree/test/TBasket.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ TEST(TBasket, IOBits)
static_cast<Int_t>(TBasket::EUnsupportedIOBits::kUnsupported),
(1 << static_cast<Int_t>(TBasket::kIOBitCount)) - 1);

EXPECT_EQ(
static_cast<Int_t>(TBasket::EIOBits::kSupported) & static_cast<Int_t>(TBasket::EUnsupportedIOBits::kUnsupported), 0);
EXPECT_EQ(static_cast<Int_t>(TBasket::EIOBits::kSupported) &
static_cast<Int_t>(TBasket::EUnsupportedIOBits::kUnsupported),
0);

TClass *cl = TClass::GetClass("TBasket");
ASSERT_NE(cl, nullptr);
Expand Down

0 comments on commit 353af50

Please sign in to comment.