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
 Find all references includes std namespaces
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jensa
Junior Member

14 Posts

Posted - Oct 22 2012 :  06:50:46 AM  Show Profile  Reply with Quote
When I use the find all references function to search for usage of a symbol in my project, I get a lot of false positives because the search does seems to consider matches in the std:: namespace as a match:
namespace A
{
void function();
}

namespace B
{
void function();
}

void foo()
{
A::function();
}

Now clicking on function in foo and selecting Find all references from the context menu correctly shows the declaration in line 3 but additionally all places where I use std::function in my code.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 22 2012 :  11:14:58 AM  Show Profile  Reply with Quote
Can you please give me an example std::functionname which I can use to reproduce the problem?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 22 2012 :  11:40:54 AM  Show Profile  Reply with Quote
I've created a sample test code to see if I understand your question correctly:

namespace A
{
	void function();
	void atan2(double x, double y);
}

namespace B
{
	void function();
}

void foo()
{
	A::function();
	std::atan2(1.0, 2.0);
	A::atan2(1.0, 2.0);
}


When I run find references on A::atan2, I don't have std::atan2 in the list. Do you see different result with this code?

Edited by - accord on Oct 22 2012 11:43:07 AM
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