%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/progmodes/ |
Current File : //usr/local/share/emacs/27.2/lisp/progmodes/cwarn.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311\312\313&\210\314\315\316\317\320\321\312\305&\210\314\322\323\324\320\325\312\305&\210\314\326\327\330\312\305\320\331&\210\314\332\333\334\335\336\312\305\320\337& \210\314\340\306\341\335\342\312\305\320\343& \207" [require custom font-lock cc-mode custom-declare-group cwarn nil "Highlight suspicious C and C++ constructions." :version "21.1" :group faces custom-declare-variable cwarn-configuration '((c-mode (not reference)) (c++-mode t)) "List of items each describing which features are enable for a mode.\nEach item is on the form (mode featurelist), where featurelist can be\non one of three forms:\n\n* A list of enabled features.\n* A list starting with the atom `not' followed by the features\n which are not enabled.\n* The atom t, that represent that all features are enabled.\n\nSee variable `cwarn-font-lock-feature-keywords-alist' for available\nfeatures." :type (repeat sexp) cwarn-font-lock-feature-keywords-alist '((assign . cwarn-font-lock-assignment-keywords) (semicolon . cwarn-font-lock-semicolon-keywords) (reference . cwarn-font-lock-reference-keywords)) "An alist mapping a CWarn feature to font-lock keywords.\nThe keywords could either a font-lock keyword list or a symbol.\nIf it is a symbol it is assumed to be a variable containing a font-lock\nkeyword list." (alist :key-type (choice (const assign) (const semicolon) (const reference)) :value-type (sexp :tag "Value")) cwarn-verbose t "When nil, CWarn mode will not generate any messages.\n\nCurrently, messages are generated when the mode is activated and\ndeactivated." boolean cwarn-mode-text " CWarn" "String to display in the mode line when CWarn mode is active.\n\n(When the string is not empty, make sure that it has a leading space.)" :tag "CWarn mode text" string cwarn-load-hook "Functions to run when CWarn mode is first loaded." "Load Hook" hook] 10) #@89 Non-nil if Cwarn mode is enabled. Use the command `cwarn-mode' to change this variable. (defvar cwarn-mode nil (#$ . 2335)) (make-variable-buffer-local 'cwarn-mode) #@534 Minor mode that highlights suspicious C and C++ constructions. If called interactively, enable Cwarn mode if ARG is positive, and disable it if ARG is zero or negative. If called from Lisp, also enable the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'; disable the mode otherwise. Suspicious constructs are highlighted using `font-lock-warning-face'. Note, in addition to enabling this minor mode, the major mode must be included in the variable `cwarn-configuration'. By default C and C++ modes are included. (defalias 'cwarn-mode #[(&optional arg) "\304 \305=\203 \n?\202 \306 !\307V\310\n!\210\311 \210\312\313\n\203% \314\202&