Mercurial > emacs
view test/cedet/tests/testfriends.cpp @ 110066:5ef877197e04
Remove old indentation and navigation code on octave-mode.
* lisp/progmodes/octave-mod.el (octave-mode-map): Remap down-list to
smie-down-list rather than add a binding for octave-down-block.
(octave-mark-block, octave-blink-matching-block-open):
Rely on forward-sexp-function.
(octave-fill-paragraph): Don't narrow, so you can use
indent-according-to-mode.
(octave-block-begin-regexp, octave-block-begin-or-end-regexp): Remove.
(octave-in-block-p, octave-re-search-forward-kw)
(octave-re-search-backward-kw, octave-indent-calculate)
(octave-end-as-array-index-p, octave-block-end-offset)
(octave-scan-blocks, octave-forward-block, octave-backward-block)
(octave-down-block, octave-backward-up-block, octave-up-block)
(octave-before-magic-comment-p, octave-indent-line): Remove.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 31 Aug 2010 14:13:51 +0200 |
parents | 7f4c7f5c0eba |
children | ef719132ddfa |
line wrap: on
line source
// Test parsing of friends and how they are used in completion. /* >> Thanks Damien Profeta for the nice example. > > I paste a small example. > It would be great if friend can be well parsed and even greater if > class B can access to all the members of A. */ class Af // %2% ( ( "testfriends.cpp" ) ( "Af" "B::testB" ) ) { public: int pubVar; private: int privateVar; friend class B; }; class B { public: int testB(); int testAB(); }; int B::testB() { Af classA; classA.//-1- ; //#1# ( "privateVar" "pubVar" ) } int B::testAB() { // %1% ( ( "testfriends.cpp" ) ( "B" "B::testAB" ) ) } // arch-tag: 31ea93db-59f8-4301-8e32-06536358618e