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 /* '{' is in column 0 */
 
#define BRACE_AT_START   2 /* '{' is at start of line */
 
#define BRACE_AT_END   3 /* '{' is at end of line */
 
#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)
 
int cin_islabel (void)
 
int cin_iscase (char_u *s, int strict)
 
int 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

#define BRACE_AT_END   3 /* '{' is at end of line */
#define BRACE_AT_START   2 /* '{' is at start of line */
#define BRACE_IN_COL0   1 /* '{' is in column 0 */
#define FIND_NAMESPACE_LIM   20
#define LOOKFOR_ANY   4
#define LOOKFOR_CASE   3
#define LOOKFOR_COMMA   12
#define LOOKFOR_CPP_BASECLASS   9
#define LOOKFOR_DO   2
#define LOOKFOR_ENUM_OR_INIT   10
#define LOOKFOR_IF   1
#define LOOKFOR_INITIAL   0
#define LOOKFOR_JS_KEY   11
#define LOOKFOR_NOBREAK   8
#define LOOKFOR_SCOPEDECL   7
#define LOOKFOR_TERM   5
#define LOOKFOR_UNTERM   6

Function Documentation

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