index
:
tcl.git
8_5_with_8_6_regexp
Coverity_CID_1251203
ISC_peephole
activestate_nre_excised_variant_1_roll_forward
activestate_nre_excised_variant_2_subtracted
adjust_fix
ajuba_ajuba2_2_0_synthetic
ajuba_ajuba2_2_1_base_synthetic
aku_mem_debug_allow_regular
aku_review
aku_tip_280_cl_perf_trial
aku_tkt_6141c15186
amg_array_enum_c_api
amg_string_insert
androwish
apn_hash_opt
array_search_unset
aspect_async_pipe
aspect_bug_391bc0fd2c
aspect_lreplace_cleanup
aspect_lreplace_fix
aspect_lreplace_refix
aspect_shimmer_singleton_lists
aspect_string_match
aspect_tip288
avl_strcat_fix
avl_tip_282
backout_memaccounting
bch_coverity
better_deprecation
better_deprecation_85
bg_tip_282
bsg_0d_radix_prefix
bug3036566
bug_010f4162ef
bug_0520d17284
bug_05489ce335
bug_0b874c344d
bug_0b874c344d_ak_info_frame_coro
bug_0b8c387cf7
bug_0c043a175
bug_0e4d88b650
bug_0f42ff7871
bug_1189293
bug_1224888
bug_12b0997ce7
bug_13d3af3ad5
bug_13d3af3ad5_fork
bug_1493a43044
bug_1536227
bug_16828b3744
bug_1712098
bug_1758a0b603
bug_1a25fdfec6
bug_1b0266d8bb
bug_2152292
bug_219866c1e9
bug_2413550
bug_2502002
bug_25842c161f
bug_272e866f1e
bug_2902268
bug_2911139
bug_2992970
bug_2a94652ee1
bug_2f7cbd01c3
bug_2f9df4c4fa
bug_3024359
bug_3033307
bug_3092089
bug_3154ea2
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#include
"cmDocumentationFormatterUsage.h"
#include
"cmDocumentationSection.h"
cmDocumentationFormatterUsage
::
cmDocumentationFormatterUsage
()
:
cmDocumentationFormatterText
()
{
}
void
cmDocumentationFormatterUsage
::
PrintSection
(
std
::
ostream
&
os
,
const
cmDocumentationSection
&
section
,
const char
*
name
)
{
if
(
name
)
{
os
<<
name
<<
"
\n
"
;
}
const
std
::
vector
<
cmDocumentationEntry
> &
entries
=
section
.
GetEntries
();
for
(
std
::
vector
<
cmDocumentationEntry
>::
const_iterator op
=
entries
.
begin
();
op
!=
entries
.
end
(); ++
op
)
{
if
(
op
->
Name
.
size
())
{
os
<<
" "
<<
op
->
Name
;
this
->
TextIndent
=
" "
;
int
align
=
static_cast
<
int
>(
strlen
(
this
->
TextIndent
))-
4
;
for
(
int
i
=
static_cast
<
int
>(
op
->
Name
.
size
());
i
<
align
; ++
i
)
{
os
<<
" "
;
}
if
(
op
->
Name
.
size
() >
strlen
(
this
->
TextIndent
)-
4
)
{
os
<<
"
\n
"
;
os
.
write
(
this
->
TextIndent
,
strlen
(
this
->
TextIndent
)-
2
);
}
os
<<
"= "
;
this
->
PrintColumn
(
os
,
op
->
Brief
.
c_str
());
os
<<
"
\n
"
;
}
else
{
os
<<
"
\n
"
;
this
->
TextIndent
=
""
;
this
->
PrintFormatted
(
os
,
op
->
Brief
.
c_str
());
}
}
os
<<
"
\n
"
;
}