forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user