[clang] baa9eae - [NFC] fix incorrect indentation in docs

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 4 20:05:49 PDT 2022


Author: Chuanqi Xu
Date: 2022-09-05T11:05:23+08:00
New Revision: baa9eae279c1639f406015734ebbf4c429b15c21

URL: https://github.com/llvm/llvm-project/commit/baa9eae279c1639f406015734ebbf4c429b15c21
DIFF: https://github.com/llvm/llvm-project/commit/baa9eae279c1639f406015734ebbf4c429b15c21.diff

LOG: [NFC] fix incorrect indentation in docs

Added: 
    

Modified: 
    clang/docs/StandardCPlusPlusModules.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/StandardCPlusPlusModules.rst b/clang/docs/StandardCPlusPlusModules.rst
index ae434b14ef50c..86ba6f44dbb02 100644
--- a/clang/docs/StandardCPlusPlusModules.rst
+++ b/clang/docs/StandardCPlusPlusModules.rst
@@ -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
 -----------


        


More information about the cfe-commits mailing list