Author Topic: Slickedit 2011 vs C++ anonymous namespaces  (Read 2670 times)

olegk

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Slickedit 2011 vs C++ anonymous namespaces
« 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



Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3725
  • Hero Points: 490
Re: Slickedit 2011 vs C++ anonymous namespaces
« Reply #1 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.