mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +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:
@@ -169,13 +169,12 @@ Decoration get_decor(mtkey_t mark)
|
||||
{
|
||||
if (mark.decor_full) {
|
||||
return *mark.decor_full;
|
||||
} else {
|
||||
Decoration fake = DECORATION_INIT;
|
||||
fake.hl_id = mark.hl_id;
|
||||
fake.priority = mark.priority;
|
||||
fake.hl_eol = (mark.flags & MT_FLAG_HL_EOL);
|
||||
return fake;
|
||||
}
|
||||
Decoration fake = DECORATION_INIT;
|
||||
fake.hl_id = mark.hl_id;
|
||||
fake.priority = mark.priority;
|
||||
fake.hl_eol = (mark.flags & MT_FLAG_HL_EOL);
|
||||
return fake;
|
||||
}
|
||||
|
||||
/// @return true if decor has a virtual position (virtual text or ui_watched)
|
||||
|
Reference in New Issue
Block a user