Skip to content

Commit 3dc2253

Browse files
committed
[fs.op.funcs] Remove empty parens when referring to functions by name
As per the Specification Style Guidelines. https://github.com/cplusplus/draft/wiki/Specification-Style-Guidelines#describing-function-calls
1 parent 5d16ad0 commit 3dc2253

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

source/iostreams.tex

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17515,7 +17515,7 @@
1751517515
\begin{itemdescr}
1751617516
\pnum
1751717517
\effects
17518-
Calls \tcode{create_directory()} for each element of \tcode{p}
17518+
Calls \tcode{create_directory} for each element of \tcode{p}
1751917519
that does not exist.
1752017520

1752117521
\pnum
@@ -17608,7 +17608,7 @@
1760817608
\begin{itemdescr}
1760917609
\pnum
1761017610
\effects
17611-
Establishes the postcondition, as if by POSIX \tcode{symlink()}.
17611+
Establishes the postcondition, as if by POSIX \tcode{symlink}.
1761217612

1761317613
\pnum
1761417614
\ensures
@@ -17623,7 +17623,7 @@
1762317623
\begin{note}
1762417624
Some operating systems require symlink creation to
1762517625
identify that the link is to a directory.
17626-
Thus, \tcode{create_symlink()} (instead of \tcode{create_directory_symlink()})
17626+
Thus, \tcode{create_symlink} (instead of \tcode{create_directory_symlink})
1762717627
cannot be used reliably to create directory symlinks.
1762817628
\end{note}
1762917629

@@ -17649,7 +17649,7 @@
1764917649
\begin{itemdescr}
1765017650
\pnum
1765117651
\effects
17652-
Establishes the postcondition, as if by POSIX \tcode{link()}.
17652+
Establishes the postcondition, as if by POSIX \tcode{link}.
1765317653

1765417654
\pnum
1765517655
\ensures
@@ -17684,7 +17684,7 @@
1768417684
\begin{itemdescr}
1768517685
\pnum
1768617686
\effects
17687-
Establishes the postcondition, as if by POSIX \tcode{symlink()}.
17687+
Establishes the postcondition, as if by POSIX \tcode{symlink}.
1768817688

1768917689
\pnum
1769017690
\ensures
@@ -17717,7 +17717,7 @@
1771717717
\returns
1771817718
The absolute path of the current working directory,
1771917719
whose pathname in the native format is
17720-
obtained as if by POSIX \tcode{getcwd()}.
17720+
obtained as if by POSIX \tcode{getcwd}.
1772117721
The signature with argument \tcode{ec} returns \tcode{path()} if an
1772217722
error occurs.
1772317723

@@ -17754,7 +17754,7 @@
1775417754
\begin{itemdescr}
1775517755
\pnum
1775617756
\effects
17757-
Establishes the postcondition, as if by POSIX \tcode{chdir()}.
17757+
Establishes the postcondition, as if by POSIX \tcode{chdir}.
1775817758

1775917759
\pnum
1776017760
\ensures
@@ -17787,7 +17787,7 @@
1778717787
\begin{note}
1778817788
On POSIX platforms, this is
1778917789
determined as if by the values of the POSIX \tcode{stat} class,
17790-
obtained as if by \tcode{stat()} for the two paths, having equal \tcode{st_dev} values
17790+
obtained as if by \tcode{stat} for the two paths, having equal \tcode{st_dev} values
1779117791
and equal \tcode{st_ino} values.
1779217792
\end{note}
1779317793

@@ -17865,7 +17865,7 @@
1786517865
\item
1786617866
If \tcode{is_regular_file(p)}, the size in bytes of the file
1786717867
\tcode{p} resolves to, determined as if by the value of the POSIX \tcode{stat}
17868-
class member \tcode{st_size} obtained as if by POSIX \tcode{stat()}.
17868+
class member \tcode{st_size} obtained as if by POSIX \tcode{stat}.
1786917869
\item
1787017870
Otherwise, the result is \impldef{result of \tcode{filesystem::file_size}}.
1787117871
\end{itemize}
@@ -18227,7 +18227,7 @@
1822718227
\returns
1822818228
The time of last data modification of \tcode{p},
1822918229
determined as if by the value of the POSIX \tcode{stat} class member \tcode{st_mtime}
18230-
obtained as if by POSIX \tcode{stat()}.
18230+
obtained as if by POSIX \tcode{stat}.
1823118231
The signature with argument \tcode{ec} returns \tcode{file_time_type::min()}
1823218232
if an error occurs.
1823318233

@@ -18247,7 +18247,7 @@
1824718247
\pnum
1824818248
\effects
1824918249
Sets the time of last data modification of the file
18250-
resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens()}.
18250+
resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens}.
1825118251

1825218252
\pnum
1825318253
\throws
@@ -18281,7 +18281,7 @@
1828118281
to the file \tcode{p} resolves to,
1828218282
or to file \tcode{p} itself if \tcode{p} is a symbolic link
1828318283
and \tcode{perm_options::nofollow} is set in \tcode{opts}.
18284-
The action is applied as if by POSIX \tcode{fchmodat()}.
18284+
The action is applied as if by POSIX \tcode{fchmodat}.
1828518285

1828618286
\pnum
1828718287
\begin{note}
@@ -18418,7 +18418,7 @@
1841818418
\pnum
1841918419
\effects
1842018420
If \tcode{exists(symlink_status(p, ec))}, the file \tcode{p} is
18421-
removed as if by POSIX \tcode{remove()}.
18421+
removed as if by POSIX \tcode{remove}.
1842218422
\begin{note}
1842318423
A symbolic link is itself removed, rather than the file it
1842418424
resolves to.
@@ -18453,7 +18453,7 @@
1845318453
\pnum
1845418454
\effects
1845518455
Recursively deletes the contents of \tcode{p} if it exists,
18456-
then deletes file \tcode{p} itself, as if by POSIX \tcode{remove()}.
18456+
then deletes file \tcode{p} itself, as if by POSIX \tcode{remove}.
1845718457
\begin{note}
1845818458
A symbolic link is itself removed, rather than the file it
1845918459
resolves to.
@@ -18487,7 +18487,7 @@
1848718487
\pnum
1848818488
\effects
1848918489
Renames \tcode{old_p} to \tcode{new_p}, as if by
18490-
POSIX \tcode{rename()}.
18490+
POSIX \tcode{rename}.
1849118491

1849218492
\begin{note}
1849318493
\begin{itemize}
@@ -18523,7 +18523,7 @@
1852318523
\pnum
1852418524
\effects
1852518525
Causes the size that would be returned by \tcode{file_size(p)} to be
18526-
equal to \tcode{new_size}, as if by POSIX \tcode{truncate()}.
18526+
equal to \tcode{new_size}, as if by POSIX \tcode{truncate}.
1852718527

1852818528
\pnum
1852918529
\throws
@@ -18610,14 +18610,14 @@
1861018610
\pnum
1861118611
\effects
1861218612
If possible, determines the attributes
18613-
of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat()}
18613+
of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat}
1861418614
to obtain a POSIX \tcode{struct stat}.
1861518615
If, during attribute determination, the underlying file system API reports
1861618616
an error, sets \tcode{ec} to indicate the specific error reported.
1861718617
Otherwise, \tcode{ec.clear()}.
1861818618
\begin{note}
1861918619
This allows users to inspect the specifics of underlying
18620-
API errors even when the value returned by \tcode{status()} is not
18620+
API errors even when the value returned by \tcode{status} is not
1862118621
\tcode{file_status(file_type::none)}.
1862218622
\end{note}
1862318623

@@ -18711,9 +18711,9 @@
1871118711
\begin{itemdescr}
1871218712
\pnum
1871318713
\effects
18714-
Same as \tcode{status()}, above,
18714+
Same as \tcode{status}, above,
1871518715
except that the attributes
18716-
of \tcode{p} are determined as if by using POSIX \tcode{lstat()}
18716+
of \tcode{p} are determined as if by using POSIX \tcode{lstat}
1871718717
to obtain a POSIX \tcode{struct stat}.
1871818718

1871918719
\pnum
@@ -18723,7 +18723,7 @@
1872318723

1872418724
\pnum
1872518725
\returns
18726-
Same as \tcode{status()}, above, except
18726+
Same as \tcode{status}, above, except
1872718727
that if the attributes indicate a symbolic link, as if by POSIX \tcode{S_ISLNK},
1872818728
returns \tcode{file_status(file_type::symlink, prms)}.
1872918729
The signature with argument \tcode{ec} returns
@@ -18792,14 +18792,14 @@
1879218792
Using \tcode{status(p)} or \tcode{status(p, ec)}, respectively,
1879318793
to determine existence,
1879418794
return a path composed by \tcode{operator/=}
18795-
from the result of calling \tcode{canonical()}
18795+
from the result of calling \tcode{canonical}
1879618796
with a path argument composed of
1879718797
the leading elements of \tcode{p} that exist, if any, followed by
1879818798
the elements of \tcode{p} that do not exist, if any.
1879918799
For the first form,
18800-
\tcode{canonical()} is called without an \tcode{error_code} argument.
18800+
\tcode{canonical} is called without an \tcode{error_code} argument.
1880118801
For the second form,
18802-
\tcode{canonical()} is called
18802+
\tcode{canonical} is called
1880318803
with \tcode{ec} as an \tcode{error_code} argument, and
1880418804
\tcode{path()} is returned at the first error occurrence, if any.
1880518805

0 commit comments

Comments
 (0)