[clang-tools-extra] 82f6ae5 - [clang-change-namespace] Change file pattern to be an anchored regex
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 06:49:01 PST 2019
Author: Kadir Cetinkaya
Date: 2019-12-04T15:48:44+01:00
New Revision: 82f6ae5433cac1ba0d02e8df253da3d3b3ce68e1
URL: https://github.com/llvm/llvm-project/commit/82f6ae5433cac1ba0d02e8df253da3d3b3ce68e1
DIFF: https://github.com/llvm/llvm-project/commit/82f6ae5433cac1ba0d02e8df253da3d3b3ce68e1.diff
LOG: [clang-change-namespace] Change file pattern to be an anchored regex
Added:
Modified:
clang-tools-extra/test/clang-change-namespace/macro.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/test/clang-change-namespace/macro.cpp b/clang-tools-extra/test/clang-change-namespace/macro.cpp
index ba47de603da8..40c4caf05899 100644
--- a/clang-tools-extra/test/clang-change-namespace/macro.cpp
+++ b/clang-tools-extra/test/clang-change-namespace/macro.cpp
@@ -1,7 +1,7 @@
// RUN: cp %S/macro.cpp %T/macro.cpp
// RUN: echo "#define USING using na::nc::X" > %T/macro.h
//
-// RUN: clang-change-namespace -old_namespace "na::nb" -new_namespace "x::y" --file_pattern "macro.cpp" --i %T/macro.cpp --
+// RUN: clang-change-namespace -old_namespace "na::nb" -new_namespace "x::y" --file_pattern "macro.cpp$" --i %T/macro.cpp --
// RUN: FileCheck -input-file=%T/macro.cpp -check-prefix=CHECK-CC %s
// RUN: FileCheck -input-file=%T/macro.h -check-prefix=CHECK-HEADER %s
//
More information about the cfe-commits
mailing list