Merge pull request #5925 from ligfx/fixlinterrors
Tools/lint.sh: lint all of Source, not just Core
This commit is contained in:
commit
1b2751d3dc
|
@ -71,21 +71,21 @@ TEST(BitUtils, IsValidLowMask)
|
|||
|
||||
EXPECT_TRUE(Common::IsValidLowMask((u8)~0b0));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u8)(~0b0 - 1)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u8)~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u8) ~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u8)(~((u8)(~0b0) >> 1) | 0b1111)));
|
||||
|
||||
EXPECT_TRUE(Common::IsValidLowMask((u16)~0b0));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u16)(~0b0 - 1)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u16)~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u16) ~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u16)(~((u16)(~0b0) >> 1) | 0b1111)));
|
||||
|
||||
EXPECT_TRUE(Common::IsValidLowMask((u32)~0b0));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u32)(~0b0 - 1)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u32)~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u32) ~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u32)(~((u32)(~0b0) >> 1) | 0b1111)));
|
||||
|
||||
EXPECT_TRUE(Common::IsValidLowMask((u64)~0b0));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u64)(~0b0 - 1)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u64)~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u64) ~(0b10000)));
|
||||
EXPECT_FALSE(Common::IsValidLowMask((u64)(~((u64)(~0b0) >> 1) | 0b1111)));
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ for f in ${modified_files}; do
|
|||
if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then
|
||||
continue
|
||||
fi
|
||||
if ! echo "${f}" | egrep -q "^Source/Core"; then
|
||||
if ! echo "${f}" | egrep -q "^Source"; then
|
||||
continue
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue