[PATCH] D136940: [clang][Driver] allow tilde in user config dir

LJC via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 28 19:26:54 PDT 2022


paperchalice added a comment.

In D136940#3893391 <https://reviews.llvm.org/D136940#3893391>, @MaskRay wrote:

> `clang/test/Driver/config-file3.c` tests `--config-user-dir=` but I cannot think of a portable way testing this.
> `RUN: echo ~; %clang -### --config-user-dir=~ ...` doesn't work as the selected directory is not dumped.

I can dump user configuration file directory via `clang --config-user-dir=<some directory> -v`, but
`RUN: { echo tilde: ~; %clang -v --config-user-dir=~ 2>&1; } | FileCheck %s -check-prefix CHECK-TILDE` doesn't work on Windows.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136940/new/

https://reviews.llvm.org/D136940



More information about the cfe-commits mailing list