Recommit "[ClangTidy] Add UsingInserter and NamespaceAliaser"
authorHaojian Wu <hokein@google.com>
Mon, 17 Oct 2016 08:33:59 +0000 (08:33 +0000)
committerHaojian Wu <hokein@google.com>
Mon, 17 Oct 2016 08:33:59 +0000 (08:33 +0000)
commitada286202e2ba878163787f31b26d952de30797a
tree0fb0d3c2c07c913300b6277652c315a4a65f8ac9
parent73fc15a9891f59ce46f65e19f2b89b589c154b20
Recommit "[ClangTidy] Add UsingInserter and NamespaceAliaser"

Summary: This adds helper classes to add using declaractions and namespace aliases to function bodies. These help making function calls to deeply nested functions concise (e.g. when calling helpers in a refactoring)

Patch by Julian Bangert!

Reviewers: alexfh, hokein

Subscribers: beanz, mgorny, cfe-commits

Differential Revision: https://reviews.llvm.org/D24997

llvm-svn: 284368
clang-tools-extra/clang-tidy/utils/ASTUtils.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/ASTUtils.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/CMakeLists.txt
clang-tools-extra/clang-tidy/utils/NamespaceAliaser.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/NamespaceAliaser.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/UsingInserter.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/UsingInserter.h [new file with mode: 0644]
clang-tools-extra/unittests/clang-tidy/CMakeLists.txt
clang-tools-extra/unittests/clang-tidy/NamespaceAliaserTest.cpp [new file with mode: 0644]
clang-tools-extra/unittests/clang-tidy/UsingInserterTest.cpp [new file with mode: 0644]