forked from OSchip/llvm-project
[NFC] fix incorrect indentation in docs
This commit is contained in:
parent
bc743bf666
commit
baa9eae279
|
@ -481,19 +481,19 @@ Then it is problematic if we remove ``foo.h`` before import `foo` module.
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
clang++ -std=c++20 foo.cppm --precompile -o foo.pcm
|
||||
mv foo.h foo.orig.h
|
||||
$ clang++ -std=c++20 foo.cppm --precompile -o foo.pcm
|
||||
$ mv foo.h foo.orig.h
|
||||
# The following one is rejected
|
||||
clang++ -std=c++20 Use.cpp -fmodule-file=foo.pcm -c
|
||||
$ clang++ -std=c++20 Use.cpp -fmodule-file=foo.pcm -c
|
||||
|
||||
The above case will rejected. And we're still able to workaround it by ``-Xclang -fmodules-embed-all-files`` option:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
clang++ -std=c++20 foo.cppm --precompile -Xclang -fmodules-embed-all-files -o foo.pcm
|
||||
mv foo.h foo.orig.h
|
||||
clang++ -std=c++20 Use.cpp -fmodule-file=foo.pcm -c -o Use.o
|
||||
clang++ Use.o foo.pcm
|
||||
$ clang++ -std=c++20 foo.cppm --precompile -Xclang -fmodules-embed-all-files -o foo.pcm
|
||||
$ mv foo.h foo.orig.h
|
||||
$ clang++ -std=c++20 Use.cpp -fmodule-file=foo.pcm -c -o Use.o
|
||||
$ clang++ Use.o foo.pcm
|
||||
|
||||
ABI Impacts
|
||||
-----------
|
||||
|
|
Loading…
Reference in New Issue