Skip to content

Commit d41c828

Browse files
committed
fix CI
1 parent 19065e2 commit d41c828

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

clang/docs/StandardCPlusPlusModules.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -685,22 +685,22 @@ Also it is suggested to refactor your headers to include thirdparty headers cond
685685

686686
.. code-block:: c++
687687

688-
+ #ifndef IN_MODULE_INTERFACE
688+
#ifndef IN_MODULE_INTERFACE
689689
#include "third_party/A/headers.h"
690-
+ #endif
690+
#endif
691691

692692
#include "header_x.h"
693693

694694
...
695695

696-
This may be helpful to get better diagnostic messages if you forgot to update your module
696+
This may be helpful to get better diagnostic messages if you forgot to update your module
697697
interface unit file during maintaining.
698698

699699
The reasoning for the practice is that the declarations in the language linkage are considered
700700
to be attached to the global module. So the ABI of your library in the modular version
701701
wouldn't change.
702702

703-
While this style looks not as convenient as the export-using style, it is easier to convert
703+
While this style looks not as convenient as the export-using style, it is easier to convert
704704
to other styles.
705705

706706
ABI breaking style
@@ -783,14 +783,14 @@ In that case, you need to convert your source files (.cpp files) to module imple
783783

784784
.. code-block:: c++
785785

786-
+ #ifndef IN_MODULE_INTERFACE
786+
#ifndef IN_MODULE_INTERFACE
787787
// List all the includes here.
788788
#include "third_party/A/headers.h"
789789
...
790790
#include "header.h"
791-
+ #endif
791+
#endif
792792

793-
+ module your_library;
793+
module your_library;
794794

795795
// Following off should be unchanged.
796796
...
@@ -864,14 +864,14 @@ headers to:
864864
.. code-block:: c++
865865

866866
#pragma once
867-
+ #ifndef YOUR_LIBRARY_IMPORTED
867+
#ifndef YOUR_LIBRARY_IMPORTED
868868
...
869-
+ #endif
869+
#endif
870870

871871
Importing modules
872872
~~~~~~~~~~~~~~~~~
873873

874-
When there are dependent libraries providing modules, we suggest you to import that in
874+
When there are dependent libraries providing modules, we suggest you to import that in
875875
your module.
876876

877877
Most of the existing libraries would fall into this catagory once the std module gets available.

0 commit comments

Comments
 (0)