Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Custom Root-Dir for Auto-Created Includes

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
Kastenfrosch Posted - Jul 05 2016 : 03:04:57 AM
Our code convention tells us to write includes relative to a common Directory.

As example for root dir "C:/MyProject/Components/":
C:/MyProject/Components/CompA/foo.cpp
C:/MyProject/Components/CompB/dir/bar.cpp

is refered to like:
#include "CompA/foo.cpp"
#include "CompB/dir/bar.cpp"

Would be cool to have an option to support this for the "Refactor->Add Include" Function.
4   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Sep 24 2018 : 2:30:54 PM
case=33851 is implemented in build 2291 -- see Add Include path on the Code Generation page of the VA Options dlg.
accord Posted - Jul 11 2016 : 1:45:50 PM
Unfortunately this setting doesn't work when there is no path at all because the header and the source are in the same directory:

case=33851
Kastenfrosch Posted - Jul 11 2016 : 07:29:04 AM
Hey accord!

Even when i change the
HKEY_CURRENT_USER\SOFTWARE\Whole Tomato\Visual Assist X\VANet14\AddIncludePreferShortestRelativePath value to 0, it still does not always pick the path from the root dir.

I made a minimal example (VS 2015 Update 3, VA_X 10.9.2102.0 built 2016.06.02)
https://www.dropbox.com/s/fnm1ibbjb8ekaji/MinimalIncludeTest2.zip

If i Open "CompA/SrcA.h" and Add Include for missing g_IntA2 (defined in "CompA/ScrA2.h"), i get an
#include "SrcA2.h" instead of "CompA/SrcA2.h"

Or did i misconfigure something?
accord Posted - Jul 05 2016 : 2:02:44 PM
I think this is what you would like to do:
http://docs.wholetomato.com/default.asp?W336

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