Function List shows function and macro calls
-
The Function List for C seems to not work correctly, as it shows a construct like
if (Test())
{
//do some stuff
}as a function. If my mind doesnt play tricks on me it didn’t behave like that a few months back or was something like that always wrongly matched?
-
Unclear what you are talking about. If you are talking about Test(), well, then I agree with the Function List as that sure looks like a C function to me.
-
I think @Username0815 was complaining about it treating the use of a function the same as the definition of a function:
There are two functions in my example c program: main() and Test(). But the Function list shows 5 – two are the definitions of
main()
andTest(int x)
, and three are calling the Test() function with various arguments. In my experience with Function List (which I admit, I don’t use often), I expect it to just show the definitions (and possibly declarations), but not every instance of calling the function.That said, my installation of Notepad++ is v7.5.6, so this behavior has been around for more than “a few months”.
Notepad++ v7.5.6 (32-bit) Build time : Mar 19 2018 - 00:26:59 Path : C:\Program Files (x86)\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 10 (64-bit) Plugins : ComparePlugin.dll dbgpPlugin.dll DSpellCheck.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll NppFTP.dll PluginManager.dll PreviewHTML.dll PythonScript.dll XMLTools.dll
@Username0815, could you provide your ? > Debug Info… > Copy debug info to clipboard… that will help define a range of versions where it’s happening.
-
You should try out the TagsView plug-in. It does most (if not all) of what the function list does, and it does a lot more.
-
Added bug report #4794.
-
Notepad++ v7.5.8 (64-bit)
Build time : Jul 23 2018 - 02:06:36
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dllHope that helps.