summaryrefslogtreecommitdiffstats
path: root/Source/cmServerDictionary.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-12-06 16:23:58 (GMT)
committerBrad King <brad.king@kitware.com>2017-12-06 16:39:03 (GMT)
commit8b2736c71ca6eb8e62a69f57ad07e4e19a95c936 (patch)
treedf7d3ab1300b235da99e0870efaaefe8c487e567 /Source/cmServerDictionary.h
parent7746fdb2fe0177341aadeafec2ae73aa08ddfaf6 (diff)
downloadCMake-8b2736c71ca6eb8e62a69f57ad07e4e19a95c936.zip
CMake-8b2736c71ca6eb8e62a69f57ad07e4e19a95c936.tar.gz
CMake-8b2736c71ca6eb8e62a69f57ad07e4e19a95c936.tar.bz2
server: Revert "Report backtraces in codemodel response"
The backtrace information is very repetitive and hugely increases the size of the codemodel object. We need to remove it until an alternative representation can be developed. Revert commit v3.10.0-rc1~393^2 (server: Report backtraces in codemodel response, 2017-06-20), except for the protocol version number (because it indicates other new things). Unfortunately this is incompatible with clients that expect the "crossReferences" field in targets. However, the regression in memory usage is quite serious, especially on large projects, and therefore breaks even older clients that do not use backtraces. Since the "crossReferences" field was only provided by one release (3.10.0), it is simplest to revert it outright for 3.10.1. Fixes: #17502
Diffstat (limited to 'Source/cmServerDictionary.h')
-rw-r--r--Source/cmServerDictionary.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/cmServerDictionary.h b/Source/cmServerDictionary.h
index 405ff6b..e6a7ae6 100644
--- a/Source/cmServerDictionary.h
+++ b/Source/cmServerDictionary.h
@@ -89,11 +89,6 @@ static const std::string kWARN_UNUSED_KEY = "warnUnused";
static const std::string kWATCHED_DIRECTORIES_KEY = "watchedDirectories";
static const std::string kWATCHED_FILES_KEY = "watchedFiles";
-static const std::string kTARGET_CROSS_REFERENCES_KEY = "crossReferences";
-static const std::string kLINE_NUMBER_KEY = "line";
-static const std::string kBACKTRACE_KEY = "backtrace";
-static const std::string kRELATED_STATEMENTS_KEY = "relatedStatements";
-
static const std::string kSTART_MAGIC = "[== \"CMake Server\" ==[";
static const std::string kEND_MAGIC = "]== \"CMake Server\" ==]";