mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
Autogen: Generators: Fix clang-tidy readability-else-after-return
This commit is contained in:
@@ -918,7 +918,11 @@ bool cmQtAutoGenerators::ParseContentForMoc(
|
||||
}
|
||||
} else {
|
||||
// Mode: Strict
|
||||
if (basename != scannedFileBasename) {
|
||||
if (basename == scannedFileBasename) {
|
||||
// Include self
|
||||
fileToMoc = absFilename;
|
||||
ownDotMocIncluded = true;
|
||||
} else {
|
||||
// Don't allow FOO.moc include other than self in strict mode
|
||||
std::ostringstream err;
|
||||
err << "AutoMoc: Error: " << absFilename << "\n"
|
||||
@@ -929,10 +933,6 @@ bool cmQtAutoGenerators::ParseContentForMoc(
|
||||
<< ".moc\" to run moc on this source file.\n";
|
||||
this->LogError(err.str());
|
||||
return false;
|
||||
} else {
|
||||
// Include self
|
||||
fileToMoc = absFilename;
|
||||
ownDotMocIncluded = true;
|
||||
}
|
||||
}
|
||||
if (!fileToMoc.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user