Skip to content

Commit

Permalink
fix line break/spacing for cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Feb 1, 2015
1 parent 7f59f00 commit 400e484
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions ftplugin/cpp/cpp.xpt.vim
Expand Up @@ -62,28 +62,23 @@ XPT map " std::map<..,..> ..;
std::map<`typeKey^,`val^> `name^;
`cursor^


XPT class " class ..
class `className^
{
class `className^`$BRfun^{
public:
`className^( `ctorParam^ );
`className^(`$SParg`ctorParam?`$SParg^);
~`className^();
`className^( const `className^ &cpy );
`className^(`$SParg^const `className^ &cpy`$SParg^);
`cursor^
private:
};

`className^::`className^( `ctorParam^ )
{
`className^::`className^(`ctorParam?^)`$BRfun^{
}

`className^::~`className^()
{
`className^::~`className^()`$BRfun^{
}

`className^::`className^( const `className^ &cpy )
{
`className^::`className^(`$SParg^gconst `className^ &cpy`$SParg^)`$BRfun^{
}
..XPT

Expand Down Expand Up @@ -121,46 +116,40 @@ operator `typename^ ();
..XPT

XPT iop " t operator .. ()
`type^ operator `opName^ ( `args^ )
{
`type^ operator `opName^ ( `args^ )`$BRfun^{
`cursor^
}
..XPT

XPT op " t operator .. ()
`type^ operator `opName^ ( `args^ );

`type^ `className^::operator `opName^ ( `args^ )
{
`type^ `className^::operator `opName^ ( `args^ )`$BRfun^{
}
..XPT

XPT templateclass " template <> class
template
<`templateParam^>
class `className^
{
class `className^`$BRfun^{
public:
`className^( `ctorParam^ );
`className^(`$SParg`ctorParam?`$SParg^);
~`className^();
`className^( const `className^ &cpy );
`className^(`$SParg^const `className^ &cpy`$SParg^);
`cursor^
private:
};

template <`templateParam^>
`className^<`_^cleanTempl(R('templateParam'))^^>::`className^( `ctorParam^ )
{
`className^<`_^cleanTempl(R('templateParam'))^^>::`className^(`ctorParam?^)`$BRfun^{
}

template <`templateParam^>
`className^<`_^cleanTempl(R('templateParam'))^^>::~`className^()
{
`className^<`_^cleanTempl(R('templateParam'))^^>::~`className^()`$BRfun^{
}

template <`templateParam^>
`className^<`_^cleanTempl(R('templateParam'))^^>::`className^( const `className^ &cpy )
{
`className^<`_^cleanTempl(R('templateParam'))^^>::`className^(`$SParg^gconst `className^ &cpy`$SParg^)`$BRfun^{
}
..XPT

Expand Down

0 comments on commit 400e484

Please sign in to comment.