summaryrefslogtreecommitdiff
path: root/upb/upb.h
diff options
context:
space:
mode:
authorborislav nikolov <jack@sofialondonmoskva.com>2016-02-18 11:06:09 +0100
committerborislav nikolov <jack@sofialondonmoskva.com>2016-02-18 11:06:09 +0100
commit5da90a3571d172f1b4b99267d044642ad6bda25b (patch)
tree977c1e8a87a4e41673a948ac71a3dfac7b5e0474 /upb/upb.h
parent4d9fa86309ff2561efeb6c1b4c5f2b946d7f498b (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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/upb/upb.h b/upb/upb.h
index 581486d..d1107e7 100644
--- a/upb/upb.h
+++ b/upb/upb.h
@@ -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) {} \
}; \
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback