Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Find all references includes std namespaces

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
jensa Posted - Oct 22 2012 : 06:50:46 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Oct 22 2012 : 11:40:54 AM
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?
accord Posted - Oct 22 2012 : 11:14:58 AM
Can you please give me an example std::functionname which I can use to reproduce the problem?

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