[all-commits] [llvm/llvm-project] 421ba7: [llvm-config] Add new flag `--quote-paths` to opti...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Sat Nov 1 10:19:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 421ba7fbb582f2bedcdf46d5afc03367d229bc31
      https://github.com/llvm/llvm-project/commit/421ba7fbb582f2bedcdf46d5afc03367d229bc31
  Author: Alexandre Ganea <aganea at havenstudios.com>
  Date:   2025-11-01 (Sat, 01 Nov 2025)

  Changed paths:
    M llvm/docs/ReleaseNotes.md
    M llvm/test/tools/llvm-config/paths.test
    M llvm/tools/llvm-config/llvm-config.cpp

  Log Message:
  -----------
  [llvm-config] Add new flag `--quote-paths` to optionally quote and escape paths (#103397)

If any of the printed paths by llvm-config contain quotes, spaces,
backslashes or dollar sign characters, these paths will be quoted and
escaped, but only if using `--quote-paths`. The previous behavior is
retained for compatibility and `--quote-paths` is there to acknowledge
the migration to the new behavior.

Following discussion in #76304

Fixes #28117

Superseeds https://github.com/llvm/llvm-project/pull/97305

I could also do what @tothambrus11 suggests in
https://github.com/llvm/llvm-project/pull/97305#issuecomment-2282847990
but that makes all Windows paths quoted & escaped since they all contain
backslashes.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list