Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Issue with "Create implem" snippet and ClangFormat
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Albinator
Starting Member

1 Posts

Posted - Nov 23 2022 :  06:24:12 AM  Show Profile  Reply with Quote
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)


feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 23 2022 :  11:14:14 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000