MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.117.158.174
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/progmodes/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/progmodes/cwarn.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:22 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/progmodes/cwarn.el
;;; in Emacs version 24.3.1
;;; 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 (#$ . 2485))
(make-variable-buffer-local 'cwarn-mode)
#@451 Minor mode that highlights suspicious C and C++ constructions.

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.

With a prefix argument ARG, enable the mode if ARG is positive,
and disable it otherwise.  If called from Lisp, enable the mode
if ARG is omitted or nil.
(defalias 'cwarn-mode #[(&optional arg) "\304 	\305=\203\n?\202\306	!\307V\310\n!\210\203\311 \210\312\313\n\203)\314\202*\315\"\210\316\317!\203K\304 \203>\304 \232\203K\320\321\n\203H\322\202I\323\"\210)\324 \210\n\207" [#1=#:last-message arg cwarn-mode font-lock-mode current-message toggle prefix-numeric-value 0 cwarn-font-lock-keywords font-lock-fontify-buffer run-hooks cwarn-mode-hook cwarn-mode-on-hook cwarn-mode-off-hook called-interactively-p any message "Cwarn mode %sabled" "en" "dis" force-mode-line-update] 3 (#$ . 2657) (list (or current-prefix-arg 'toggle))])
(byte-code "\301\302\303\304\300!\205\n\305\211%\210\306\307\302\305#\210\310\307\302\311#\207" [cwarn-mode-map add-minor-mode cwarn-mode cwarn-mode-text boundp nil defalias turn-on-cwarn-mode make-obsolete "24.1"] 6)
#@272 Non-nil if CWarn FEATURE is enabled for MODE.
FEATURE is an atom representing one construction to highlight.

Check if any feature is enabled for MODE if no feature is specified.

The valid features are described by the variable
`cwarn-font-lock-feature-keywords-alist'.
(defalias 'cwarn-is-enabled #[(mode &optional feature) "	\236\211\205*?\206*\nA@\211\305=\206)\f\242\306=\203&\fA>?\202)\f>))\207" [mode cwarn-configuration mode-configuration feature list-or-t t not] 3 (#$ . 3929)])
#@47 True if point is inside a C macro definition.
(defalias 'cwarn-inside-macro #[nil "\212\300 \210`SSf\301=\203\302y\210\202\303 \210\304f)\305=\207" [beginning-of-line 92 -1 back-to-indentation nil 35] 2 (#$ . 4434)])
#@87 Install/remove keywords into current buffer.
If ADDP is non-nil, install else remove.
(defalias 'cwarn-font-lock-keywords #[(addp) "\306\211\2057\n@\211@	A<\204J\307
\f\"\203.\n\203)\310\202*\311\306\"\210*\nA\211\204\306*\207" [cwarn-font-lock-feature-keywords-alist pair --dolist-tail-- keywords feature major-mode nil cwarn-is-enabled font-lock-add-keywords font-lock-remove-keywords addp] 4 (#$ . 4661)])
#@34 Match RE but only if BODY holds.
(defalias 'cwarn-font-lock-match '(macro . #[(re &rest body) "\302\303\304\305\306\307\310\311BBE\312\307\313\314\315\316\317\320	BD\321BBBEEED\322BBB\207" [re body let ((res nil)) while progn setq res re-search-forward (limit t) and save-excursion (when (match-beginning 1) (goto-char (match-beginning 1))) condition-case nil not save-match-data ((error t)) (res)] 14 (#$ . 5096)]))
(defconst cwarn-font-lock-assignment-keywords '((cwarn-font-lock-match-assignment-in-expression (1 font-lock-warning-face))))
#@39 Match assignments inside expressions.
(defalias 'cwarn-font-lock-match-assignment-in-expression #[(limit) "\302\303\304	\305#\211\203\212\306\224\203\306\224b\210\302\307\310\217)\204)\207" [res limit nil re-search-forward "[^!<>=]\\(\\([-+*/%&^|]\\|<<\\|>>\\)?=\\)[^=]" t 1 (byte-code "\301 \302\216\303\304!\210g\305>\205 \306\307x\210\310\307x\210\311 \206\312\313!?*?\207" [save-match-data-internal match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) backward-up-list 1 (40 91) " " nil "a-zA-Z0-9_" c-at-toplevel-p looking-at "for\\>"] 2) ((error t))] 5 (#$ . 5646)])
(defconst cwarn-font-lock-semicolon-keywords '((cwarn-font-lock-match-dangerous-semicolon (0 font-lock-warning-face))))
#@134 Match semicolons directly after `for', `while', and `if'.
The semicolon after a `do { ... } while (x);' construction is not matched.
(defalias 'cwarn-font-lock-match-dangerous-semicolon #[(limit) "\302\303\304	\305#\211\203\212\306\224\203\306\224b\210\302\307\310\217)\204)\207" [res limit nil re-search-forward ";" t 1 (byte-code "\301 \302\216\303\304!\210\305\306!\206\305\307!\205\310\311\312\217*?\207" [save-match-data-internal match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) backward-sexp 2 looking-at "\\(for\\|if\\)\\>" "while\\>" nil (byte-code "\300\301!\210\302\303!?\207" [backward-sexp 2 looking-at "do\\>"] 2) ((error t))] 3) ((error t))] 5 (#$ . 6403)])
(defconst cwarn-font-lock-reference-keywords '((cwarn-font-lock-match-reference (1 font-lock-warning-face))))
#@49 Font-lock matcher for C++ reference parameters.
(defalias 'cwarn-font-lock-match-reference #[(limit) "\302\303\304	\305#\211\203\212\306\224\203\306\224b\210\302\307\310\217)\204)\207" [res limit nil re-search-forward "[^&]\\(&\\)[^&=]" t 1 (byte-code "\301 \302\216\303\304!\210g\305=\205\306 ?\205\307 *?\207" [save-match-data-internal match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) backward-up-list 1 40 cwarn-inside-macro c-at-toplevel-p] 2) ((error t))] 5 (#$ . 7253)])
#@158 Turn on CWarn mode in the current buffer if applicable.
The mode is turned if some feature is enabled for the current
`major-mode' in `cwarn-configuration'.
(defalias 'turn-on-cwarn-mode-if-enabled #[nil "\301!\205	\302\303!\207" [major-mode cwarn-is-enabled cwarn-mode 1] 2 (#$ . 7799)])
(defvar cwarn-mode-major-mode nil)
(byte-code "\300\301!\210\302\303\304\305\306\307\310\311\312\313\314\315&\207" [make-variable-buffer-local cwarn-mode-major-mode custom-declare-variable global-cwarn-mode nil "Non-nil if Global-Cwarn mode is enabled.\nSee the command `global-cwarn-mode' for a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `global-cwarn-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :group cwarn :type boolean] 12)
#@326 Toggle Cwarn mode in all buffers.
With prefix ARG, enable Global-Cwarn mode if ARG is positive;
otherwise, disable it.  If called from Lisp, enable the mode if
ARG is omitted or nil.

Cwarn mode is enabled in all buffers where
`turn-on-cwarn-mode-if-enabled' would do it.
See `cwarn-mode' for more information on Cwarn mode.
(defalias 'global-cwarn-mode #[(&optional arg) "\306 	\307=\203\n?\202\310	!\311V\211\203/\312\313\314\"\210\312\315\314\"\210\312\316\317\"\210\312\320\321\"\210\202C\322\313\314\"\210\322\315\314\"\210\322\316\317\"\210\322\320\321\"\210\323 \324\211\203m\f@rq\210\n\203]\325 \210\202e
\203e\305\326!\210)\fA\211\204L*\327\330\n\203x\331\202y\332\"\210\333\334!\203\236\335\302!\210\306 \203\221\306 \232\203\236\336\337\n\203\233\340\202\234\341\"\210)\342 \210\n\207" [#1=#:last-message arg global-cwarn-mode buf --dolist-tail-- cwarn-mode current-message toggle prefix-numeric-value 0 add-hook after-change-major-mode-hook global-cwarn-mode-enable-in-buffers change-major-mode-after-body-hook find-file-hook global-cwarn-mode-check-buffers change-major-mode-hook global-cwarn-mode-cmhh remove-hook buffer-list nil turn-on-cwarn-mode-if-enabled -1 run-hooks global-cwarn-mode-hook global-cwarn-mode-on-hook global-cwarn-mode-off-hook called-interactively-p any customize-mark-as-set message "Global-Cwarn mode %sabled" "en" "dis" force-mode-line-update] 4 (#$ . 8683) (list (or current-prefix-arg 'toggle))])
(byte-code "\301\302\303\304\300!\205\n\303\211%\207" [global-cwarn-mode-map add-minor-mode global-cwarn-mode nil boundp] 6)
(defvar global-cwarn-mode-buffers nil)
(defalias 'global-cwarn-mode-enable-in-buffers #[nil "\306\211\2059\n@\307	!\2031r	q\210\f=\2040
\203+\305\310!\210\311 \210\f\2020\311 \210\f)\nA\211\204\306*\207" [global-cwarn-mode-buffers buf --dolist-tail-- cwarn-mode-major-mode major-mode cwarn-mode nil buffer-live-p -1 turn-on-cwarn-mode-if-enabled] 3])
(put 'global-cwarn-mode-enable-in-buffers 'definition-name 'global-cwarn-mode)
(defalias 'global-cwarn-mode-check-buffers #[nil "\301 \210\302\303\304\305\"\207" [global-cwarn-mode-buffers global-cwarn-mode-enable-in-buffers nil remove-hook post-command-hook global-cwarn-mode-check-buffers] 3])
(put 'global-cwarn-mode-check-buffers 'definition-name 'global-cwarn-mode)
(defalias 'global-cwarn-mode-cmhh #[nil "\300\301p\"\210\302\303\304\"\207" [add-to-list global-cwarn-mode-buffers add-hook post-command-hook global-cwarn-mode-check-buffers] 3])
(byte-code "\300\301\302\303#\210\304\305!\210\306\307!\207" [put global-cwarn-mode-cmhh definition-name global-cwarn-mode provide cwarn run-hooks cwarn-load-hook] 4)

MMCT - 2023