Skip to content

Commit 4e026ec

Browse files
jwakelytkoeppe
authored andcommitted
[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 2f42a31 commit 4e026ec

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

@@ -17748,7 +17748,7 @@
1774817748
\begin{itemdescr}
1774917749
\pnum
1775017750
\effects
17751-
Establishes the postcondition, as if by POSIX \tcode{chdir()}.
17751+
Establishes the postcondition, as if by POSIX \tcode{chdir}.
1775217752

1775317753
\pnum
1775417754
\ensures
@@ -17781,7 +17781,7 @@
1778117781
\begin{note}
1778217782
On POSIX platforms, this is
1778317783
determined as if by the values of the POSIX \tcode{stat} class,
17784-
obtained as if by \tcode{stat()} for the two paths, having equal \tcode{st_dev} values
17784+
obtained as if by \tcode{stat} for the two paths, having equal \tcode{st_dev} values
1778517785
and equal \tcode{st_ino} values.
1778617786
\end{note}
1778717787

@@ -17859,7 +17859,7 @@
1785917859
\item
1786017860
If \tcode{is_regular_file(p)}, the size in bytes of the file
1786117861
\tcode{p} resolves to, determined as if by the value of the POSIX \tcode{stat}
17862-
class member \tcode{st_size} obtained as if by POSIX \tcode{stat()}.
17862+
class member \tcode{st_size} obtained as if by POSIX \tcode{stat}.
1786317863
\item
1786417864
Otherwise, the result is \impldef{result of \tcode{filesystem::file_size}}.
1786517865
\end{itemize}
@@ -18221,7 +18221,7 @@
1822118221
\returns
1822218222
The time of last data modification of \tcode{p},
1822318223
determined as if by the value of the POSIX \tcode{stat} class member \tcode{st_mtime}
18224-
obtained as if by POSIX \tcode{stat()}.
18224+
obtained as if by POSIX \tcode{stat}.
1822518225
The signature with argument \tcode{ec} returns \tcode{file_time_type::min()}
1822618226
if an error occurs.
1822718227

@@ -18241,7 +18241,7 @@
1824118241
\pnum
1824218242
\effects
1824318243
Sets the time of last data modification of the file
18244-
resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens()}.
18244+
resolved to by \tcode{p} to \tcode{new_time}, as if by POSIX \tcode{futimens}.
1824518245

1824618246
\pnum
1824718247
\throws
@@ -18275,7 +18275,7 @@
1827518275
to the file \tcode{p} resolves to,
1827618276
or to file \tcode{p} itself if \tcode{p} is a symbolic link
1827718277
and \tcode{perm_options::nofollow} is set in \tcode{opts}.
18278-
The action is applied as if by POSIX \tcode{fchmodat()}.
18278+
The action is applied as if by POSIX \tcode{fchmodat}.
1827918279

1828018280
\pnum
1828118281
\begin{note}
@@ -18412,7 +18412,7 @@
1841218412
\pnum
1841318413
\effects
1841418414
If \tcode{exists(symlink_status(p, ec))}, the file \tcode{p} is
18415-
removed as if by POSIX \tcode{remove()}.
18415+
removed as if by POSIX \tcode{remove}.
1841618416
\begin{note}
1841718417
A symbolic link is itself removed, rather than the file it
1841818418
resolves to.
@@ -18447,7 +18447,7 @@
1844718447
\pnum
1844818448
\effects
1844918449
Recursively deletes the contents of \tcode{p} if it exists,
18450-
then deletes file \tcode{p} itself, as if by POSIX \tcode{remove()}.
18450+
then deletes file \tcode{p} itself, as if by POSIX \tcode{remove}.
1845118451
\begin{note}
1845218452
A symbolic link is itself removed, rather than the file it
1845318453
resolves to.
@@ -18481,7 +18481,7 @@
1848118481
\pnum
1848218482
\effects
1848318483
Renames \tcode{old_p} to \tcode{new_p}, as if by
18484-
POSIX \tcode{rename()}.
18484+
POSIX \tcode{rename}.
1848518485

1848618486
\begin{note}
1848718487
\begin{itemize}
@@ -18517,7 +18517,7 @@
1851718517
\pnum
1851818518
\effects
1851918519
Causes the size that would be returned by \tcode{file_size(p)} to be
18520-
equal to \tcode{new_size}, as if by POSIX \tcode{truncate()}.
18520+
equal to \tcode{new_size}, as if by POSIX \tcode{truncate}.
1852118521

1852218522
\pnum
1852318523
\throws
@@ -18604,14 +18604,14 @@
1860418604
\pnum
1860518605
\effects
1860618606
If possible, determines the attributes
18607-
of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat()}
18607+
of the file \tcode{p} resolves to, as if by using POSIX \tcode{stat}
1860818608
to obtain a POSIX \tcode{struct stat}.
1860918609
If, during attribute determination, the underlying file system API reports
1861018610
an error, sets \tcode{ec} to indicate the specific error reported.
1861118611
Otherwise, \tcode{ec.clear()}.
1861218612
\begin{note}
1861318613
This allows users to inspect the specifics of underlying
18614-
API errors even when the value returned by \tcode{status()} is not
18614+
API errors even when the value returned by \tcode{status} is not
1861518615
\tcode{file_status(file_type::none)}.
1861618616
\end{note}
1861718617

@@ -18705,9 +18705,9 @@
1870518705
\begin{itemdescr}
1870618706
\pnum
1870718707
\effects
18708-
Same as \tcode{status()}, above,
18708+
Same as \tcode{status}, above,
1870918709
except that the attributes
18710-
of \tcode{p} are determined as if by using POSIX \tcode{lstat()}
18710+
of \tcode{p} are determined as if by using POSIX \tcode{lstat}
1871118711
to obtain a POSIX \tcode{struct stat}.
1871218712

1871318713
\pnum
@@ -18717,7 +18717,7 @@
1871718717

1871818718
\pnum
1871918719
\returns
18720-
Same as \tcode{status()}, above, except
18720+
Same as \tcode{status}, above, except
1872118721
that if the attributes indicate a symbolic link, as if by POSIX \tcode{S_ISLNK},
1872218722
returns \tcode{file_status(file_type::symlink, prms)}.
1872318723
The signature with argument \tcode{ec} returns
@@ -18786,14 +18786,14 @@
1878618786
Using \tcode{status(p)} or \tcode{status(p, ec)}, respectively,
1878718787
to determine existence,
1878818788
return a path composed by \tcode{operator/=}
18789-
from the result of calling \tcode{canonical()}
18789+
from the result of calling \tcode{canonical}
1879018790
with a path argument composed of
1879118791
the leading elements of \tcode{p} that exist, if any, followed by
1879218792
the elements of \tcode{p} that do not exist, if any.
1879318793
For the first form,
18794-
\tcode{canonical()} is called without an \tcode{error_code} argument.
18794+
\tcode{canonical} is called without an \tcode{error_code} argument.
1879518795
For the second form,
18796-
\tcode{canonical()} is called
18796+
\tcode{canonical} is called
1879718797
with \tcode{ec} as an \tcode{error_code} argument, and
1879818798
\tcode{path()} is returned at the first error occurrence, if any.
1879918799

0 commit comments

Comments
 (0)