Function: antlr-c++-mode-extra
antlr-c++-mode-extra is a byte-compiled function defined in
antlr-mode.el.gz.
Signature
(antlr-c++-mode-extra PHASE OPTION &rest DUMMIES)
Documentation
Warn if C++ option is used with the wrong language.
Ask user ("y or n"), if a C++ only option is going to be inserted but
antlr-language has not the value c++-mode.
Called in PHASE before-input, see antlr-options-alists.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-c++-mode-extra (phase option &rest _dummies)
;; checkdoc-params: (option dummies)
"Warn if C++ option is used with the wrong language.
Ask user \(\"y or n\"), if a C++ only option is going to be inserted but
`antlr-language' has not the value `c++-mode'.
Called in PHASE `before-input', see `antlr-options-alists'."
(and (eq phase 'before-input)
(not (eq antlr-language 'c++-mode))
(not (y-or-n-p (format "Insert C++ %s option? " option)))
(error "Didn't insert C++ %s option with language %s"
option (cadr (assq antlr-language antlr-language-alist)))))