summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Toth <jonas.toth@gmail.com>2017-08-30 17:21:41 +0000
committerJonas Toth <jonas.toth@gmail.com>2017-08-30 17:21:41 +0000
commitbdefd0b859c715e65d76478bf818a6b9c7e18aff (patch)
tree12a6d2c39632baae3639a19b80fe3c74d625591c
parente3b018f6e5fc1f8558d3eb060184f42290d05cb0 (diff)
downloadbcm5719-llvm-bdefd0b859c715e65d76478bf818a6b9c7e18aff.tar.gz
bcm5719-llvm-bdefd0b859c715e65d76478bf818a6b9c7e18aff.zip
[clang-tidy] fix buildbot
Use `signed char` instead of `char`. llvm-svn: 312141
-rw-r--r--clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise.cpp b/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise.cpp
index 7905f966522..a5a0ea7f986 100644
--- a/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise.cpp
+++ b/clang-tools-extra/test/clang-tidy/hicpp-signed-bitwise.cpp
@@ -17,10 +17,10 @@ StreamClass &operator>>(StreamClass &os, int i) {
}
struct AnotherStream {
AnotherStream &operator<<(unsigned char c) { return *this; }
- AnotherStream &operator<<(char c) { return *this; }
+ AnotherStream &operator<<(signed char c) { return *this; }
AnotherStream &operator>>(unsigned char c) { return *this; }
- AnotherStream &operator>>(char c) { return *this; }
+ AnotherStream &operator>>(signed char c) { return *this; }
};
void binary_bitwise() {
@@ -47,8 +47,8 @@ void binary_bitwise() {
unsigned char UByte1 = 0u;
unsigned char UByte2 = 16u;
- char SByte1 = 0;
- char SByte2 = 16;
+ signed char SByte1 = 0;
+ signed char SByte2 = 16;
UByte1 = UByte1 & UByte2; // Ok
UByte1 = SByte1 & UByte2;
@@ -88,12 +88,12 @@ void binary_bitwise() {
}
void f1(unsigned char c) {}
-void f2(char c) {}
+void f2(signed char c) {}
void f3(int c) {}
void unary_bitwise() {
unsigned char UByte1 = 0u;
- char SByte1 = 0;
+ signed char SByte1 = 0;
UByte1 = ~UByte1; // Ok
SByte1 = ~UByte1;
@@ -164,7 +164,7 @@ void streams_should_work() {
AnotherStream as;
unsigned char uc = 1u;
- char sc = 1;
+ signed char sc = 1;
as << uc; // Ok
as << sc; // Ok
as >> uc; // Ok
OpenPOWER on IntegriCloud