|
楼主 |
发表于 2009-9-29 19:51:29
|
显示全部楼层
这是我用支持c++的参数生成的tags:
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.7 //
Euclideanalg main.cpp /^void Euclideanalg(long a,long b){$/;" f signaturelong a,long b)
denominator fraction.h /^ long denominator; \/\/分母$/;" m class:fraction access:private
foolishalg main.cpp /^void foolishalg(long a,long b){$/;" f signaturelong a,long b)
fraction fraction.cpp /^fraction::fraction(){$/;" f class:fraction signature)
fraction fraction.h /^ fraction();$/;" p class:fraction access:public signature)
fraction fraction.h /^ fraction(const fraction& f){numerator=f.numerator;denominator=f.denominator;}$/;" f class:fraction access:public signatureconst fraction& f)
fraction fraction.h /^ fraction(long n){numerator=n;denominator=1;}$/;" f class:fraction access:public signaturelong n)
fraction fraction.h /^ fraction(string);$/;" p class:fraction access:public signaturestring)
fraction fraction.h /^class fraction{$/;" c
fraction::denominator fraction.h /^ long denominator; \/\/分母$/;" m class:fraction access:private
fraction::fraction fraction.cpp /^fraction::fraction(){$/;" f class:fraction signature)
fraction::fraction fraction.h /^ fraction();$/;" p class:fraction access:public signature)
fraction::fraction fraction.h /^ fraction(const fraction& f){numerator=f.numerator;denominator=f.denominator;}$/;" f class:fraction access:public signatureconst fraction& f)
fraction::fraction fraction.h /^ fraction(long n){numerator=n;denominator=1;}$/;" f class:fraction access:public signature:(long n)
fraction::fraction fraction.h /^ fraction(string);$/;" p class:fraction access:public signature:(string)
fraction::max fraction.h /^ friend void max(const fraction &,const fraction &); \/\/比较大小的函数$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction::maxdivisor fraction.cpp /^long fraction::maxdivisor(const long &x,const long &y){$/;" f class:fraction signature:(const long &x,const long &y)
fraction::maxdivisor fraction.h /^ long maxdivisor(const long &,const long &); \/\/求最大公约数的函数,第一个参数为较大数$/;" pclass:fraction access:private signature:(const long &,const long &)
fraction::numerator fraction.h /^ long numerator; \/\/分子$/;" m class:fraction access:private
fraction:perator * fraction.h /^ friend fraction operator*(const fraction &,const fraction &);$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction:perator + fraction.h /^ friend fraction operator+(const fraction &,const fraction &);$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction:perator - fraction.h /^ friend fraction operator-(const fraction &,const fraction &);$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction:perator / fraction.h /^ friend fraction operator\/(const fraction &,const fraction &);$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction:perator < fraction.h /^ friend int operator<(const fraction &,const fraction &);$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction:perator << fraction.h /^ friend ostream& operator<<(ostream &,const fraction &); \/\/remember the zero$/;" p class:fraction access:friend signature:(ostream &,const fraction &)
fraction:perator == fraction.h /^ friend int operator==(const fraction &,const fraction &);$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction:perator > fraction.h /^ friend int operator>(const fraction &,const fraction &);$/;" p class:fraction access:friend signature:(const fraction &,const fraction &)
fraction:perator >> fraction.h /^ friend istream& operator>>(istream &,fraction &);$/;" p class:fraction access:friend signature:(istream &,fraction &)
fraction::turnsimp fraction.cpp /^fraction& fraction::turnsimp(){$/;" f |
|