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
 Code inspection Parsing Skipped
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JFD
New Member

Belgium
6 Posts

Posted - Jun 30 2020 :  03:46:41 AM  Show Profile  Reply with Quote
Hello,
There is a long time I'm using visual assist and I would like to use the new functionality "Code Inspection".
When I try to inspect my code, I have no results and I can see in REsult window the message "Parsing skipped ...".
I'm under VS2010, my code is standard C++ (no /clr, ...)
Do you habve an idea of the reason of this "not parsed" file?

JF

feline
Whole Tomato Software

United Kingdom
16732 Posts

Posted - Jun 30 2020 :  05:27:58 AM  Show Profile  Reply with Quote
What file extensions are you seeing this in?

What happens if you create a new, default C++ solution? I have just created a new, default C++ Win32 console application, and added the following function to the main cpp file:

// redundant parameter
static void testRedundantChecks(void)
{
	for(int nScan = 1; nScan < 10; ++nScan)
	{
		continue;  // redundant continue
	}

	return; // redundant return
}

code inspection is picking up 3 issues in this function, as listed by the comments. Do you get the same results on your system?

zen is the art of being at one with the two'ness
Go to Top of Page

JFD
New Member

Belgium
6 Posts

Posted - Jun 30 2020 :  05:46:22 AM  Show Profile  Reply with Quote
it works in new project, ... , I have advice in code inspection result.
It s just in my actual project (a big one 600000 code line) that I have parsing skipped but I don't know why and I don't see how to "force" a parsing

Edited by - JFD on Jun 30 2020 06:39:16 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
16732 Posts

Posted - Jun 30 2020 :  11:26:05 AM  Show Profile  Reply with Quote
There is no force parse button, the parsing should be happening automatically.

What directory is your main solution located in?

If you go to:

VA Options -> C/C++ Directories

and look at the list of directories, does this directory list overlap with the directories your solution sits in? If VA thinks that your project is a stable system library then it won't attempt to scan for Code Inspection.

zen is the art of being at one with the two'ness
Go to Top of Page

JFD
New Member

Belgium
6 Posts

Posted - Jul 01 2020 :  01:16:52 AM  Show Profile  Reply with Quote
The directory of the cpp file is not directly in the list, but well his parent (in mode project defined).
but the folder of the parent is not in VC++ Directories of the project in VS.
I tired to change the platform to custom (and restart VS) but I still have the problem : Parsing Skipped

Go to Top of Page

JFD
New Member

Belgium
6 Posts

Posted - Jul 01 2020 :  01:20:52 AM  Show Profile  Reply with Quote
I found the solution, the parent folder was in "include Directories", I removed from this list and my file is parsed.
Thanks for help
Go to Top of Page

JFD
New Member

Belgium
6 Posts

Posted - Jul 01 2020 :  01:52:00 AM  Show Profile  Reply with Quote
SO now I have an other problem.
In mmy solution I have different project in different folder.
C:\Pgm\FD1\Project1
C:\Pgm\FD2\Project2
I added in the include dir (from VS) the dir "c:\Pgm", so I'm able to do include "FD2/Project"
If I do so, I have the message "Parsing Skipped" in project FD1, because FD1 is in Pgm folder too.
I can't use ..\FD2, because it s a very big project so I must use the father in include dir.
Do you know a solution to use the parent folder in include but have the parse too? (I tried custom withjout any dir but it doesn't work.)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
16732 Posts

Posted - Jul 01 2020 :  04:40:19 AM  Show Profile  Reply with Quote
How have you set these include directories?

In the Visual Studio 2010 Project Properties you can set include directories via either:

Project properties -> C/C++ -> General -> Additional Include Directories

which is for general include directories, or

Project properties -> VC++ Directories -> Include Directories

directories listed here will be treated by VA as stable 3rd party library code, so probably not parsed by Code Inspection either.

zen is the art of being at one with the two'ness
Go to Top of Page

JFD
New Member

Belgium
6 Posts

Posted - Jul 01 2020 :  05:11:14 AM  Show Profile  Reply with Quote
thanks for the information, it works
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
16732 Posts

Posted - Jul 01 2020 :  06:06:35 AM  Show Profile  Reply with Quote
The include directory settings in Visual Studio can be a little confusing, until you know that the include paths are treated slightly differently. I am glad this is now working well for you.

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:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000