vim-clang-format icon indicating copy to clipboard operation
vim-clang-format copied to clipboard

Last commits screwed up input

Open dirvine opened this issue 11 years ago • 2 comments

Since the last bunch of commits the system has become unstable on clangformat 3.4 3.5 on linux. I had to revert to an earlier commit 009df097b1952f28a88087c7602fd13a23c44c29 to get a working system again. Hope this helps

dirvine avatar Jul 28 '14 18:07 dirvine

@dirvine Thank you for your report. I reverted the commit as a first aid in cd4e2e4ff7dec827b71924ad20a54ef7cd2f8d45. Please check the problem is fixed in cd4e2e4ff7dec827b71924ad20a54ef7cd2f8d45.

Then I'll investigate a cause of this issue. Could you show me your vim-clang-format configuration in your .vimrc and the output of $ clang-format -version?

rhysd avatar Jul 29 '14 01:07 rhysd

No problem, thanks, that does work. I will try my other machine at work later on as well to check.

~/Devel/MaidSafe/buildclang [next] $ clang-format-3.5 --version Ubuntu clang-format version 3.5.0-svn213068-1~exp1 (trunk) (based on LLVM 3.5.0) ################vimrc#################### call vam#ActivateAddons(['github:rhysd/vim-clang-format']) let g:clang_format#auto_format = 0 let g:clang_format#auto_format_on_insert_leave = 0 " map to <Leader>cf in C++ code autocmd FileType c,cpp,objc nnoremap <Leader>cf :<C-u>ClangFormat<CR> autocmd FileType c,cpp,objc vnoremap <Leader>cf :ClangFormat<CR> let g:clang_format#style_options = { "AccessModifierOffset": -1, "ConstructorInitializerIndentWidth": 4, "AlignEscapedNewlinesLeft": "true", "AlignTrailingComments": "true", "AllowAllParametersOfDeclarationOnNextLine": "true", "AllowShortIfStatementsOnASingleLine": "false", "AllowShortLoopsOnASingleLine": "false", "AlwaysBreakTemplateDeclarations": "true", "AlwaysBreakBeforeMultilineStrings": "true", "BreakBeforeBinaryOperators": "false", "BreakConstructorInitializersBeforeComma": "false", "BinPackParameters": "true", "ColumnLimit": 100, "ConstructorInitializerAllOnOneLineOrOnePerLine": "true", "Cpp11BracedListStyle": "true", "DerivePointerBinding": "false", "ExperimentalAutoDetectBinPacking": "false", "IndentCaseLabels": "true", "MaxEmptyLinesToKeep": 3, "NamespaceIndentation": "None", "ObjCSpaceBeforeProtocolList": "false", "PenaltyBreakComment": 60, "PenaltyBreakString": 1000, "PenaltyBreakFirstLessLess": 120, "PenaltyExcessCharacter": 1000000, "PenaltyReturnTypeOnItsOwnLine": 200, "PointerBindsToType": "true", "SpacesBeforeTrailingComments": 2, "SpacesInParentheses": "false", "SpacesInAngles": "false", "SpaceInEmptyParentheses": "false", "SpacesInCStyleCastParentheses": "false", "SpaceAfterControlStatementKeyword": "true", "Standard": "Cpp11", "IndentWidth": 2, "UseTab": "false", "BreakBeforeBraces": "Attach", "IndentFunctionDeclarationAfterType": "true", "Language": "Cpp"}

############################

dirvine avatar Jul 29 '14 06:07 dirvine