mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 16:41:53 -07:00
core: Add clang-tidy (#8664)
This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
This commit is contained in:
@@ -57,7 +57,7 @@ void COutputManager::makeAndSendNewHead(PHLMONITOR pMonitor) {
|
||||
return;
|
||||
}
|
||||
|
||||
heads.push_back(RESOURCE);
|
||||
heads.emplace_back(RESOURCE);
|
||||
|
||||
resource->sendHead(RESOURCE->resource.get());
|
||||
RESOURCE->sendAllData();
|
||||
@@ -216,7 +216,7 @@ void COutputHead::makeAndSendNewMode(SP<Aquamarine::SOutputMode> mode) {
|
||||
return;
|
||||
}
|
||||
|
||||
modes.push_back(RESOURCE);
|
||||
modes.emplace_back(RESOURCE);
|
||||
resource->sendMode(RESOURCE->resource.get());
|
||||
RESOURCE->sendAllData();
|
||||
}
|
||||
@@ -285,7 +285,7 @@ COutputConfiguration::COutputConfiguration(SP<CZwlrOutputConfigurationV1> resour
|
||||
return;
|
||||
}
|
||||
|
||||
heads.push_back(RESOURCE);
|
||||
heads.emplace_back(RESOURCE);
|
||||
|
||||
LOGM(LOG, "enableHead on {}. For now, doing nothing. Waiting for apply().", PMONITOR->szName);
|
||||
});
|
||||
|
Reference in New Issue
Block a user