llvm-project/clang-tools-extra/clangd/refactor/tweaks
Adam Czachorowski cca10be3f6 [clangd] Fix a crash bug in AddUsing tweak around template handling.
Summary:
The crash happened on cases like:
template<typename TT> using one = two::three<T^T>;
because we tried to call getName() on getBaseTypeIdentifier(), which can
be nullptr.

Ideally we would support this use case as well, but for now not crashing
will do.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77656
2020-04-08 13:59:47 +02:00
..
AddUsing.cpp [clangd] Fix a crash bug in AddUsing tweak around template handling. 2020-04-08 13:59:47 +02:00
AnnotateHighlightings.cpp [clangd] Make Tweak::Selection movable. NFC 2019-12-16 15:46:57 +01:00
CMakeLists.txt [clangd] Add a tweak for adding "using" statement. 2020-04-02 17:37:38 +02:00
DefineInline.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
DefineOutline.cpp [clangd] DefineOutline: removes static token from static CXXMethodDecl 2020-04-07 11:57:43 +01:00
DumpAST.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ExpandAutoType.cpp [clangd] Make Tweak::Selection movable. NFC 2019-12-16 15:46:57 +01:00
ExpandMacro.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ExtractFunction.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
ExtractVariable.cpp [clangd] Disable ExtractVariable for C 2020-02-25 12:15:15 +01:00
ObjCLocalizeStringLiteral.cpp [clangd] Get rid of lexer usage in ObjCLocalizeStringLiteral tweak 2020-02-28 09:38:26 +01:00
RawStringLiteral.cpp [clangd] Make Tweak::Selection movable. NFC 2019-12-16 15:46:57 +01:00
RemoveUsingNamespace.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
SwapIfBranches.cpp [clangd] Make Tweak::Selection movable. NFC 2019-12-16 15:46:57 +01:00