1 \input texinfo @c -*-texinfo-*-
3 @comment %**start of header
4 @setfilename ../info/ebrowse
5 @settitle A Class Browser for C++
8 @comment %**end of header
11 This file documents Ebrowse, a C++ class browser for GNU Emacs.
13 Copyright @copyright{} 2000, 2002 Free Software Foundation, Inc.
16 Permission is granted to copy, distribute and/or modify this document
17 under the terms of the GNU Free Documentation License, Version 1.1 or
18 any later version published by the Free Software Foundation; with no
19 Invariant Sections, with the Front-Cover texts being ``A GNU
20 Manual,'' and with the Back-Cover Texts as in (a) below. A copy of the
21 license is included in the section entitled ``GNU Free Documentation
22 License'' in the Emacs manual.
24 (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify
25 this GNU Manual, like GNU software. Copies published by the Free
26 Software Foundation raise funds for GNU development.''
28 This document is part of a collection distributed under the GNU Free
29 Documentation License. If you want to distribute this document
30 separately from the collection, you can do so by adding a copy of the
31 license to the document, as described in section 6 of the license.
37 * Ebrowse: (ebrowse). A C++ class browser for Emacs.
41 @title Ebrowse User's Manual
43 @subtitle Ebrowse/Emacs 21
47 @author Gerd Moellmann
49 @vskip 0pt plus 1filll
53 @node Top, Overview, (dir), (dir)
56 You can browse C++ class hierarchies from within Emacs by using
61 * Overview:: What is it and now does it work?
62 * Generating browser files:: How to process C++ source files
63 * Loading a Tree:: How to start browsing
64 * Tree Buffers:: Traversing class hierarchies
65 * Member Buffers:: Looking at member information
66 * Tags-like Functions:: Finding members from source files
67 * Concept Index:: An entry for each concept defined
73 @node Overview, Generating browser files, Top, Top
76 When working in software projects using C++, I frequently missed
77 software support for two things:
81 When you get a new class library, or you have to work on source code you
82 haven't written yourself (or written sufficiently long ago), you need a
83 tool to let you navigate class hierarchies and investigate
84 features of the software. Without such a tool you often end up
85 @command{grep}ing through dozens or even hundreds of files.
88 Once you are productive, it would be nice to have a tool that knows your
89 sources and can help you while you are editing source code. Imagine to
90 be able to jump to the definition of an identifier while you are
91 editing, or something that can complete long identifier names because it
92 knows what identifiers are defined in your program@dots{}.
95 The design of Ebrowse reflects these two needs.
99 @cindex parser for C++ sources
100 A fast parser written in C is used to process C++ source files.
101 The parser generates a data base containing information about classes,
102 members, global functions, defines, types etc.@: found in the sources.
104 The second part of Ebrowse is a Lisp program. This program reads
105 the data base generated by the parser. It displays its contents in
106 various forms and allows you to perform operations on it, or do
107 something with the help of the knowledge contained in the data base.
109 @cindex major modes, of Ebrowse buffers
110 @dfn{Navigational} use of Ebrowse is centered around two
111 types of buffers which define their own major modes:
114 @dfn{Tree buffers} are used to view class hierarchies in tree form.
115 They allow you to quickly find classes, find or view class declarations,
116 perform operations like query replace on sets of your source files, and
117 finally tree buffers are used to produce the second buffer form---member
118 buffers. @xref{Tree Buffers}.
120 @cindex member buffer
121 Members are displayed in @dfn{member buffers}. Ebrowse
122 distinguishes between six different types of members; each type is
123 displayed as a member list of its own:
127 Instance member variables;
130 Instance member functions;
133 Static member variables;
136 Static member functions;
139 Friends/Defines. The list of defines is contained in the friends
140 list of the pseudo-class @samp{*Globals*};
143 Types (@code{enum}s, and @code{typedef}s defined with class
147 You can switch member buffers from one list to another, or to another
148 class. You can include inherited members in the display, you can set
149 filters that remove categories of members from the display, and most
150 importantly you can find or view member declarations and definitions
151 with a keystroke. @xref{Member Buffers}.
153 These two buffer types and the commands they provide support the
154 navigational use of the browser. The second form resembles Emacs' Tags
155 package for C and other procedural languages. Ebrowse's commands of
156 this type are not confined to special buffers; they are most often used
157 while you are editing your source code.
159 To list just a subset of what you can use the Tags part of Ebrowse for:
163 Jump to the definition or declaration of an identifier in your source
164 code, with an electric position stack that lets you easily navigate
168 Complete identifiers in your source with a completion list containing
169 identifiers from your source code only.
172 Perform search and query replace operations over some or all of your
176 Show all identifiers matching a regular expression---and jump to one of
183 @node Generating browser files, Loading a Tree, Overview, Top
184 @comment node-name, next, previous, up
185 @chapter Processing Source Files
187 @cindex @command{ebrowse}, the program
188 @cindex class data base creation
189 Before you can start browsing a class hierarchy, you must run the parser
190 @command{ebrowse} on your source files in order to generate a Lisp data
191 base describing your program.
193 @cindex command line for @command{ebrowse}
194 The operation of @command{ebrowse} can be tailored with command line
195 options. Under normal circumstances it suffices to let the parser use
196 its default settings. If you want to do that, call it with a command
204 or, if your shell doesn't allow all the file names to be specified on
208 ebrowse --files=@var{file}
212 where @var{file} contains the names of the files to be parsed, one
216 When invoked with option @samp{--help}, @command{ebrowse} prints a list of
217 available command line options.@refill
220 * Input files:: Specifying which files to parse
221 * Output file:: Changing the output file name
222 * Structs and unions:: Omitting @code{struct}s and @code{union}s
223 * Matching:: Setting regular expression lengths
224 * Verbosity:: Getting feedback for lengthy operations
230 @comment name, next, prev, up
231 @node Input files, Output file, Generating browser files, Generating browser files
232 @section Specifying Input Files
235 @cindex input files, for @command{ebrowse}
237 Each file name on the command line tells @command{ebrowse} to parse
240 @cindex response files
242 @item --files=@var{file}
243 This command line switch specifies that @var{file} contains a list of
244 file names to parse. Each line in @var{file} must contain one file
245 name. More than one option of this kind is allowed. You might, for
246 instance, want to use one file for header files, and another for source
249 @cindex standard input, specifying input files
251 When @command{ebrowse} finds no file names on the command line, and no
252 @samp{--file} option is specified, it reads file names from standard
253 input. This is sometimes convenient when @command{ebrowse} is used as part
256 @findex --search-path
257 @item --search-path=@var{paths}
258 This option lets you specify search paths for your input files.
259 @var{paths} is a list of directory names, separated from each other by a
260 either a colon or a semicolon, depending on the operating system.
264 @cindex friend functions
265 It is generally a good idea to specify input files so that header files
266 are parsed before source files. This facilitates the parser's work of
267 properly identifying friend functions of a class.
271 @comment name, next, prev, up
272 @node Output file, Structs and unions, Input files, Generating browser files
273 @section Changing the Output File Name
276 @cindex output file name
277 @findex --output-file
278 @cindex @file{BROWSE} file
279 @item --output-file=@var{file}
280 This option instructs @command{ebrowse} to generate a Lisp data base with
281 name @var{file}. By default, the data base is named @file{BROWSE}, and
282 is written in the directory in which @command{ebrowse} is invoked.
284 If you regularly use data base names different from the default, you
285 might want to add this to your init file:
288 (add-to-list 'auto-mode-alist '(@var{NAME} . ebrowse-tree-mode))
292 where @var{NAME} is the Lisp data base name you are using.
295 @cindex appending output to class data base
297 By default, each run of @command{ebrowse} erases the old contents of the
298 output file when writing to it. You can instruct @command{ebrowse} to
299 append its output to an existing file produced by @command{ebrowse}
300 with this command line option.
306 @comment name, next, prev, up
307 @node Structs and unions, Matching, Output file, Generating browser files
308 @section Structs and Unions
313 @findex --no-structs-or-unions
314 @item --no-structs-or-unions
315 This switch suppresses all classes in the data base declared as
316 @code{struct} or @code{union} in the output.
318 This is mainly useful when you are converting an existing
319 C program to C++, and do not want to see the old C structs in a class
326 @comment name, next, prev, up
327 @node Matching, Verbosity, Structs and unions, Generating browser files
328 @section Regular Expressions
330 @cindex regular expressions, recording
331 The parser @command{ebrowse} normally writes regular expressions to its
332 output file that help the Lisp part of Ebrowse to find functions,
333 variables etc.@: in their source files.
335 You can instruct @command{ebrowse} to omit these regular expressions by
336 calling it with the command line switch @samp{--no-regexps}.
338 When you do this, the Lisp part of Ebrowse tries to guess, from member
339 or class names, suitable regular expressions to locate that class or
340 member in source files. This works fine in most cases, but the
341 automatic generation of regular expressions can be too weak if unusual
342 coding styles are used.
347 This option turns off regular expression recording.
349 @findex --min-regexp-length
350 @cindex minimum regexp length for recording
351 @item --min-regexp-length=@var{n}
352 The number @var{n} following this option specifies the minimum length of
353 the regular expressions recorded to match class and member declarations
354 and definitions. The default value is set at compilation time of
357 The smaller the minimum length, the higher the probability that
358 Ebrowse will find a wrong match. The larger the value, the
359 larger the output file and therefore the memory consumption once the
360 file is read from Emacs.
362 @findex --max-regexp-length
363 @cindex maximum regexp length for recording
364 @item --max-regexp-length=@var{n}
365 The number following this option specifies the maximum length of the
366 regular expressions used to match class and member declarations and
367 definitions. The default value is set at compilation time of
370 The larger the maximum length, the higher the probability that the
371 browser will find a correct match, but the larger the value the larger
372 the output file and therefore the memory consumption once the data is
373 read. As a second effect, the larger the regular expression, the higher
374 the probability that it will no longer match after editing the file.
380 @node Verbosity, , Matching, Generating browser files
381 @comment node-name, next, previous, up
382 @section Verbose Mode
383 @cindex verbose operation
388 When this option is specified on the command line, @command{ebrowse} prints
389 a period for each file parsed, and it displays a @samp{+} for each
390 class written to the output file.
392 @findex --very-verbose
394 This option makes @command{ebrowse} print out the names of the files and
395 the names of the classes seen.
401 @node Loading a Tree, Tree Buffers, Generating browser files, Top
402 @comment node-name, next, previous, up
403 @chapter Starting to Browse
407 You start browsing a class hierarchy parsed by @command{ebrowse} by just
408 finding the @file{BROWSE} file with @kbd{C-x C-f}.
410 An example of a tree buffer display is shown below.
421 @cindex mouse highlight in tree buffers
422 When you run Emacs on a display which supports colors and the mouse, you
423 will notice that certain areas in the tree buffer are highlighted
424 when you move the mouse over them. This highlight marks mouse-sensitive
425 regions in the buffer. Please notice the help strings in the echo area
426 when the mouse moves over a sensitive region.
429 A click with @kbd{Mouse-3} on a mouse-sensitive region opens a context
430 menu. In addition to this, each buffer also has a buffer-specific menu
431 that is opened with a click with @kbd{Mouse-3} somewhere in the buffer
432 where no highlight is displayed.
436 @comment ****************************************************************
438 @comment *** TREE BUFFERS
440 @comment ****************************************************************
442 @node Tree Buffers, Member Buffers, Loading a Tree, Top
443 @comment node-name, next, previous, up
444 @chapter Tree Buffers
445 @cindex tree buffer mode
448 Class trees are displayed in @dfn{tree buffers} which install their own
449 major mode. Most Emacs keys work in tree buffers in the usual way,
450 e.g.@: you can move around in the buffer with the usual @kbd{C-f},
451 @kbd{C-v} etc., or you can search with @kbd{C-s}.
453 Tree-specific commands are bound to simple keystrokes, similar to
454 @code{Gnus}. You can take a look at the key bindings by entering
455 @kbd{?} which calls @code{M-x describe-mode} in both tree and member
459 * Source Display:: Viewing and finding a class declaration
460 * Member Display:: Showing members, switching to member buffers
461 * Go to Class:: Finding a class
462 * Quitting:: Discarding and burying the tree buffer
463 * File Name Display:: Showing file names in the tree
464 * Expanding and Collapsing:: Expanding and collapsing branches
465 * Tree Indentation:: Changing the tree indentation
466 * Killing Classes:: Removing class from the tree
467 * Saving a Tree:: Saving a modified tree
468 * Statistics:: Displaying class tree statistics
469 * Marking Classes:: Marking and unmarking classes
474 @node Source Display, Member Display, Tree Buffers, Tree Buffers
475 @comment node-name, next, previous, up
476 @section Viewing and Finding Class Declarations
477 @cindex viewing, class
478 @cindex finding a class
479 @cindex class declaration
481 You can view or find a class declaration when the cursor is on a class
486 This command views the class declaration if the database
487 contains informations about it. If you don't parse the entire source
488 you are working on, some classes will only be known to exist but the
489 location of their declarations and definitions will not be known.@refill
492 Works like @kbd{SPC}, except that it finds the class
493 declaration rather than viewing it, so that it is ready for
497 The same functionality is available from the menu opened with
498 @kbd{Mouse-3} on the class name.
503 @node Member Display, Go to Class, Source Display, Tree Buffers
504 @comment node-name, next, previous, up
505 @section Displaying Members
506 @cindex @samp{*Members*} buffer
507 @cindex @samp{*Globals*}
508 @cindex freezing a member buffer
509 @cindex member lists, in tree buffers
511 Ebrowse distinguishes six different kinds of members, each of
512 which is displayed as a separate @dfn{member list}: instance variables,
513 instance functions, static variables, static functions, friend
514 functions, and types.
516 Each of these lists can be displayed in a member buffer with a command
517 starting with @kbd{L} when the cursor is on a class name. By default,
518 there is only one member buffer named @dfn{*Members*} that is reused
519 each time you display a member list---this has proven to be more
520 practical than to clutter up the buffer list with dozens of member
523 If you want to display more than one member list at a time you can
524 @dfn{freeze} its member buffer. Freezing a member buffer prevents it
525 from being overwritten the next time you display a member list. You can
526 toggle this buffer status at any time.
528 Every member list display command in the tree buffer can be used with a
529 prefix argument (@kbd{C-u}). Without a prefix argument, the command will
530 pop to a member buffer displaying the member list. With prefix argument,
531 the member buffer will additionally be @dfn{frozen}.
534 @cindex instance member variables, list
536 This command displays the list of instance member variables.
538 @cindex static variables, list
540 Display the list of static variables.
542 @cindex friend functions, list
544 Display the list of friend functions. This list is used for defines if
545 you are viewing the class @samp{*Globals*} which is a place holder for
548 @cindex member functions, list
550 Display the list of member functions.
552 @cindex static member functions, list
554 Display the list of static member functions.
558 Display a list of types.
561 These lists are also available from the class' context menu invoked with
562 @kbd{Mouse-3} on the class name.
567 @node Go to Class, Quitting, Member Display, Tree Buffers
568 @comment node-name, next, previous, up
569 @section Finding a Class
571 @cindex expanding branches
572 @cindex class location
575 @cindex search for class
577 This command reads a class name from the minibuffer with completion and
578 positions the cursor on the class in the class tree.
580 If the branch of the class tree containing the class searched for is
581 currently collapsed, the class itself and all its base classes are
582 recursively made visible. (See also @ref{Expanding and
585 This function is also available from the tree buffer's context menu.
588 Repeat the last search done with @kbd{/}. Each tree buffer has its own
589 local copy of the regular expression last searched in it.
595 @node Quitting, File Name Display, Go to Class, Tree Buffers
596 @comment node-name, next, previous, up
597 @section Burying a Tree Buffer
598 @cindex burying tree buffer
602 Is a synonym for @kbd{M-x bury-buffer}.
608 @node File Name Display, Expanding and Collapsing, Quitting, Tree Buffers
609 @comment node-name, next, previous, up
610 @section Displaying File Names
613 @cindex file names in tree buffers
615 This command toggles the display of file names in a tree buffer. If
616 file name display is switched on, the names of the files containing the
617 class declaration are shown to the right of the class names. If the
618 file is not known, the string @samp{unknown} is displayed.
620 This command is also provided in the tree buffer's context menu.
623 Display file names for the current line, or for the number of lines
624 given by a prefix argument.
627 Here is an example of a tree buffer with file names displayed.
630 | Collection (unknown)
631 | IndexedCollection (indexedcltn.h)
633 | FixedArray (fixedarray.h)
635 | Dictionary (dict.h)
641 @node Expanding and Collapsing, Tree Indentation, File Name Display, Tree Buffers
642 @comment node-name, next, previous, up
643 @section Expanding and Collapsing a Tree
644 @cindex expand tree branch
645 @cindex collapse tree branch
646 @cindex branches of class tree
647 @cindex class tree, collapse or expand
649 You can expand and collapse parts of a tree to reduce the complexity of
650 large class hierarchies. Expanding or collapsing branches of a tree has
651 no impact on the functionality of other commands, like @kbd{/}. (See
652 also @ref{Go to Class}.)@refill
654 Collapsed branches are indicated with an ellipsis following the class
655 name like in the example below.
659 | IndexedCollection...
666 This command collapses the branch of the tree starting at the class the
670 This command expands the branch of the tree starting at the class the
671 cursor is on. Both commands for collapsing and expanding branches are
672 also available from the class' object menu.
675 This command expands all collapsed branches in the tree.
681 @node Tree Indentation, Killing Classes, Expanding and Collapsing, Tree Buffers
682 @comment node-name, next, previous, up
683 @section Changing the Tree Indentation
684 @cindex tree indentation
685 @cindex indentation of the tree
689 This command reads a new indentation width from the minibuffer and
690 redisplays the tree buffer with the new indentation It is also
691 available from the tree buffer's context menu.
697 @node Killing Classes, Saving a Tree, Tree Indentation, Tree Buffers
698 @comment node-name, next, previous, up
699 @section Removing Classes from the Tree
700 @cindex killing classes
701 @cindex class, remove from tree
705 This command removes the class the cursor is on and all its derived
706 classes from the tree. The user is asked for confirmation before the
707 deletion is actually performed.
713 @node Saving a Tree, Statistics, Killing Classes, Tree Buffers
714 @comment node-name, next, previous, up
715 @comment node-name, next, previous, up
716 @section Saving a Tree
717 @cindex save tree to a file
718 @cindex tree, save to a file
719 @cindex class tree, save to a file
723 This command writes a class tree to the file from which it was read.
724 This is useful after classes have been deleted from a tree.
727 Writes the tree to a file whose name is read from the minibuffer.
733 @node Statistics, Marking Classes, Saving a Tree, Tree Buffers
734 @comment node-name, next, previous, up
735 @cindex statistics for a tree
736 @cindex tree statistics
737 @cindex class statistics
741 Display statistics for the tree, like number of classes in it, number of
742 member functions, etc. This command can also be found in the buffer's
749 @node Marking Classes, , Statistics, Tree Buffers
750 @comment node-name, next, previous, up
751 @cindex marking classes
752 @cindex operations on marked classes
754 Classes can be marked for operations similar to the standard Emacs
755 commands @kbd{M-x tags-search} and @kbd{M-x tags-query-replace} (see
756 also @xref{Tags-like Functions}.)@refill
761 Toggle the mark of the line point is in or for as many lines as given by
762 a prefix command. This command can also be found in the class' context
767 Unmark all classes. With prefix argument @kbd{C-u}, mark all classes in
768 the tree. Since this command operates on the whole buffer, it can also be
769 found in the buffer's object menu.
772 Marked classes are displayed with an @code{>} in column one of the tree
773 display, like in the following example
777 | IndexedCollection...
785 @c ****************************************************************
787 @c *** MEMBER BUFFERS
789 @c ****************************************************************
791 @node Member Buffers, Tags-like Functions, Tree Buffers, Top
792 @comment node-name, next, previous, up
793 @chapter Member Buffers
795 @cindex member buffer mode
797 @cindex class members, types
798 @cindex types of class members
799 @dfn{Member buffers} are used to operate on lists of members of a class.
800 Ebrowse distinguishes six kinds of lists:
804 Instance variables (normal member variables);
806 Instance functions (normal member functions);
810 Static member functions;
814 Types (@code{enum}s and @code{typedef}s defined with class scope.
815 Nested classes will be shown in the class tree like normal classes.
818 Like tree buffers, member buffers install their own major mode. Also
819 like in tree buffers, menus are provided for certain areas in the
820 buffer: members, classes, and the buffer itself.
823 * Switching Member Lists:: Choosing which members to display
824 * Finding/Viewing:: Modifying source code
825 * Inherited Members:: Display of Inherited Members
826 * Searching Members:: Finding members in member buffer
827 * Switching to Tree:: Going back to the tree buffer
828 * Filters:: Selective member display
829 * Attributes:: Display of @code{virtual} etc.
830 * Long and Short Display:: Comprehensive and verbose display
831 * Regexp Display:: Showing matching regular expressions
832 * Switching Classes:: Displaying another class
833 * Killing/Burying:: Getting rid of the member buffer
834 * Column Width:: Display style
835 * Redisplay:: Redrawing the member list
836 * Getting Help:: How to get help for key bindings
842 @node Switching Member Lists, Finding/Viewing, Member Buffers, Member Buffers
843 @comment node-name, next, previous, up
844 @section Switching Member Lists
845 @cindex member lists, in member buffers
846 @cindex static members
852 @cindex next member list
854 This command switches the member buffer display to the next member list.
856 @cindex previous member list
858 This command switches the member buffer display to the previous member
862 Switch to the list of member functions.
866 Switch to the list of static member functions.
869 Switch to the list of member variables.
872 Switch to the list of static member variables.
875 Switch to the list of friends or defines.
878 Switch to the list of types.
881 Both commands cycle through the member list.
883 Most of the commands are also available from the member buffer's
889 @node Finding/Viewing, Inherited Members, Switching Member Lists, Member Buffers
890 @comment node-name, next, previous, up
891 @section Finding and Viewing Member Source
892 @cindex finding members, in member buffers
893 @cindex viewing members, in member buffers
894 @cindex member definitions, in member buffers
895 @cindex member declarations, in member buffers
896 @cindex definition of a member, in member buffers
897 @cindex declaration of a member, in member buffers
901 This command finds the definition of the member the cursor is on.
902 Finding involves roughly the same as the standard Emacs tags facility
903 does---loading the file and searching for a regular expression matching
907 This command finds the declaration of the member the cursor is on.
910 This is the same command as @kbd{RET}, but views the member definition
911 instead of finding the member's source file.
914 This is the same command as @kbd{f}, but views the member's declaration
915 instead of finding the file the declaration is in.
918 You can install a hook function to perform actions after a member or
919 class declaration or definition has been found, or when it is not found.
921 All the commands described above can also be found in the context menu
922 displayed when clicking @kbd{Mouse-2} on a member name.
927 @node Inherited Members, Searching Members, Finding/Viewing, Member Buffers
928 @comment node-name, next, previous, up
929 @section Display of Inherited Members
930 @cindex superclasses, members
931 @cindex base classes, members
932 @cindex inherited members
936 This command toggles the display of inherited members in the member
937 buffer. This is also in the buffer's context menu.
943 @node Searching Members, Switching to Tree, Inherited Members, Member Buffers
944 @comment node-name, next, previous, up
945 @section Searching Members
946 @cindex searching members
950 Position the cursor on a member whose name is read from the minibuffer;
951 only members shown in the current member buffer appear in the completion
955 Like the above command, but all members for the current class appear in
956 the completion list. If necessary, the current member list is switched
957 to the one containing the member.
959 With a prefix argument (@kbd{C-u}), all members in the class tree,
960 i.e.@: all members the browser knows about appear in the completion
961 list. The member display will be switched to the class and member list
962 containing the member.
965 Repeat the last member search.
968 Look into the buffer's context menu for a convenient way to do this with
973 @node Switching to Tree, Filters, Searching Members, Member Buffers
974 @comment node-name, next, previous, up
975 @section Switching to Tree Buffer
976 @cindex tree buffer, switch to
977 @cindex buffer switching
978 @cindex switching buffers
982 Pop up the tree buffer to which the member buffer belongs.
985 Do the same as @kbd{TAB} but also position the cursor on the class
986 displayed in the member buffer.
992 @node Filters, Attributes, Switching to Tree, Member Buffers
993 @comment node-name, next, previous, up
998 @cindex @code{public} members
1000 This command toggles the display of @code{public} members. The
1001 @samp{a} stands for `access'.
1003 @cindex @code{protected} members
1005 This command toggles the display of @code{protected} members.
1007 @cindex @code{private} members
1009 This command toggles the display of @code{private} members.
1011 @cindex @code{virtual} members
1013 This command toggles the display of @code{virtual} members.
1015 @cindex @code{inline} members
1017 This command toggles the display of @code{inline} members.
1019 @cindex @code{const} members
1021 This command toggles the display of @code{const} members.
1023 @cindex pure virtual members
1025 This command toggles the display of pure virtual members.
1027 @cindex remove filters
1029 This command removes all filters.
1032 These commands are also found in the buffer's context menu.
1037 @node Attributes, Long and Short Display, Filters, Member Buffers
1038 @comment node-name, next, previous, up
1039 @section Displaying Member Attributes
1041 @cindex member attribute display
1045 Toggle the display of member attributes (default is on).
1047 The nine member attributes Ebrowse knows about are displayed
1048 as a list a single-characters flags enclosed in angle brackets in front
1049 the of the member's name. A @samp{-} at a given position means that
1050 the attribute is false. The list of attributes from left to right is
1053 @cindex @code{template} attribute
1055 The member is a template.
1057 @cindex @code{extern "C"} attribute
1059 The member is declared @code{extern "C"}.
1061 @cindex @code{virtual} attribute
1063 Means the member is declared @code{virtual}.
1065 @cindex @code{inline}
1067 The member is declared @code{inline}.
1069 @cindex @code{const} attribute
1071 The member is @code{const}.
1073 @cindex pure virtual function attribute
1075 The member is a pure virtual function.
1077 @cindex @code{mutable} attribute
1079 The member is declared @code{mutable}.
1081 @cindex @code{explicit} attribute
1083 The member is declared @code{explicit}.
1086 The member is a function with a throw list.
1090 This command is also in the buffer's context menu.
1094 @node Long and Short Display, Regexp Display, Attributes, Member Buffers
1095 @comment node-name, next, previous, up
1096 @section Long and Short Member Display
1097 @cindex display form
1098 @cindex long display
1099 @cindex short display
1103 This command toggles the member buffer between short and long display
1104 form. The short display form displays member names, only:
1107 | isEmpty contains hasMember create
1108 | storeSize hash isEqual restoreGuts
1112 The long display shows one member per line with member name and regular
1113 expressions matching the member (if known):
1116 | isEmpty Bool isEmpty () const...
1117 | hash unsigned hash () const...
1118 | isEqual int isEqual (...
1121 Regular expressions will only be displayed when the Lisp database has
1122 not been produced with the @command{ebrowse} option @samp{--no-regexps}.
1123 @xref{Matching, --no-regexps, Regular Expressions}.
1129 @node Regexp Display, Switching Classes, Long and Short Display, Member Buffers
1130 @comment node-name, next, previous, up
1131 @section Display of Regular Expressions
1132 @cindex regular expression display
1136 This command toggles the long display form from displaying the regular
1137 expressions matching the member declarations to those expressions
1138 matching member definitions.
1141 Regular expressions will only be displayed when the Lisp database has
1142 not been produced with the @command{ebrowse} option @samp{--no-regexps},
1143 see @ref{Matching, --no-regexps, Regular Expressions}.
1148 @node Switching Classes, Killing/Burying, Regexp Display, Member Buffers
1149 @comment node-name, next, previous, up
1150 @section Displaying Another Class
1151 @cindex base class, display
1152 @cindex derived class, display
1153 @cindex superclass, display
1154 @cindex subclass, display
1155 @cindex class display
1159 This command lets you switch the member buffer to another class. It
1160 reads the name of the new class from the minibuffer with completion.
1163 This is the same command as @kbd{C c} but restricts the classes shown in
1164 the completion list to immediate base classes, only. If only one base
1165 class exists, this one is immediately shown in the minibuffer.
1168 Same as @kbd{C b}, but for derived classes.
1171 Switch to the previous class in the class hierarchy on the same level as
1172 the class currently displayed.
1175 Switch to the next sibling of the class in the class tree.
1181 @node Killing/Burying, Column Width, Switching Classes, Member Buffers
1182 @comment node-name, next, previous, up
1183 @section Burying a Member Buffer
1184 @cindex burying member buffers
1188 This command is a synonym for @kbd{M-x bury-buffer}.
1194 @node Column Width, Redisplay, Killing/Burying, Member Buffers
1195 @comment node-name, next, previous, up
1196 @section Setting the Column Width
1197 @cindex column width
1198 @cindex member indentation
1199 @cindex indentation, member
1203 This command sets the column width depending on the display form used
1204 (long or short display).
1210 @node Redisplay, Getting Help, Column Width, Member Buffers
1211 @comment node-name, next, previous, up
1212 @section Forced Redisplay
1213 @cindex redisplay of member buffers
1217 This command forces a redisplay of the member buffer. If the width
1218 of the window displaying the member buffer is changed this command
1219 redraws the member list with the appropriate column widths and number of
1226 @node Getting Help, , Redisplay, Member Buffers
1227 @comment node-name, next, previous, up
1232 This key is bound to @code{describe-mode}.
1238 @comment **************************************************************
1239 @comment *** TAGS LIKE FUNCTIONS
1240 @comment **************************************************************
1242 @node Tags-like Functions, Concept Index, Member Buffers, Top
1243 @comment node-name, next, previous, up
1244 @chapter Tags-like Functions
1246 Ebrowse provides tags functions similar to those of the standard
1247 Emacs Tags facility, but better suited to the needs of C++ programmers.
1250 * Finding and Viewing:: Going to a member declaration/definition
1251 * Position Stack:: Moving to previous locations
1252 * Search & Replace:: Searching and replacing over class tree files
1253 * Members in Files:: Listing all members in a given file
1254 * Apropos:: Listing members matching a regular expression
1255 * Symbol Completion:: Completing names while editing
1256 * Member Buffer Display:: Quickly display a member buffer for some
1262 @node Finding and Viewing, Position Stack, Tags-like Functions, Tags-like Functions
1263 @comment node-name, next, previous, up
1264 @section Finding and Viewing Members
1265 @cindex finding class member, in C++ source
1266 @cindex viewing class member, in C++ source
1268 @cindex member definition, finding, in C++ source
1269 @cindex member declaration, finding, in C++ source
1271 The functions in this section are similar to those described in
1272 @ref{Source Display}, and also in @ref{Finding/Viewing}, except that
1273 they work in a C++ source buffer, not in member and tree buffers created
1278 Find the definition of the member around point. If you invoke this
1279 function with a prefix argument, the declaration is searched.
1281 If more than one class contains a member with the given name you can
1282 select the class with completion. If there is a scope declaration in
1283 front of the member name, this class name is used as initial input for
1287 Find the declaration of the member around point.
1290 View the definition of the member around point.
1293 View the declaration of the member around point.
1296 Find a member's definition in another window.
1299 Find a member's declaration in another window.
1302 View a member's definition in another window.
1305 View a member's declaration in another window.
1308 Find a member's definition in another frame.
1311 Find a member's declaration in another frame.
1314 View a member's definition in another frame.
1317 View a member's declaration in another frame.
1322 @node Position Stack, Search & Replace, Finding and Viewing, Tags-like Functions
1323 @comment node-name, next, previous, up
1324 @section The Position Stack
1325 @cindex position stack
1327 When jumping to a member declaration or definition with one of
1328 Ebrowse's commands, the position from where you performed the
1329 jump and the position where you jumped to are recorded in a
1330 @dfn{position stack}. There are several ways in which you can quickly
1331 move to positions in the stack:@refill
1334 @cindex return to original position
1336 This command sets point to the previous position in the position stack.
1337 Directly after you performed a jump, this will put you back to the
1338 position where you came from.
1340 The stack is not popped, i.e.@: you can always switch back and forth
1341 between positions in the stack. To avoid letting the stack grow to
1342 infinite size there is a maximum number of positions defined. When this
1343 number is reached, older positions are discarded when new positions are
1344 pushed on the stack.
1347 This command moves forward in the position stack, setting point to
1348 the next position stored in the position stack.
1351 Displays an electric buffer showing all positions saved in the stack.
1352 You can select a position by pressing @kbd{SPC} in a line. You can
1353 view a position with @kbd{v}.
1359 @node Search & Replace, Members in Files, Position Stack, Tags-like Functions
1360 @comment node-name, next, previous, up
1361 @section Searching and Replacing
1362 @cindex searching multiple C++ files
1363 @cindex replacing in multiple C++ files
1364 @cindex restart tags-operation
1366 Ebrowse allows you to perform operations on all or a subset of the files
1367 mentioned in a class tree. When you invoke one of the following
1368 functions and more than one class tree is loaded, you must choose a
1369 class tree to use from an electric tree menu. If the selected tree
1370 contains marked classes, the following commands operate on the files
1371 mentioned in the marked classes only. Otherwise all files in the class
1376 This function performs a regular expression search in the chosen set of
1380 This command performs a search for calls of a given member which is
1381 selected in the usual way with completion.
1384 Perform a query replace over the set of files.
1387 All three operations above stop when finding a match. You can restart
1388 the operation with this command.
1391 This restarts the last tags operation with the next file in the list.
1397 @node Members in Files, Apropos, Search & Replace, Tags-like Functions
1398 @comment node-name, next, previous, up
1399 @section Members in Files
1401 @cindex members in file, listing
1402 @cindex list class members in a file
1403 @cindex file, members
1405 The command @kbd{C-c b l}, lists all members in a given file. The file
1406 name is read from the minibuffer with completion.
1411 @node Apropos, Symbol Completion, Members in Files, Tags-like Functions
1412 @comment node-name, next, previous, up
1413 @section Member Apropos
1414 @cindex apropos on class members
1415 @cindex members, matching regexp
1417 The command @kbd{C-c b a} can be used to display all members matching a
1418 given regular expression. This command can be very useful if you
1419 remember only part of a member name, and not its beginning.
1421 A special buffer is popped up containing all identifiers matching the
1422 regular expression, and what kind of symbol it is (e.g.@: a member
1423 function, or a type). You can then switch to this buffer, and use the
1424 command @kbd{C-c b f}, for example, to jump to a specific member.
1429 @node Symbol Completion, Member Buffer Display, Apropos, Tags-like Functions
1430 @comment node-name, next, previous, up
1431 @section Symbol Completion
1433 @cindex symbol completion
1435 The command @kbd{C-c b TAB} completes the symbol in front of point.
1440 @node Member Buffer Display, , Symbol Completion, Tags-like Functions
1441 @section Quick Member Display
1442 @cindex member buffer, for member at point
1444 You can quickly display a member buffer containing the member the cursor
1445 in on with the command @kbd{C-c b m}.
1448 @node Concept Index, , Tags-like Functions, Top
1449 @unnumbered Concept Index
1456 arch-tag: 52fe78ac-a1c4-48e7-815e-0a31acfad4bf