[all-commits] [llvm/llvm-project] ae6798: [clangd] ExtractVariable support for C and Objecti...
David Goldman via All-commits
all-commits at lists.llvm.org
Tue May 31 08:15:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ae67984ca6d89c7ccdbdca258cd05c151d8b6431
https://github.com/llvm/llvm-project/commit/ae67984ca6d89c7ccdbdca258cd05c151d8b6431
Author: David Goldman <davg at google.com>
Date: 2022-05-31 (Tue, 31 May 2022)
Changed paths:
M clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
M clang-tools-extra/clangd/unittests/tweaks/ExtractVariableTests.cpp
Log Message:
-----------
[clangd] ExtractVariable support for C and Objective-C
- Use the expression's type for non-C++ as the variable type. This works
well, but might not preserve the typedefs due to type
canonicalization.
- Improve support for Objective-C property references which are
represented using `ObjCPropertyRefExpr` and `BuiltinType::PseudoObject`.
Differential Revision: https://reviews.llvm.org/D124486
More information about the All-commits
mailing list