Data Structures | Macros | Functions
indent_c.c File Reference
#include <assert.h>
#include <inttypes.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"
#include "nvim/misc1.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/edit.h"
#include "nvim/indent.h"
#include "nvim/indent_c.h"
#include "nvim/mark.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/option.h"
#include "nvim/search.h"
#include "nvim/strings.h"

Data Structures

struct  cpp_baseclass_cache_T
 

Macros

#define FIND_NAMESPACE_LIM   20
 
#define BRACE_IN_COL0   1
 
#define BRACE_AT_START   2
 
#define BRACE_AT_END   3
 
#define LOOKFOR_INITIAL   0
 
#define LOOKFOR_IF   1
 
#define LOOKFOR_DO   2
 
#define LOOKFOR_CASE   3
 
#define LOOKFOR_ANY   4
 
#define LOOKFOR_TERM   5
 
#define LOOKFOR_UNTERM   6
 
#define LOOKFOR_SCOPEDECL   7
 
#define LOOKFOR_NOBREAK   8
 
#define LOOKFOR_CPP_BASECLASS   9
 
#define LOOKFOR_ENUM_OR_INIT   10
 
#define LOOKFOR_JS_KEY   11
 
#define LOOKFOR_COMMA   12
 

Functions

pos_Tfind_start_comment (int ind_maxcomment)
 
bool cin_is_cinword (char_u *line)
 
bool cin_islabel (void)
 
bool cin_iscase (char_u *s, bool strict)
 
bool cin_isscopedecl (char_u *s)
 
void parse_cino (buf_T *buf)
 
int get_c_indent (void)
 
void do_c_expr_indent (void)
 

Macro Definition Documentation

◆ BRACE_AT_END

#define BRACE_AT_END   3

◆ BRACE_AT_START

#define BRACE_AT_START   2

◆ BRACE_IN_COL0

#define BRACE_IN_COL0   1

◆ FIND_NAMESPACE_LIM

#define FIND_NAMESPACE_LIM   20

◆ LOOKFOR_ANY

#define LOOKFOR_ANY   4

◆ LOOKFOR_CASE

#define LOOKFOR_CASE   3

◆ LOOKFOR_COMMA

#define LOOKFOR_COMMA   12

◆ LOOKFOR_CPP_BASECLASS

#define LOOKFOR_CPP_BASECLASS   9

◆ LOOKFOR_DO

#define LOOKFOR_DO   2

◆ LOOKFOR_ENUM_OR_INIT

#define LOOKFOR_ENUM_OR_INIT   10

◆ LOOKFOR_IF

#define LOOKFOR_IF   1

◆ LOOKFOR_INITIAL

#define LOOKFOR_INITIAL   0

◆ LOOKFOR_JS_KEY

#define LOOKFOR_JS_KEY   11

◆ LOOKFOR_NOBREAK

#define LOOKFOR_NOBREAK   8

◆ LOOKFOR_SCOPEDECL

#define LOOKFOR_SCOPEDECL   7

◆ LOOKFOR_TERM

#define LOOKFOR_TERM   5

◆ LOOKFOR_UNTERM

#define LOOKFOR_UNTERM   6

Function Documentation

◆ cin_is_cinword()

bool cin_is_cinword ( char_u line)

◆ cin_iscase()

bool cin_iscase ( char_u s,
bool  strict 
)

◆ cin_islabel()

bool cin_islabel ( void  )

◆ cin_isscopedecl()

bool cin_isscopedecl ( char_u s)

◆ do_c_expr_indent()

void do_c_expr_indent ( void  )

◆ find_start_comment()

pos_T* find_start_comment ( int  ind_maxcomment)

◆ get_c_indent()

int get_c_indent ( void  )

◆ parse_cino()

void parse_cino ( buf_T buf)