diff options
Diffstat (limited to 'src/nvim/indent_c.c')
-rw-r--r-- | src/nvim/indent_c.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c index c140d468d8..a660c9dead 100644 --- a/src/nvim/indent_c.c +++ b/src/nvim/indent_c.c @@ -9,12 +9,11 @@ #include "nvim/charset.h" #include "nvim/cursor.h" #include "nvim/edit.h" -#include "nvim/func_attr.h" #include "nvim/globals.h" #include "nvim/indent.h" #include "nvim/indent_c.h" #include "nvim/macros_defs.h" -#include "nvim/mark.h" +#include "nvim/mark_defs.h" #include "nvim/memline.h" #include "nvim/memory.h" #include "nvim/option.h" @@ -24,6 +23,7 @@ #include "nvim/search.h" #include "nvim/state_defs.h" #include "nvim/strings.h" +#include "nvim/types_defs.h" #include "nvim/vim_defs.h" // Find result cache for cpp_baseclass @@ -3105,8 +3105,8 @@ int get_c_indent(void) } else { // Found first unterminated line on a row, may // line up with this line, remember its indent - // 100 + // NOLINT(whitespace/tab) - // -> here; // NOLINT(whitespace/tab) + // 100 + + // -> here; l = get_cursor_line_ptr(); amount = cur_amount; @@ -3655,7 +3655,7 @@ static int find_match(int lookfor, linenr_T ourscope) if (cin_iselse(look)) { mightbeif = cin_skipcomment(look + 4); if (!cin_isif(mightbeif)) { - elselevel++; // NOLINT(readability/braces) + elselevel++; } continue; } @@ -3670,7 +3670,7 @@ static int find_match(int lookfor, linenr_T ourscope) // If it's an "if" decrement elselevel look = cin_skipcomment(get_cursor_line_ptr()); if (cin_isif(look)) { - elselevel--; // NOLINT(readability/braces) + elselevel--; // When looking for an "if" ignore "while"s that // get in the way. if (elselevel == 0 && lookfor == LOOKFOR_IF) { |