summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/baseeditordocumentparser.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-14 19:01:32 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-20 13:08:32 +0000
commitc6b52267f4a7cc9b9e415dd63da4726b9403f87e (patch)
treebd8ad0944b13caf2cf54b9b859349b2f0b1b1ca6 /src/plugins/cpptools/baseeditordocumentparser.h
parent7e7e79dedc3f0ed3a404b0dbaf5dd2643e80de88 (diff)
downloadqt-creator-c6b52267f4a7cc9b9e415dd63da4726b9403f87e.tar.gz
Clang: Fix sending (un)register translation unit
Handle the following use cases: 1. Editor is opened --> Register file at backend. 2. Close editor for which a project part exists --> Unregister file with project part. 3. Close editor for which no project part exists (anymore) --> Unregister file with empty/default project part. Change-Id: I2b253004a920cccef989876538ab552eacf6b45c Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/baseeditordocumentparser.h')
-rw-r--r--src/plugins/cpptools/baseeditordocumentparser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/baseeditordocumentparser.h b/src/plugins/cpptools/baseeditordocumentparser.h
index b9c8ecaadc..05f210716d 100644
--- a/src/plugins/cpptools/baseeditordocumentparser.h
+++ b/src/plugins/cpptools/baseeditordocumentparser.h
@@ -47,6 +47,7 @@ public:
static BaseEditorDocumentParser *get(const QString &filePath);
struct Configuration {
+ bool stickToPreviousProjectPart = true;
bool usePrecompiledHeaders = false;
QByteArray editorDefines;
ProjectPart::Ptr manuallySetProjectPart;