Emacs uses auto-complete-clang to autocomplete, it shows an invalid member function

I use emacs24.1 and auto-complete-clang to complete the C ++ syntax, but when I run the autocomplete action, droplist contains an invalid member function that is not specified in the structure. How can i avoid this? My init.el defines about auto-complete-clang.el

(add-to-list 'load-path "/root/.emacs.d/plugins/auto-complete-1.3.1") (require 'auto-complete) (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "/root/.emacs.d/plugins/ac-dict") (ac-config-default) ;;start after 3 characters were typed (setq ac-auto-start 3) ;;show menu immediately (setq ac-auto-show-menu 0.3) 

Yes, I know that the constructor, destructor and operator = are by default, but I still don’t want them to be shown, because I did not specify their declared ones.

enter image description here

+4
source share
1 answer

When you say "invalid member function", do you refer to userInfo, ~ userInfo and operator =?

This is the default constructor, destructor, and assignment operator, respectively. Each class will have one. They are not invalid. In fact, they are required, and if you do not provide them, the compiler will generate standard ones. For more documentation on this, see http://cartan.cas.suffolk.edu/oopdocbook/opensource/derivedcdas.html

It may not be a good idea to crush these members, because they are still reasonable refinements.

+2
source

Source: https://habr.com/ru/post/1444709/


All Articles