forked from qt-creator/qt-creator
Fix crashes when typing code
Problem was with cyclic recurrence. To solve it we need to check if derived class is different class than its base class. Keep completion corrected. Include some unit tests when base class has the same name as derived. Task-number: QTCREATORBUG-7887 Change-Id: I7973c0b06e3b62d2da3d06048f4327d18a0b8011 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
hjk
parent
b02e954eff
commit
7e9913f0f5
@@ -77,6 +77,7 @@ private slots:
|
||||
void switchHeaderSource();
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
||||
// codegen tests
|
||||
void test_codegen_public_in_empty_class();
|
||||
void test_codegen_public_in_nonempty_class();
|
||||
@@ -95,6 +96,13 @@ private slots:
|
||||
void test_completion_template_1();
|
||||
void test_completion_template_as_base();
|
||||
void test_completion_template_as_base_data();
|
||||
void test_completion_use_global_identifier_as_base_class();
|
||||
void test_completion_use_global_identifier_as_base_class_data();
|
||||
void test_completion_base_class_has_name_the_same_as_derived();
|
||||
void test_completion_base_class_has_name_the_same_as_derived_data();
|
||||
|
||||
private:
|
||||
void test_completion();
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user