Community
    • Login

    Function List shows function and macro calls

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 4 Posters 2.8k Views 4 Watching
    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.
    • Username0815U Offline
      Username0815
      last edited by

      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?

      Scott SumnerS 1 Reply Last reply Reply Quote 1
      • Scott SumnerS Offline
        Scott Sumner @Username0815
        last edited by

        @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
        • PeterJonesP Offline
          PeterJones
          last edited by PeterJones

          @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
          • Jim DaileyJ Offline
            Jim Dailey
            last edited by

            @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
            • PeterJonesP Offline
              PeterJones
              last edited by

              Added bug report #4794.

              1 Reply Last reply Reply Quote 1
              • Username0815U Offline
                Username0815
                last edited by

                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors