llvm-project/clang/lib/Tooling/Refactoring
Daniele Castagna 7dd6068899
[clang-rename] Handle designated initializers.
clang Tooling, and more specifically Refactoring/Rename, have support
code to extract source locations given a Unified Symbol Resolution set.
This support code is used by clang-rename and other tools that might not
be in the tree.

Currently field designated initializer are not supported.
So, renaming S::a to S::b in this code:

  S s = { .a = 10 };

will not extract the field designated initializer for a (the 'a' after the
dot).

This patch adds support for field designated initialized to
RecursiveSymbolVisitor and RenameLocFinder that is used in
createRenameAtomicChanges.

Differential Revision: https://reviews.llvm.org/D100310
2021-04-12 13:15:14 -07:00
..
Extract
Rename [clang-rename] Handle designated initializers. 2021-04-12 13:15:14 -07:00
ASTSelection.cpp [clang][nearly-NFC] Remove some superfluous uses of NamedDecl::getNameAsString 2020-08-05 13:54:37 +01:00
ASTSelectionRequirements.cpp
AtomicChange.cpp Add Metadata to Transformer tooling 2020-06-30 15:03:07 +00:00
CMakeLists.txt Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h 2020-10-20 10:13:28 +01:00
Lookup.cpp Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h 2020-10-20 10:13:28 +01:00
RefactoringActions.cpp [clang][NFC] Add missing 'override's 2020-07-20 16:43:24 -07:00