llvm-project/clang/unittests/Tooling
Eric Liu db887cab7a Fully qualify the renamed symbol if the shortened name is ambiguous.
Summary:
For example, when renaming `a:🅱️:foo` to `y::foo` below, replacing
`x::foo()` with `y::foo()` can cause ambiguity. In such cases, we simply fully
qualify the name with leading `::`.
```
namespace a {
namespace b {
namespace x { void foo() {} }
namespace y { void foo() {} }
}
}

namespace a {
namespace b {
void f() { x::foo(); }
}
}
```

Reviewers: ilya-biryukov, hokein

Reviewed By: ilya-biryukov

Subscribers: cfe-commits

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

llvm-svn: 338832
2018-08-03 09:16:07 +00:00
..
RecursiveASTVisitorTests [UnitTests] NFC/build-perf: Break up nontrivial compile jobs 2018-04-19 18:19:02 +00:00
ASTSelectionTest.cpp [refactor][selection] canonicalize decl ref callee to the call expr 2017-11-14 23:10:50 +00:00
CMakeLists.txt [clang][tooling] Don't forget to link to clangToolingInclusions. 2018-06-04 12:04:41 +00:00
CastExprTest.cpp Make CastExpr::getSubExprAsWritten look through implicit temporary under CK_ConstructorConversion 2017-06-27 08:19:09 +00:00
CommentHandlerTest.cpp Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" 2018-02-27 15:54:55 +00:00
CompilationDatabaseTest.cpp [Tooling] Add operator== to CompileCommand 2018-07-17 14:13:05 +00:00
DiagnosticsYamlTest.cpp Try to fix modules build 2017-07-15 00:29:25 +00:00
ExecutionTest.cpp Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" 2018-02-27 15:54:55 +00:00
FixItTest.cpp [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
HeaderIncludesTest.cpp Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
LexicallyOrderedRecursiveASTVisitorTest.cpp Replacing "or" with "||" to appease MSVC. 2017-09-06 15:12:05 +00:00
LookupTest.cpp Fully qualify the renamed symbol if the shortened name is ambiguous. 2018-08-03 09:16:07 +00:00
QualTypeNamesTest.cpp Allow modifying the PrintingPolicy for fully qualified names. 2018-05-04 20:12:39 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RecursiveASTVisitorTestPostOrderVisitor.cpp Refactor RecursiveASTVisitor test for post-order traversal 2018-01-24 09:40:16 +00:00
RecursiveASTVisitorTestTypeLocVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RefactoringActionRulesTest.cpp Unittests misc. typos 2018-02-06 13:12:29 +00:00
RefactoringCallbacksTest.cpp Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks 2017-05-10 07:48:45 +00:00
RefactoringTest.cpp s/LLVM_ON_WIN32/_WIN32/, clang 2018-04-27 19:11:14 +00:00
ReplacementTest.h clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
ReplacementsYamlTest.cpp [clang-tidy] Add check name to YAML export 2017-01-03 14:35:47 +00:00
RewriterTest.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
RewriterTestContext.h
TestVisitor.h Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" 2018-02-27 15:54:55 +00:00
ToolingTest.cpp IWYU for llvm-config.h in clang. See r331124 for details. 2018-04-30 13:52:15 +00:00