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 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 antlr-cpp.
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-order: nil
"Warn if C++ option 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 `antlr-cpp'.
Called in PHASE `before-input', see `antlr-options-alists'."
(and (eq phase 'before-input)
(not (eq antlr-language 'antlr-cpp))
(not (y-or-n-p (format "Insert C++ %s option? " option)))
(error "Didn't insert Cpp %s option with language %s"
option antlr-language-mode-name)))