Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Issue with "Create implem" snippet and ClangFormat

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Albinator Posted - Nov 23 2022 : 06:24:12 AM
With VS 2022 (17.4.1) and VAX 2022.4

Using the default create implementation snippet (I didn't changed it), with ClangFormat enabled, the braces are generated on the same line,
like this :
Class::Function() {}

instead of :
Class::Function()
{

}


This doesn't occurs when disabling ClangFormat (Tools>Options>C/C++>Code Style>Formating>Enable ClangFormat support).
Also, ClangFormat is setup to be triggered only at save ( and I can't ctrl+z the formating (it undo the whole implemetation creation), making me think of a visual assist bug (but maybe I missed an option ?)

(Just in case, here are my VS formation options)


1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 23 2022 : 11:14:14 AM
So far I cannot reproduce this here. Do you have a ".clang-format" file somewhere in your solution directory tree? I am assuming you do, if you are using clang format. If so, can you please post or send me the content of this file, so I can try using the same clang format settings here.

Also can you please export your VA and IDE settings and send them to me:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

I can then import them here and see if I can reproduce the problem.

Please send me the files via email:

[email protected]

including this thread ID or URL in the description, so we can match it up.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000