Indexer: Variables defined inside anonymous namespace are not visible for indexer [message #1424646] |
Tue, 16 September 2014 08:15 |
Konrad Zagorski Messages: 2 Registered: September 2014 |
Junior Member |
|
|
Hi,
I'm using Eclipse Luna for quite a large c++ project.
Unfortunately I am encountering an issue with indexer - I found that symbols that are defined inside an anonymous namespace are not "visible" in the same file for indexer.
As a result whole file is red from fake errors, what is a bit irritating.
I searched the web for any info, but all I found was a very old bug, in which someone had similar issue.
Here's a small example:
// in the top of some .c file
namespace
{
NS1::NS2::LogCat logCategory = NS1::NS2::makeLogCategory( "CategoryName" );
}
void some_function()
{
LOG_MACRO(logCategory) << "log message";
}
- variable logCategory defined in an anonymous namespace,
- used in function inside a file,
- compilation's fine,
- indexer shouts that logCategory is not a correct symbol,
- everything works fine, when I declare the symbol outside of the anonymous namespace.
Is there a way to make indexer work correctly with variables declared inside an anonymous namespace?
Many thanks in advance,
Konrad
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03635 seconds