mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 17:56:15 +08:00
[clang-tidy] Enclose macro arguments in ()
Found with bugprone-macro-parentheses Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
9507c3a159
commit
e45ae9df49
|
@ -222,7 +222,7 @@ static int builtin_generic(parser_t &parser, io_streams_t &streams, wchar_t **ar
|
|||
|
||||
// How many bytes we read() at once.
|
||||
// Since this is just for counting, it can be massive.
|
||||
#define COUNT_CHUNK_SIZE 512 * 256
|
||||
#define COUNT_CHUNK_SIZE (512 * 256)
|
||||
/// Implementation of the builtin count command, used to count the number of arguments sent to it.
|
||||
static int builtin_count(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
|
||||
UNUSED(parser);
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
#define INDENT_STEP 4u
|
||||
|
||||
/// The initial screen width.
|
||||
#define SCREEN_WIDTH_UNINITIALIZED -1
|
||||
#define SCREEN_WIDTH_UNINITIALIZED (-1)
|
||||
|
||||
/// A helper value for an invalid location.
|
||||
#define INVALID_LOCATION (screen_data_t::cursor_t(-1, -1))
|
||||
|
|
Loading…
Reference in New Issue
Block a user