*: 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:
ZyX
2017-04-08 19:11:42 +03:00
parent dc9722326e
commit ab19fa1552
7 changed files with 18 additions and 18 deletions

View File

@@ -1,8 +1,8 @@
#ifndef NVIM_DIGRAPH_H
#define NVIM_DIGRAPH_H
#include "nvim/types.h" // for char_u
#include "nvim/ex_cmds_defs.h" // for exarg_T
#include "nvim/types.h"
#include "nvim/ex_cmds_defs.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "digraph.h.generated.h"

View File

@@ -755,9 +755,9 @@ json_decode_string_cycle_start:
break;
}
case '"': {
if (parse_json_string(
buf, buf_len, &p, &stack, &container_stack,
&next_map_special, &didcomma, &didcolon) == FAIL) {
if (parse_json_string(buf, buf_len, &p, &stack, &container_stack,
&next_map_special, &didcomma, &didcolon)
== FAIL) {
// Error message was already given
goto json_decode_string_fail;
}

View File

@@ -6,8 +6,8 @@
#include "nvim/os/time.h"
#include "nvim/pos.h"
#include "nvim/eval/typval.h"
#include "nvim/buffer_defs.h" // for buf_T and win_T
#include "nvim/ex_cmds_defs.h" // for exarg_T
#include "nvim/buffer_defs.h"
#include "nvim/ex_cmds_defs.h"
// flags for do_ecmd()
#define ECMD_HIDE 0x01 // don't free the current buffer

View File

@@ -3,9 +3,9 @@
#include "nvim/eval/typval.h"
#include "nvim/ex_cmds.h"
#include "nvim/ex_cmds_defs.h" // for exarg_T
#include "nvim/os/time.h" // for Timestamp
#include "nvim/regexp_defs.h" // for regmatch_T
#include "nvim/ex_cmds_defs.h"
#include "nvim/os/time.h"
#include "nvim/regexp_defs.h"
/* Values for nextwild() and ExpandOne(). See ExpandOne() for meaning. */
#define WILD_FREE 1

View File

@@ -1,12 +1,12 @@
#ifndef NVIM_FOLD_H
#define NVIM_FOLD_H
#include <stdio.h> // for FILE
#include <stdio.h>
#include "nvim/pos.h"
#include "nvim/garray.h" // for garray_T
#include "nvim/types.h" // for char_u
#include "nvim/buffer_defs.h" // for win_T
#include "nvim/garray.h"
#include "nvim/types.h"
#include "nvim/buffer_defs.h"
/*
* Info used to pass info about a fold from the fold-detection code to the

View File

@@ -3,10 +3,10 @@
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h> // for size_t
#include <stdlib.h>
#include "nvim/types.h"
#include "nvim/pos.h" // for linenr_T
#include "nvim/pos.h"
/// A block number.
///

View File

@@ -2,8 +2,8 @@
#define NVIM_MOVE_H
#include <stdbool.h>
#include "nvim/buffer_defs.h" // for win_T
#include "nvim/pos.h" // for linenr_T
#include "nvim/buffer_defs.h"
#include "nvim/pos.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "move.h.generated.h"