Clang: Rename reparseNeeded to isDirty

...because the flag can be set for needed parses, too.

Change-Id: I8b328afefb282cb6bd1cf88711af3d08a56808db
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-05-03 10:10:50 +02:00
parent e811ac4bfe
commit b9c76d5218
7 changed files with 43 additions and 41 deletions

View File

@@ -133,7 +133,7 @@ TEST_F(Documents, CreateWithUnsavedContentSetsDependenciesDirty)
documents.create({fileContainerWithUnsavedContent});
ASSERT_TRUE(dependentDocument.isNeedingReparse());
ASSERT_TRUE(dependentDocument.isDirty());
}
TEST_F(Documents, AddAndTestCreatedTranslationUnit)
@@ -212,7 +212,7 @@ TEST_F(DocumentsSlowTest, UpdateUnsavedFileAndCheckForReparse)
documents.update({headerContainerWithUnsavedContent});
ASSERT_TRUE(documents.document(filePath, projectPartId).isNeedingReparse());
ASSERT_TRUE(documents.document(filePath, projectPartId).isDirty());
}
TEST_F(DocumentsSlowTest, RemoveFileAndCheckForReparse)
@@ -226,7 +226,7 @@ TEST_F(DocumentsSlowTest, RemoveFileAndCheckForReparse)
documents.remove({headerContainerWithUnsavedContent});
ASSERT_TRUE(documents.document(filePath, projectPartId).isNeedingReparse());
ASSERT_TRUE(documents.document(filePath, projectPartId).isDirty());
}
TEST_F(Documents, DontGetNewerFileContainerIfRevisionIsTheSame)