diff options
author | borislav nikolov <jack@sofialondonmoskva.com> | 2016-02-18 11:06:09 +0100 |
---|---|---|
committer | borislav nikolov <jack@sofialondonmoskva.com> | 2016-02-18 11:06:09 +0100 |
commit | 5da90a3571d172f1b4b99267d044642ad6bda25b (patch) | |
tree | 977c1e8a87a4e41673a948ac71a3dfac7b5e0474 /upb/upb.h | |
parent | 4d9fa86309ff2561efeb6c1b4c5f2b946d7f498b (diff) |
indent according to google-style-guide
https://google.github.io/styleguide/cppguide.html#Constructor_Initializer_Lists
```
// If the signature and initializer list are not all on one line,
// you must wrap before the colon and indent 4 spaces:
MyClass::MyClass(int var)
: some_var_(var), some_other_var_(var + 1) {
DoSomething();
}
```
and
```
// As with any other code block, the close curly can be on the same
// line as the open curly, if it fits.
MyClass::MyClass(int var)
: some_var_(var) {}
```
Diffstat (limited to 'upb/upb.h')
-rw-r--r-- | upb/upb.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -127,15 +127,15 @@ template <> \ class Pointer<cppname> : public PointerBase<cppname, cppbase> { \ public: \ - explicit Pointer(cppname* ptr) : \ - PointerBase<cppname, cppbase>(ptr) {} \ + explicit Pointer(cppname* ptr) \ + : PointerBase<cppname, cppbase>(ptr) {} \ }; \ template <> \ class Pointer<const cppname> \ : public PointerBase<const cppname, const cppbase> { \ public: \ - explicit Pointer(const cppname* ptr) : \ - PointerBase<const cppname, const cppbase>(ptr) {} \ + explicit Pointer(const cppname* ptr) \ + : PointerBase<const cppname, const cppbase>(ptr) {} \ }; \ } @@ -147,15 +147,15 @@ template <> \ class Pointer<cppname> : public PointerBase2<cppname, cppbase, cppbase2> { \ public: \ - explicit Pointer(cppname* ptr) : \ - PointerBase2<cppname, cppbase, cppbase2>(ptr) {} \ + explicit Pointer(cppname* ptr) \ + : PointerBase2<cppname, cppbase, cppbase2>(ptr) {} \ }; \ template <> \ class Pointer<const cppname> \ : public PointerBase2<const cppname, const cppbase, const cppbase2> { \ public: \ - explicit Pointer(const cppname* ptr) : \ - PointerBase2<const cppname, const cppbase, const cppbase2>(ptr) {} \ + explicit Pointer(const cppname* ptr) \ + : PointerBase2<const cppname, const cppbase, const cppbase2>(ptr) {} \ }; \ } |