diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -686,7 +686,7 @@ .. option:: -gen-reproducer Generates preprocessed source files, a reproducer script and if relevant, a - cache containing: built module pcm's and all headers needed to rebuilt the + cache containing: built module pcm's and all headers needed to rebuild the same modules. .. _rpass: @@ -3913,4 +3913,4 @@ If the user is using the static CRT (``/MT``), then different runtimes are used to produce DLLs and EXEs. To link a DLL, pass ``clang_rt.asan_dll_thunk-x86_64.lib``. To link an EXE, pass -``-wholearchive:clang_rt.asan-x86_64.lib``. +``-wholearchive:clang_rt.asan-x86_64.lib``. \ No newline at end of file diff --git a/libcxx/docs/UsingLibcxx.rst b/libcxx/docs/UsingLibcxx.rst --- a/libcxx/docs/UsingLibcxx.rst +++ b/libcxx/docs/UsingLibcxx.rst @@ -114,10 +114,10 @@ GCC does not provide a way to switch from libstdc++ to libc++. You must manually configure the compile and link commands. -In particular you must tell GCC to remove the libstdc++ include directories +In particular, you must tell GCC to remove the libstdc++ include directories using ``-nostdinc++`` and to not link libstdc++.so using ``-nodefaultlibs``. -Note that ``-nodefaultlibs`` removes all of the standard system libraries and +Note that ``-nodefaultlibs`` removes all the standard system libraries and not just libstdc++ so they must be manually linked. For example: .. code-block:: bash @@ -151,7 +151,7 @@ **_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS**: This macro is used to enable -Wthread-safety annotations on libc++'s - ``std::mutex`` and ``std::lock_guard``. By default these annotations are + ``std::mutex`` and ``std::lock_guard``. By default, these annotations are disabled and must be manually enabled by the user. **_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS**: @@ -352,4 +352,4 @@ * ``move_if_noexcept`` * ``identity::operator()`` * ``to_integer`` -* ``to_underlying`` +* ``to_underlying`` \ No newline at end of file