Home | History | Annotate | Download | only in c-family

Lines Matching refs:TAB_WIDTH

32 next_tab_stop (unsigned int vis_column, unsigned int tab_width)
34 vis_column = ((vis_column + tab_width) / tab_width) * tab_width;
51 unsigned int tab_width)
70 vis_column = next_tab_stop (vis_column, tab_width);
92 unsigned int tab_width)
111 vis_column = next_tab_stop (vis_column, tab_width);
165 unsigned int tab_width)
173 if (get_first_nws_vis_column (file, line, &line_vis_column, tab_width))
334 const unsigned int tab_width = global_dc->tabstop;
381 &guard_line_first_nws, tab_width))
441 &next_stmt_line_first_nws, tab_width))
445 &body_line_first_nws, tab_width))
449 &guard_line_first_nws, tab_width))
533 vis_column, tab_width))
669 const unsigned int tab_width = 8;
671 ASSERT_EQ (next_tab_stop (0, tab_width), 8);
672 ASSERT_EQ (next_tab_stop (1, tab_width), 8);
673 ASSERT_EQ (next_tab_stop (7, tab_width), 8);
675 ASSERT_EQ (next_tab_stop (8, tab_width), 16);
676 ASSERT_EQ (next_tab_stop (9, tab_width), 16);
677 ASSERT_EQ (next_tab_stop (15, tab_width), 16);
679 ASSERT_EQ (next_tab_stop (16, tab_width), 24);
680 ASSERT_EQ (next_tab_stop (17, tab_width), 24);
681 ASSERT_EQ (next_tab_stop (23, tab_width), 24);
690 const unsigned int tab_width,
704 &actual_first_nws, tab_width);
714 TAB_WIDTH, \
720 TAB_WIDTH, \
730 const unsigned int tab_width)
742 &actual_first_nws, tab_width);
749 TAB_WIDTH) \
753 TAB_WIDTH); \
774 const unsigned int tab_width = 8;
780 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 1, tab_width, 0, 0);
781 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 2, tab_width, 1, 1);
782 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 3, tab_width, 2, 2);
784 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 4, tab_width, 3, 2);
786 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 8, tab_width, 7, 2);
787 ASSERT_GET_VISUAL_COLUMN_FAILS (file, line, 9, tab_width);
793 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 1, tab_width, 0, 0);
794 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 2, tab_width, 8, 8);
795 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 3, tab_width, 9, 9);
797 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 4, tab_width, 10, 9);
799 ASSERT_GET_VISUAL_COLUMN_SUCCEEDS (file, line, 8, tab_width, 14, 9);
800 ASSERT_GET_VISUAL_COLUMN_FAILS (file, line, 9, tab_width);