Fix UseAuto not transforming iterator when non-fully qualifiers are used and
authorAriel J. Bernal <ariel.j.bernal@intel.com>
Mon, 15 Jul 2013 15:37:05 +0000 (15:37 +0000)
committerAriel J. Bernal <ariel.j.bernal@intel.com>
Mon, 15 Jul 2013 15:37:05 +0000 (15:37 +0000)
commit601858aed76429a0ddf2324b05946d13e59a6471
tree6df1b20597e7c8f1245cb33948b57a87167f36d3
parenteaa534450c2ce54ad6fd7400d387e4de997817a6
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
clang-tools-extra/cpp11-migrate/Core/CustomMatchers.h [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrMatchers.cpp
clang-tools-extra/cpp11-migrate/UseAuto/UseAutoMatchers.cpp
clang-tools-extra/test/cpp11-migrate/UseAuto/Inputs/test_std_container.h
clang-tools-extra/test/cpp11-migrate/UseAuto/basic_iterator_tests.cpp
clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp