summaryrefslogtreecommitdiffstats
path: root/Source/cmServerDictionary.h
diff options
context:
space:
mode:
authorIvan Shcherbakov <ivan@sysprogs.com>2017-06-20 21:13:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-07-11 11:50:22 (GMT)
commit0c5723821542a43fa211c73abc08e59e2fd395e2 (patch)
tree9d2b7568a58789e5d275bcc7ef5b1feade24fe4c /Source/cmServerDictionary.h
parent4db32275149e2a68c74d2abf5158ee29976b7300 (diff)
downloadCMake-0c5723821542a43fa211c73abc08e59e2fd395e2.zip
CMake-0c5723821542a43fa211c73abc08e59e2fd395e2.tar.gz
CMake-0c5723821542a43fa211c73abc08e59e2fd395e2.tar.bz2
server: Report backtraces in codemodel response
Report the source locations (e.g. in `CMakeLists.txt`) for all targets and target-related statements. This allows IDEs to locate the statements and automatically edit them when the user adds or removes files or changes target properties via GUI. Increment the protocol minor version number to tell clients that the new information is available.
Diffstat (limited to 'Source/cmServerDictionary.h')
-rw-r--r--Source/cmServerDictionary.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmServerDictionary.h b/Source/cmServerDictionary.h
index e6a7ae6..405ff6b 100644
--- a/Source/cmServerDictionary.h
+++ b/Source/cmServerDictionary.h
@@ -89,6 +89,11 @@ 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\" ==]";