llvm-project/clang/test/Driver/unique-source-file-names.c
Peter Collingbourne d1b0b4bb44
Add -funique-source-file-identifier option.
This option complements -funique-source-file-names and allows the user
to use a different unique identifier than the source file path.

Reviewers: teresajohnson

Reviewed By: teresajohnson

Pull Request: https://github.com/llvm/llvm-project/pull/142901
2025-06-05 10:52:01 -07:00

12 lines
389 B
C

// RUN: %clang -funique-source-file-names -### %s 2> %t
// RUN: FileCheck --check-prefix=SRC < %t %s
// SRC: "-cc1"
// SRC: "-funique-source-file-identifier={{.*}}unique-source-file-names.c"
// RUN: %clang -funique-source-file-names -funique-source-file-identifier=foo -### %s 2> %t
// RUN: FileCheck --check-prefix=ID < %t %s
// ID: "-cc1"
// ID: "-funique-source-file-identifier=foo"