Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct IntegerLiteralCheck {
// integer (wb), and can be a complex number ('i', 'j'). In MS compatibility
// mode, suffixes like i32 are supported.
static constexpr llvm::StringLiteral Suffixes =
llvm::StringLiteral("uUlLzZwWbBiIjJ");
llvm::StringLiteral("uUlLzZwWiIjJ");
};

struct FloatingLiteralCheck {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,12 @@ void integer_suffix() {
static_assert(is_same<decltype(v24), const unsigned long long>::value, "");
static_assert(v24 == 1, "");
}

void no_warning_on_hex_literals() {
int a = 0xa;
int b = 0xb;
int c = 0xc;
int d = 0xd;
int e = 0xe;
int f = 0xf;
}
Loading