[llvm] 32693d9 - [llvm-config] Sort options and update documentation. NFC.

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 1 11:28:22 PDT 2025


Author: Alexandre Ganea
Date: 2025-11-01T14:28:11-04:00
New Revision: 32693d9335ef402cb82ca7a6595f5467bd603a3f

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

LOG: [llvm-config] Sort options and update documentation. NFC.

This is a follow-up for https://github.com/llvm/llvm-project/pull/103397

Added: 
    

Modified: 
    llvm/docs/CommandGuide/llvm-config.rst
    llvm/tools/llvm-config/llvm-config.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/docs/CommandGuide/llvm-config.rst b/llvm/docs/CommandGuide/llvm-config.rst
index 63658d0d90452..1c5c9c7447902 100644
--- a/llvm/docs/CommandGuide/llvm-config.rst
+++ b/llvm/docs/CommandGuide/llvm-config.rst
@@ -126,6 +126,11 @@ OPTIONS
 
  Print the installation prefix for LLVM.
 
+**--quote-paths**
+
+ Quote and escape paths when needed, most notably when a quote, space, backslash
+ or dollar sign characters are present in the path.
+
 **--shared-mode**
 
  Print how the provided components can be collectively linked (`shared` or `static`).

diff  --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp
index 36cd7913eda82..5300c5c83e5ce 100644
--- a/llvm/tools/llvm-config/llvm-config.cpp
+++ b/llvm/tools/llvm-config/llvm-config.cpp
@@ -219,7 +219,6 @@ Options:\n\
   --components      List of all possible components.\n\
   --cppflags        C preprocessor flags for files that include LLVM headers.\n\
   --cxxflags        C++ compiler flags for files that include LLVM headers.\n\
-  --quote-paths     Quote and escape paths when needed.\n\
   --has-rtti        Print whether or not LLVM was built with rtti (YES or NO).\n\
   --help            Print a summary of llvm-config arguments.\n\
   --host-target     Target triple used to configure LLVM.\n\
@@ -234,6 +233,7 @@ Options:\n\
   --link-static     Link the component libraries statically.\n\
   --obj-root        Print the object root used to build LLVM.\n\
   --prefix          Print the installation prefix.\n\
+  --quote-paths     Quote and escape paths when needed.\n\
   --shared-mode     Print how the provided components can be collectively linked (`shared` or `static`).\n\
   --system-libs     System Libraries needed to link against LLVM components.\n\
   --targets-built   List of all targets currently built.\n\


        


More information about the llvm-commits mailing list