summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp
diff options
context:
space:
mode:
authorAriel J. Bernal <ariel.j.bernal@intel.com>2013-07-15 15:37:05 +0000
committerAriel J. Bernal <ariel.j.bernal@intel.com>2013-07-15 15:37:05 +0000
commit601858aed76429a0ddf2324b05946d13e59a6471 (patch)
tree6df1b20597e7c8f1245cb33948b57a87167f36d3 /clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp
parenteaa534450c2ce54ad6fd7400d387e4de997817a6 (diff)
downloadbcm5719-llvm-601858aed76429a0ddf2324b05946d13e59a6471.tar.gz
bcm5719-llvm-601858aed76429a0ddf2324b05946d13e59a6471.zip
Fix UseAuto not transforming iterator when non-fully qualifiers are used and
using inline namespaces is specified. UseAuto used to fail to transform iterators when using inline namespaces and non-fully qualified types, relying on a using directive previously declared. - This fix uses the already define isFromStdNamespace matcher. - Fixed tests and added a new test using inline namespaces. - Added CustomMatchers to reuse common matchers among transforms. llvm-svn: 186327
Diffstat (limited to 'clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp')
-rw-r--r--clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp b/clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp
index 03779a62037..30199e93f44 100644
--- a/clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp
+++ b/clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp
@@ -15,17 +15,17 @@
//
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
// RUN: cpp11-migrate -use-auto %t.cpp -- -DCONTAINER=array \
-// RUN: -DUSE_INLINE_NAMESPACE -I %S/Inputs
+// RUN: -DUSE_INLINE_NAMESPACE=1 -I %S/Inputs
// RUN: FileCheck -input-file=%t.cpp %s
//
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
// RUN: cpp11-migrate -use-auto %t.cpp -- -DCONTAINER=array \
-// RUN: -DUSE_BASE_CLASS_ITERATORS -I %S/Inputs
+// RUN: -DUSE_BASE_CLASS_ITERATORS=1 -I %S/Inputs
// RUN: FileCheck -input-file=%t.cpp %s
//
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
// RUN: cpp11-migrate -use-auto %t.cpp -- -DCONTAINER=array \
-// RUN: -DUSE_INNER_CLASS_ITERATORS -I %S/Inputs
+// RUN: -DUSE_INNER_CLASS_ITERATORS=1 -I %S/Inputs
// RUN: FileCheck -input-file=%t.cpp %s
//
//
OpenPOWER on IntegriCloud