We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2600c22 commit ff83982Copy full SHA for ff83982
t/clang_format_spec.vim
@@ -313,6 +313,31 @@ describe ':ClangFormat'
313
end
314
315
316
+
317
+ describe 'hard tab'
318
319
+ before
320
+ let g:clang_format#detect_style_file = 0
321
+ let s:saved_expandtab = &expandtab
322
+ let s:saved_shiftwidth = &shiftwidth
323
+ set noexpandtab shiftwidth=8
324
+ new
325
+ execute 'silent' 'edit!' './'.s:root_dir.'t/test.cpp'
326
+ end
327
328
+ after
329
+ let &expandtab = s:saved_expandtab
330
+ let &shiftwidth = s:saved_shiftwidth
331
332
333
+ it 'does not break formatting'
334
+ let by_clang_format_command = ClangFormat(1, line('$'), 'test.cpp')
335
+ ClangFormat
336
+ let buffer = GetBuffer()
337
+ Expect by_clang_format_command ==# buffer
338
339
340
341
342
" }}}
343
0 commit comments