Repository: mesos
Updated Branches:
  refs/heads/master 4697d8c5c -> c4ef28928


Added format for template declaration in the styleguide.

Review: https://reviews.apache.org/r/35494


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c4ef2892
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c4ef2892
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c4ef2892

Branch: refs/heads/master
Commit: c4ef28928e120e56d0eba936a227b3d9e6734a78
Parents: 4697d8c
Author: Alexander Rojas <[email protected]>
Authored: Tue Jul 7 10:45:04 2015 +0200
Committer: Bernd Mathiske <[email protected]>
Committed: Tue Jul 7 10:45:04 2015 +0200

----------------------------------------------------------------------
 docs/mesos-c++-style-guide.md | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c4ef2892/docs/mesos-c++-style-guide.md
----------------------------------------------------------------------
diff --git a/docs/mesos-c++-style-guide.md b/docs/mesos-c++-style-guide.md
index a806d86..9dca331 100644
--- a/docs/mesos-c++-style-guide.md
+++ b/docs/mesos-c++-style-guide.md
@@ -59,6 +59,9 @@ void Slave::statusUpdate(StatusUpdate update, const UPID& pid)
 * Access modifiers are not indented (Google uses one space indentation).
 * Constructor initializers are indented by 2 spaces (Google indents by 4).
 
+### Templates
+* Leave one space after the `template` keyword, e.g. `template <typename T>` 
rather than `template<typename T>`.
+
 ### Function Definition/Invocation
 * Newline when calling or defining a function: indent with 4 spaces.
 * We do not follow Google's style of wrapping on the open parenthesis, the 
general goal is to reduce visual "jaggedness" in the code. Prefer (1), (4), 
(5), sometimes (3), never (2):

Reply via email to