diff options
| author | Ariel J. Bernal <ariel.j.bernal@intel.com> | 2013-07-15 15:37:05 +0000 |
|---|---|---|
| committer | Ariel J. Bernal <ariel.j.bernal@intel.com> | 2013-07-15 15:37:05 +0000 |
| commit | 601858aed76429a0ddf2324b05946d13e59a6471 (patch) | |
| tree | 6df1b20597e7c8f1245cb33948b57a87167f36d3 /clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp | |
| parent | eaa534450c2ce54ad6fd7400d387e4de997817a6 (diff) | |
| download | bcm5719-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/iterator.cpp')
| -rw-r--r-- | clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp b/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp index 7c4b5aa4678..8871bc1eb36 100644 --- a/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp +++ b/clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp @@ -1,6 +1,12 @@ // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp // RUN: cpp11-migrate -use-auto %t.cpp -- --std=c++11 -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 -- --std=c++11 -I %S/Inputs \ +// RUN: -DUSE_INLINE_NAMESPACE=1 +// RUN: FileCheck -input-file=%t.cpp %s + #define CONTAINER array #include "test_std_container.h" |

