mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
refactor: fix clang-tidy warnings
Enable and fix bugprone-misplaced-widening-cast warning. Fix some modernize-macro-to-enum and readability-else-after-return warnings, but don't enable them. While the warnings can be useful, they are in general too noisy to enable.
This commit is contained in:
@@ -112,11 +112,13 @@
|
||||
#include "nvim/vim.h" // for curwin, strlen, STRLCPY, STRNCMP
|
||||
|
||||
// Result values. Lower number is accepted over higher one.
|
||||
#define SP_BANNED (-1)
|
||||
#define SP_RARE 0
|
||||
#define SP_OK 1
|
||||
#define SP_LOCAL 2
|
||||
#define SP_BAD 3
|
||||
enum {
|
||||
SP_BANNED = -1,
|
||||
SP_RARE = 0,
|
||||
SP_OK = 1,
|
||||
SP_LOCAL = 2,
|
||||
SP_BAD = 3,
|
||||
};
|
||||
|
||||
// First language that is loaded, start of the linked list of loaded
|
||||
// languages.
|
||||
|
Reference in New Issue
Block a user