Function: semantic-default-c-setup

semantic-default-c-setup is an autoloaded and byte-compiled function defined in c.el.gz.

Signature

(semantic-default-c-setup)

Documentation

Set up a buffer for semantic parsing of the C language.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/c.el.gz
;;;###autoload
(defun semantic-default-c-setup ()
  "Set up a buffer for semantic parsing of the C language."
  (semantic-c-by--install-parser)
  (setq semantic-lex-syntax-modifications '((?> ".")
                                            (?< ".")))

  (setq semantic-lex-analyzer #'semantic-c-lexer)
  (add-hook 'semantic-lex-reset-functions #'semantic-lex-spp-reset-hook nil t)
  (when (derived-mode-p 'c++-mode)
    (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__cplusplus" . "")))
  )