Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic result is wrong for C++ function declaration with override attribute #1400

Open
fperies opened this issue Sep 8, 2020 · 0 comments

Comments

@fperies
Copy link

fperies commented Sep 8, 2020

Hello,

I've opened the same issue in Spacemacs project but I've been redirected to Rtags project. Here are the details:

Description :octocat:
Semantic result is wrong for C++ function declaration with override attribute
It reports a variable definition with override as variable name instead of a function declaration !

Reproduction guide 🐞
Start Emacs
Open a C++ header file with function declarations with override attribute
Invoke command helm-jump-in-buffer
Observed behaviour: 👀 💔
It reports the following:
Variables : int override

image

Expected behaviour: ❤️ 😄
It should report something like:
Functions: functionName() [override]

image

System Info 💻
OS: gnu/linux
Emacs: 27.1
Spacemacs: 0.300.0
Spacemacs branch: develop (rev. 39df5e2)
Graphic display: t
Distribution: spacemacs
Editing style: emacs
Completion: helm
Layers:
(asciidoc
(auto-completion :variables auto-completion-use-company-box t)
(c-c++ :variables c-c++-default-mode-for-headers 'c++-mode)
(c-c++ :variables c-c++-enable-clang-format-on-save t)
(c-c++ :variables c-c++-backend 'rtags)
(c-c++ :variables c-c++-lsp-enable-semantic-highlight 't)
cmake csv fzf emacs-lisp git helm html ibuffer imenu-list javascript lua markdown
(multiple-cursors :variables multiple-cursors-backend 'mc)
org
(plantuml :variables plantuml-jar-path "~/plantuml.jar")
python treemacs semantic syntax-checking themes-megapack)
System configuration features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS JSON PDUMPER GMP
Backtrace 🐾
N.A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant