mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
*: Fix linter errors
Drops comments `// for …` that do not pass linter for them being unmaintainable and fast to becoming incomplete or even incorrect. Mention @dedmass
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#ifndef NVIM_DIGRAPH_H
|
#ifndef NVIM_DIGRAPH_H
|
||||||
#define NVIM_DIGRAPH_H
|
#define NVIM_DIGRAPH_H
|
||||||
|
|
||||||
#include "nvim/types.h" // for char_u
|
#include "nvim/types.h"
|
||||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
#include "nvim/ex_cmds_defs.h"
|
||||||
|
|
||||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||||
# include "digraph.h.generated.h"
|
# include "digraph.h.generated.h"
|
||||||
|
@@ -755,9 +755,9 @@ json_decode_string_cycle_start:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case '"': {
|
case '"': {
|
||||||
if (parse_json_string(
|
if (parse_json_string(buf, buf_len, &p, &stack, &container_stack,
|
||||||
buf, buf_len, &p, &stack, &container_stack,
|
&next_map_special, &didcomma, &didcolon)
|
||||||
&next_map_special, &didcomma, &didcolon) == FAIL) {
|
== FAIL) {
|
||||||
// Error message was already given
|
// Error message was already given
|
||||||
goto json_decode_string_fail;
|
goto json_decode_string_fail;
|
||||||
}
|
}
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
#include "nvim/os/time.h"
|
#include "nvim/os/time.h"
|
||||||
#include "nvim/pos.h"
|
#include "nvim/pos.h"
|
||||||
#include "nvim/eval/typval.h"
|
#include "nvim/eval/typval.h"
|
||||||
#include "nvim/buffer_defs.h" // for buf_T and win_T
|
#include "nvim/buffer_defs.h"
|
||||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
#include "nvim/ex_cmds_defs.h"
|
||||||
|
|
||||||
// flags for do_ecmd()
|
// flags for do_ecmd()
|
||||||
#define ECMD_HIDE 0x01 // don't free the current buffer
|
#define ECMD_HIDE 0x01 // don't free the current buffer
|
||||||
|
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
#include "nvim/eval/typval.h"
|
#include "nvim/eval/typval.h"
|
||||||
#include "nvim/ex_cmds.h"
|
#include "nvim/ex_cmds.h"
|
||||||
#include "nvim/ex_cmds_defs.h" // for exarg_T
|
#include "nvim/ex_cmds_defs.h"
|
||||||
#include "nvim/os/time.h" // for Timestamp
|
#include "nvim/os/time.h"
|
||||||
#include "nvim/regexp_defs.h" // for regmatch_T
|
#include "nvim/regexp_defs.h"
|
||||||
|
|
||||||
/* Values for nextwild() and ExpandOne(). See ExpandOne() for meaning. */
|
/* Values for nextwild() and ExpandOne(). See ExpandOne() for meaning. */
|
||||||
#define WILD_FREE 1
|
#define WILD_FREE 1
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
#ifndef NVIM_FOLD_H
|
#ifndef NVIM_FOLD_H
|
||||||
#define NVIM_FOLD_H
|
#define NVIM_FOLD_H
|
||||||
|
|
||||||
#include <stdio.h> // for FILE
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "nvim/pos.h"
|
#include "nvim/pos.h"
|
||||||
#include "nvim/garray.h" // for garray_T
|
#include "nvim/garray.h"
|
||||||
#include "nvim/types.h" // for char_u
|
#include "nvim/types.h"
|
||||||
#include "nvim/buffer_defs.h" // for win_T
|
#include "nvim/buffer_defs.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Info used to pass info about a fold from the fold-detection code to the
|
* Info used to pass info about a fold from the fold-detection code to the
|
||||||
|
@@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h> // for size_t
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "nvim/types.h"
|
#include "nvim/types.h"
|
||||||
#include "nvim/pos.h" // for linenr_T
|
#include "nvim/pos.h"
|
||||||
|
|
||||||
/// A block number.
|
/// A block number.
|
||||||
///
|
///
|
||||||
|
@@ -2,8 +2,8 @@
|
|||||||
#define NVIM_MOVE_H
|
#define NVIM_MOVE_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "nvim/buffer_defs.h" // for win_T
|
#include "nvim/buffer_defs.h"
|
||||||
#include "nvim/pos.h" // for linenr_T
|
#include "nvim/pos.h"
|
||||||
|
|
||||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||||
# include "move.h.generated.h"
|
# include "move.h.generated.h"
|
||||||
|
Reference in New Issue
Block a user