hanchenye-llvm-project/clang/lib/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
..
ASTDiff Fix typos in clang 2018-04-06 15:14:32 +00:00
Core Fully qualify the renamed symbol if the shortened name is ambiguous. 2018-08-03 09:16:07 +00:00
Inclusions Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
Refactoring Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
AllTUsExecution.cpp [Tooling] Optimize memory usage in InMemoryToolResults. 2018-04-11 08:13:07 +00:00
ArgumentsAdjusters.cpp [Tooling] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-14 21:05:51 +00:00
CMakeLists.txt Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
CommonOptionsParser.cpp
CompilationDatabase.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Execution.cpp [Tooling] Use UniqueStringSaver. NFC 2018-07-23 11:25:25 +00:00
FileMatchTrie.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FixIt.cpp
InterpolatingCompilationDatabase.cpp [Tooling] Correct the "-std" compile command option. 2018-04-11 09:18:18 +00:00
JSONCompilationDatabase.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Refactoring.cpp
RefactoringCallbacks.cpp
StandaloneExecution.cpp [Tooling] Make standalone executor support user-provided vfs. 2018-07-12 18:32:11 +00:00
Tooling.cpp [Tooling] Get working directory properly without assuming real file system. 2018-07-12 14:54:25 +00:00