llvm-project/clang-tools-extra/clangd
Kirill Bobyrev 91ce6fb5a6
[clangd] Abort rename when given the same name
When user wants to rename the symbol to the same name we shouldn't do any work.
Bail out early and return error to save compute.

Resolves: https://github.com/clangd/clangd/issues/580

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D91134
2020-11-11 11:13:47 +01:00
..
benchmarks [clangd] Add bencmark for measuring latency of DecisionForest model. 2020-10-02 18:04:31 +02:00
fuzzer [clangd] Fix fuzzer build after 7ba0779fbb 2020-09-30 11:02:05 +02:00
include-mapping [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
index [clangd] Fix recommended gRPC version 2020-11-10 15:07:03 +03:00
indexer [clangd] Fix clangd-indexeer builds after D84697 2020-07-29 10:27:11 +02:00
quality Add a floating-point suffix to silence warnings; NFC 2020-11-04 10:09:51 -05:00
refactor [clangd] Abort rename when given the same name 2020-11-11 11:13:47 +01:00
support [clangd] Add -log=public to redact all request info from index server logs 2020-11-02 21:25:12 +01:00
test [clangd] NFC: Add more logging to remote index test 2020-11-11 08:24:09 +01:00
tool [clangd] Set the User option for clang-tidy to mimick its behaviour 2020-11-06 19:58:21 +00:00
unittests [clangd] Abort rename when given the same name 2020-11-11 11:13:47 +01:00
xpc [clangd] makeStringError,make_error<StringError> -> error() 2020-09-14 11:48:31 +02:00
AST.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
AST.h [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
CMakeLists.txt [clangd] Fix shared-lib builds 2020-11-09 22:15:08 +01:00
CSymbolMap.inc [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
ClangdLSPServer.cpp [clangd] Support CodeActionParams.only 2020-10-29 09:44:08 +01:00
ClangdLSPServer.h [clangd] Add $/memoryUsage LSP extension 2020-10-19 12:30:25 +02:00
ClangdServer.cpp [clangd] Propagate CollectMainFileRefs to BackgroundIndex 2020-10-13 09:20:18 -04:00
ClangdServer.h [clangd] Refine recoveryAST flags in clangd 2020-10-14 13:42:11 +02:00
CodeComplete.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
CodeComplete.h [clangd] Add support for multiple DecisionForest model experiments. 2020-10-29 19:49:40 +01:00
CodeCompletionStrings.cpp [clangd] Fix invalid UTF8 when extracting doc comments. 2020-09-30 16:05:12 +02:00
CodeCompletionStrings.h [clangd] Place cursor better after completing patterns 2019-05-28 15:33:37 +00:00
CollectMacros.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
CollectMacros.h [clangd] Get rid of getTokenRange helper 2020-03-03 14:30:42 +01:00
CompileCommands.cpp Revert 7dfff42f01 as it broke non-Windows builds. 2020-07-19 11:12:39 -04:00
CompileCommands.h [clangd] Fix use-after-free in ArgStripper 2020-07-15 11:03:11 +02:00
Compiler.cpp [clangd] Refine recoveryAST flags in clangd 2020-10-14 13:42:11 +02:00
Compiler.h [clangd] Rename FSProvider to TFS in case of ThreadsafeFS 2020-06-19 12:12:03 +02:00
Config.cpp [clangd] config() -> Config::current to avoid confict with NS 2020-06-29 23:05:19 +02:00
Config.h [clangd] Add option for disabling AddUsing tweak on some namespaces. 2020-09-18 16:46:09 +02:00
ConfigCompile.cpp [clangd] Pass parameters to config apply functions 2020-11-04 10:29:24 +01:00
ConfigFragment.h [clangd][NFC] Make Located::operator->() use pointer sematics 2020-11-04 01:36:14 +00:00
ConfigProvider.cpp [clangd] Handle absolute/relative path specifications in Config 2020-11-03 21:45:35 +01:00
ConfigProvider.h [clangd] Handle absolute/relative path specifications in Config 2020-11-03 21:45:35 +01:00
ConfigYAML.cpp [clangd] Add option for disabling AddUsing tweak on some namespaces. 2020-09-18 16:46:09 +02:00
Diagnostics.cpp Recommit "[CUDA][HIP] Defer overloading resolution diagnostics for host device functions" 2020-10-19 17:48:04 -04:00
Diagnostics.h [clangd] Discard diagnostics from another SourceManager. 2020-08-21 13:11:21 +02:00
DraftStore.cpp [clangd] Add error() function for creating formatv-style llvm::Errors. NFC 2020-09-14 10:43:42 +02:00
DraftStore.h [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
ExpectedTypes.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ExpectedTypes.h
FS.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FS.h [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
Features.inc.in Speculative build fix for clangd/Features.inc.in 2020-07-27 13:39:54 +02:00
FileDistance.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
FileDistance.h Move endian constant from Host.h to SwapByteOrder.h, prune include 2019-10-19 00:48:11 +00:00
FindSymbols.cpp [clangd] NFC: Update FIXME comment regarding lack of c/dtor support 2020-10-26 15:31:59 +01:00
FindSymbols.h [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
FindTarget.cpp [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
FindTarget.h [clangd] Don't set the Underlying bit on targets of UsingDecls. 2020-10-07 10:01:04 +02:00
Format.cpp Lexer: Update the Lexer to use MemoryBufferRef, NFC 2020-10-19 19:10:21 -04:00
Format.h [clangd] Revamp textDocument/onTypeFormatting. 2019-06-10 14:26:21 +00:00
FuzzyMatch.cpp [clangd] Tune the fuzzy-matching algorithm 2019-03-15 14:00:49 +00:00
FuzzyMatch.h
GlobalCompilationDatabase.cpp [clangd] Always retrieve ProjectInfo from Base in OverlayCDB 2020-07-16 12:33:54 +02:00
GlobalCompilationDatabase.h [clangd] Always retrieve ProjectInfo from Base in OverlayCDB 2020-07-16 12:33:54 +02:00
HeaderSourceSwitch.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
HeaderSourceSwitch.h [clangd] Implement a smart version of HeaderSource switch. 2019-09-30 10:48:02 +00:00
Headers.cpp [clangd] locateMacroAt handles patched macros 2020-05-29 12:46:54 +02:00
Headers.h [clangd] Preserve line information while build PreamblePatch 2020-05-07 12:24:28 +02:00
Hover.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
Hover.h [clangd] Improve hover on arguments to function call 2020-07-03 11:51:15 +02:00
IncludeFixer.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
IncludeFixer.h [clangd] Compute scopes eagerly in IncludeFixer 2019-08-06 11:37:50 +00:00
JSONTransport.cpp [clangd] makeStringError,make_error<StringError> -> error() 2020-09-14 11:48:31 +02:00
ParsedAST.cpp [clangd] Don't run clang-tidy AST traversal if there are no checks. 2020-11-09 08:44:06 +01:00
ParsedAST.h [clangd] Express dumpAST in tests as a customAction() 2020-08-13 14:27:32 +02:00
PathMapping.cpp [clangd] Add error() function for creating formatv-style llvm::Errors. NFC 2020-09-14 10:43:42 +02:00
PathMapping.h [clangd] Add path mappings functionality 2020-01-07 12:40:51 +01:00
Preamble.cpp [clangd] makeStringError,make_error<StringError> -> error() 2020-09-14 11:48:31 +02:00
Preamble.h [clangd] Make use of preamble bounds from the patch inside ReplayPreamble 2020-06-17 18:32:59 +02:00
Protocol.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
Protocol.h [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
Quality.cpp [clangd] Trivial: Log missing completion signals. 2020-11-05 18:52:44 +01:00
Quality.h [clangd] Add support for multiple DecisionForest model experiments. 2020-10-29 19:49:40 +01:00
QueryDriverDatabase.cpp As part of using inclusive language within the llvm project, 2020-06-19 15:41:06 -07:00
README.md [clangd] Add README pointing to docs, bugtracker etc. NFC 2020-03-12 14:00:08 +01:00
RIFF.cpp [clangd] Add error() function for creating formatv-style llvm::Errors. NFC 2020-09-14 10:43:42 +02:00
RIFF.h [clangd] Improve serialization error messages. NFC 2020-07-08 17:31:40 +02:00
Selection.cpp [clangd][ObjC] Support nullability annotations 2020-10-20 17:36:32 -04:00
Selection.h [clangd] Handle go-to-definition in macro invocations where the target appears in the expansion multiple times 2020-03-03 15:52:05 -05:00
SemanticHighlighting.cpp clang-{tools,unittests}: Stop using SourceManager::getBuffer, NFC 2020-10-15 00:35:16 -04:00
SemanticHighlighting.h [clangd] Support textDocument/semanticTokens/edits 2020-04-02 17:38:29 +02:00
SemanticSelection.cpp [clang] Simplify buildSyntaxTree API 2020-11-09 22:49:54 +01:00
SemanticSelection.h [clangd] Implement textDocument/foldingRange 2020-07-14 09:28:42 +02:00
SourceCode.cpp clang-{tools,unittests}: Stop using SourceManager::getBuffer, NFC 2020-10-15 00:35:16 -04:00
SourceCode.h [clangd] Add isKeyword function. 2020-10-05 15:11:24 +02:00
StdSymbolMap.inc [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
TUScheduler.cpp [clangd] Introduce memory usage dumping to TUScheduler, for Preambles and ASTCache 2020-10-12 15:25:29 +02:00
TUScheduler.h [clangd] Introduce memory usage dumping to TUScheduler, for Preambles and ASTCache 2020-10-12 15:25:29 +02:00
Transport.h [NFC] Fix typos in Clangd and Clang 2019-12-16 10:54:40 +01:00
URI.cpp [clangd] Remove dead variable. NFC 2020-09-30 23:19:15 +02:00
URI.h [clangd] Simplify the callside of URI::resolve, NFC. 2019-09-23 14:39:37 +00:00
XRefs.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
XRefs.h [clangd] Rename FormattedString -> Markup, move to support. NFC 2020-05-02 14:53:47 +02:00

README.md

clangd

clangd is a language server, and provides C++ IDE features to editors. This is not its documentation.

Communication channels

If you have any questions or feedback, you can reach community and developers through one of these channels: