Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 #include listbox problem

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
Hexagonal Posted - Nov 28 2006 : 03:23:02 AM
VA 1539:

- turn on "Get content from default Intellisense option";
- type #include " and then press Ctrl+Space;
- you'll see list of all identifiers instead of file list;

I turn on "default intellisense" option because it can parse those structure/class fields that VA cannot, seemingly for lack of preprocessor support.

Can you integrate full preprocessor in VA? It's fast, and number of open sources is available in the net.

Simplified preprocessors cannot parse things such as "boost/preprocessor" constructions.
6   L A T E S T    R E P L I E S    (Newest First)
support Posted - Oct 29 2007 : 02:37:40 AM
case=4055 is fixed in Build 1614
Hexagonal Posted - Dec 23 2006 : 4:30:12 PM
Thanks!

quote:

I have put in a case for this macro code, so that we know about the problem. I am not sure when we will try to tackle this problem though.



Yes. It's better to wait for Microsoft to fix Intellisense enough.
feline Posted - Dec 11 2006 : 12:36:28 PM
I am seeing the same problem with #include lines, it only happens in VS2005, which is why I was unable to reproduce it before.

case=4055

I have put in a case for this macro code, so that we know about the problem. I am not sure when we will try to tackle this problem though.

case=4056
Hexagonal Posted - Dec 09 2006 : 5:28:25 PM
Now example related to preprocessor.

Surprisingly VA parses it well when default Intellisense is enabled, whether or not "get content from Intellise option" is set.

But Intellisense often crashes on my project, so I disabled it renaming FEACP.DLL

Without default Intellisense, VA cannot get fields of "s" structure. When I type "s." then Ctrl+Space, nothing happens.

Of course we cannot name this behaviour "bug", but only real preprocessor can parse constructions like boost/preprocessor's


#include <boost/preprocessor/seq/size.hpp>
#include <boost/preprocessor/seq/elem.hpp>
#include <boost/preprocessor/repeat.hpp>
#include <boost/preprocessor/tuple/elem.hpp>

//================================================================
//
// example macro
//
//================================================================

#define EXAMPLE__TYPE(elem) \  BOOST_PP_TUPLE_ELEM(2, 0, elem)

#define EXAMPLE__NAME(elem) \  BOOST_PP_TUPLE_ELEM(2, 1, elem)

//----------------------------------------------------------------

#define EXAMPLE__FOR_EACH(macro, container) \  BOOST_PP_REPEAT(BOOST_PP_SEQ_SIZE(container), macro, container)

//----------------------------------------------------------------

#define EXAMPLE__CREATE_FIELD_DECL_(elem) \  EXAMPLE__TYPE(elem) EXAMPLE__NAME(elem);

#define EXAMPLE__CREATE_FIELD_DECL(z, n, seq) \  EXAMPLE__CREATE_FIELD_DECL_(BOOST_PP_SEQ_ELEM(n, seq))

//----------------------------------------------------------------

#define EXAMPLE_CREATE(Name, params) \  \  struct Name \  { \    EXAMPLE__FOR_EACH(EXAMPLE__CREATE_FIELD_DECL, params) \  }

EXAMPLE_CREATE
(
  My_struct,
  ((int, A))
  ((float, B))
);

//================================================================
//
// my_func
//
//================================================================

void my_func(const My_struct& s)
{
}


Hexagonal Posted - Dec 09 2006 : 5:22:48 PM
first, about #include

IDE is Microsoft Visual Studio 2005 Professional
Version 8.0.50727.42 (RTM.050727-4200)

tried Visual Assist 1541, the same problem persist:

turn on "Get content from default Intellisense option", without this option it behaves normally

if you type only #in, then press Tab, you will see normal behaviour (list of files and dirs and so on)

but if you type #include "", then set the cursor inside "" and press Ctrl+Space, it will show all identifiers in project, like it does when you Ctrl+Space in empty line
feline Posted - Nov 28 2006 : 3:19:52 PM
Which IDE are you using? I cannot reproduce this problem with #include.

Preprocessor support, one answer is given here:
http://docs.wholetomato.com?W321

Can you give an example of code inside Boost that VA is not handling properly? If I can reproduce the problem I can then put a bug report in for it.

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