notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Function List doesn't show functions with C++ Builder keywords

Open
#15,223 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Is there an existing issue for this?
  • I have searched the existing issues
Description of the Issue

C++ functions with keywords:

  • __fastcall
  • _export
  • __export
  • WINAPI
  • __stdcall
  • __declspec
    and others...
Steps To Reproduce
  1. Create a new C source file, foo.cpp.
  2. Write the simplest function which returns boolean true.
  3. Save the file and make sure that function list shows new record.
  4. Add __export keyword before function name.
  5. Save the file and check function list again. There are no any records again.
Current Behavior

Functions with optional C++ (Builder) keywords are not showing in the list

Expected Behavior

Functions list should parse these keywords

Debug Information
Notepad++ v8.6.7   (64-bit)
Build time : May 12 2024 - 20:04:00
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "d:\projects\graphit_dev\core\environment.cpp"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.4046
Current ANSI codepage : 1251
Plugins : 
    GitSCM (1.4.8.2)
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
    NppXmlTreeviewPlugin (2)
    XMLTools (3.1.1.13)
Anything else?

notepad_func_list_bug

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a saved foo.cpp containing a function preceded by __export, then trace the Function List handling for C++ declarations and the listed keywords. Done means functions using __fastcall, _export, __export, WINAPI, __stdcall, __declspec, and similar keywords appear in the Function List.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.