• Login
Community
  • Login

Function List shows function and macro calls

Scheduled Pinned Locked Moved General Discussion
6 Posts 4 Posters 2.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U
    Username0815
    last edited by Aug 24, 2018, 10:36 AM

    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?

    S 1 Reply Last reply Aug 24, 2018, 12:08 PM Reply Quote 1
    • S
      Scott Sumner @Username0815
      last edited by Aug 24, 2018, 12:08 PM

      @Username0815

      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.

      1 Reply Last reply Reply Quote 0
      • P
        PeterJones
        last edited by PeterJones Aug 24, 2018, 1:21 PM Aug 24, 2018, 1:19 PM

        @Scott-Sumner,

        I think @Username0815 was complaining about it treating the use of a function the same as the definition of a function:
        Imgur

        There are two functions in my example c program: main() and Test(). But the Function list shows 5 – two are the definitions of main() and Test(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.

        1 Reply Last reply Reply Quote 3
        • J
          Jim Dailey
          last edited by Aug 24, 2018, 1:39 PM

          @Username0815

          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.

          https://sourceforge.net/projects/tagsview/

          1 Reply Last reply Reply Quote 2
          • P
            PeterJones
            last edited by Aug 24, 2018, 1:40 PM

            Added bug report #4794 .

            1 Reply Last reply Reply Quote 1
            • U
              Username0815
              last edited by Aug 27, 2018, 5:35 AM

              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.dll

              Hope that helps.

              1 Reply Last reply Reply Quote 1
              5 out of 6
              • First post
                5/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors