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

@@ -60,13 +60,13 @@ MATCHER_P5(HasDirtyDocument,
filePath,
projectPartId,
documentRevision,
isNeedingReparse,
isDirty,
hasNewDiagnostics,
std::string(negation ? "isn't" : "is")
+ " document with file path "+ PrintToString(filePath)
+ " and project " + PrintToString(projectPartId)
+ " and document revision " + PrintToString(documentRevision)
+ " and isNeedingReparse = " + PrintToString(isNeedingReparse)
+ " and isDirty = " + PrintToString(isDirty)
+ " and hasNewDiagnostics = " + PrintToString(hasNewDiagnostics)
)
{
@@ -75,10 +75,10 @@ MATCHER_P5(HasDirtyDocument,
auto document = documents.document(filePath, projectPartId);
if (document.documentRevision() == documentRevision) {
if (document.isNeedingReparse() && !isNeedingReparse) {
if (document.isDirty() && !isDirty) {
*result_listener << "isNeedingReparse is true";
return false;
} else if (!document.isNeedingReparse() && isNeedingReparse) {
} else if (!document.isDirty() && isDirty) {
*result_listener << "isNeedingReparse is false";
return false;
}