mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Update Objective-C style guide to 2.12:
- Refer to the correct section on avoiding exceptions
This commit is contained in:
parent
71619d34e3
commit
a764d2becf
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<p align="right">
|
<p align="right">
|
||||||
|
|
||||||
Revision 2.11
|
Revision 2.12
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
@ -329,14 +329,15 @@ Revision 2.11
|
||||||
<STYLEPOINT title="Exceptions">
|
<STYLEPOINT title="Exceptions">
|
||||||
<SUMMARY>
|
<SUMMARY>
|
||||||
Format exceptions with each <code>@</code> label on its own line and a
|
Format exceptions with each <code>@</code> label on its own line and a
|
||||||
space between the <code>@</code> label and the opening brace '{', as
|
space between the <code>@</code> label and the opening brace
|
||||||
well as between the <code>@catch</code> and the caught object
|
(<code>{</code>), as well as between the <code>@catch</code> and the
|
||||||
declaration.
|
caught object declaration.
|
||||||
</SUMMARY>
|
</SUMMARY>
|
||||||
<BODY>
|
<BODY>
|
||||||
<p>
|
<p>
|
||||||
If you must use Obj-C exceptions (please see <a href="#Exceptions">Exceptions</a> for reasons why you <b>should
|
If you must use Obj-C exceptions, format them as follows. However, see
|
||||||
not</b> be using exceptions) format them as follows:
|
<a href="#Avoid_Throwing_Exceptions">Avoid Throwing Exceptions</a> for
|
||||||
|
reasons why you <b>should not</b> be using exceptions.
|
||||||
</p>
|
</p>
|
||||||
<CODE_SNIPPET>
|
<CODE_SNIPPET>
|
||||||
@try {
|
@try {
|
||||||
|
@ -1429,7 +1430,7 @@ Revision 2.11
|
||||||
<HR/>
|
<HR/>
|
||||||
|
|
||||||
<p align="right">
|
<p align="right">
|
||||||
Revision 2.11
|
Revision 2.12
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -838,12 +838,9 @@ xmlns:fn="http://www.w3.org/2005/xpath-functions">
|
||||||
of the function name in their respective spans.-->
|
of the function name in their respective spans.-->
|
||||||
<xsl:template name="print_function_name">
|
<xsl:template name="print_function_name">
|
||||||
<xsl:param name="text"/>
|
<xsl:param name="text"/>
|
||||||
<span class="internal"><xsl:value-of select="$text"/></span>
|
|
||||||
<span class="external">
|
|
||||||
<xsl:call-template name="convert_camel_case_to_lowercase_with_under">
|
<xsl:call-template name="convert_camel_case_to_lowercase_with_under">
|
||||||
<xsl:with-param name="text" select="$text"/>
|
<xsl:with-param name="text" select="$text"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</span>
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Given a single word of text convert it from CamelCase to
|
<!-- Given a single word of text convert it from CamelCase to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user