Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 253 forks source link

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

Open fperies opened 4 years ago

fperies commented 4 years ago

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.