Go to file
Haojian Wu 74f823a045 [clang-rename] Support renaming qualified symbol
Summary:
The patch adds a new feature for renaming qualified symbol references.
Unlike orginal clang-rename behavior, when renaming a qualified symbol to a new
qualified symbol (e.g "A::Foo" => "B::Bar"), this new rename behavior will
consider the prefix qualifiers of the symbol, and calculate the new prefix
qualifiers.  It aims to add as few additional qualifiers as possible.

As this is an early version (only supports renaming classes), I don't change
current clang-rename interfaces at the moment, and would like to keep its
(command-line tool) behavior. So I added new interfaces for the prototype.
In the long run, these interfaces should be unified.

No functionality changes in original clang-rename command-line tool.

This patch also contains a few bug fixes of clang-rename which are discovered by
the new unittest:

* fix a potential nullptr accessment when class declaration doesn't have definition.
* add USRs of nested declartaions in "getNamedDeclFor".

Reviewers: ioeric

Reviewed By: ioeric

Subscribers: alexfh, cfe-commits, mgorny

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

llvm-svn: 299419
2017-04-04 09:30:06 +00:00
clang [X86] Remove some code that tries to disable HLE feature. This feature flag was removed from the backend. 2017-04-04 06:38:44 +00:00
clang-tools-extra [clang-rename] Support renaming qualified symbol 2017-04-04 09:30:06 +00:00
compiler-rt Replace wc -l with count. 2017-03-31 16:49:37 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Fix more -Wshadow warnings introduced by recent Clang change 2017-04-04 02:54:27 +00:00
libcxxabi Uses quote to include cxxabi.h to make sure the local one is included 2017-04-04 05:38:38 +00:00
libunwind Try to trigger the new docs builder. NFC 2017-04-03 19:23:11 +00:00
lld [ELF] Rename ARM Thunks in anticipation of Range Thunks 2017-04-04 09:29:36 +00:00
lldb Enable lldm-mi commands -stack-list-locals -stack-list-variables and -var-create to work only with variables in scope 2017-04-04 08:00:28 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm Align all scalar numbers to LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR 2017-04-04 06:02:32 +00:00
openmp Fix for bug https://llvm.org/bugs/show_bug.cgi?id=32456 2017-03-31 16:20:07 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [PerfMonitor] Use Intrinsics::getDeclaration 2017-04-03 15:23:08 +00:00