Variable: hide-ifdef-expand-reinclusion-guard

hide-ifdef-expand-reinclusion-guard is a customizable variable defined in hideif.el.gz.

Value

t

Documentation

Non-nil means don't hide an entire header file enclosed by #ifndef...#endif.

Most C/C++ headers are usually wrapped with ifdefs to prevent re-inclusion:

  ----- beginning of file -----
  #ifndef _XXX_HEADER_FILE_INCLUDED_
  #define _XXX_HEADER_FILE_INCLUDED_
     xxx
     xxx
     xxx...
  #endif
  ----- end of file -----

The first time we visit such a file, _XXX_HEADER_FILE_INCLUDED_ is undefined, and so nothing is hidden. The next time we visit it, everything will be hidden.

This behavior is generally undesirable. If this option is non-nil, the outermost #if is always visible.

This variable was added, or its default value changed, in Emacs 25.1.

Aliases

hide-ifdef-expand-reinclusion-protection (obsolete since 28.1)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/hideif.el.gz
(defcustom hide-ifdef-expand-reinclusion-guard t
  "Non-nil means don't hide an entire header file enclosed by #ifndef...#endif.
Most C/C++ headers are usually wrapped with ifdefs to prevent re-inclusion:

  ----- beginning of file -----
  #ifndef _XXX_HEADER_FILE_INCLUDED_
  #define _XXX_HEADER_FILE_INCLUDED_
     xxx
     xxx
     xxx...
  #endif
  ----- end of file -----

The first time we visit such a file, _XXX_HEADER_FILE_INCLUDED_ is
undefined, and so nothing is hidden.  The next time we visit it, everything will
be hidden.

This behavior is generally undesirable.  If this option is non-nil, the
outermost #if is always visible."
  :type 'boolean
  :version "25.1")