SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: olegk on June 15, 2012, 05:51:00 am

Title: Slickedit 2011 vs C++ anonymous namespaces
Post by: olegk on June 15, 2012, 05:51:00 am
Is there any way to Tag functions and vars in anonymous namespace (e.g. "namespace { int foo () {...} }")? - is it a known bug?

Thanks


Title: Re: Slickedit 2011 vs C++ anonymous namespaces
Post by: Dennis on June 15, 2012, 07:48:18 pm
That should just work, provided your source file is correctly recognized as C/C++.  What language mode does it show on the Document menu?

Note that symbols in anonymous namespaces are treated as static symbols, so if you are trying to search for references to a symbol in an anonymous namespace from another file, it won't be found because the search is restricted to the file the symbol is defined in.  Don't tell me you are putting anonymous namespaces in header files.