Apply .clangformat to all repo source files

Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344


[ROCm/hip commit: 1ba06f63c4]
This commit is contained in:
Maneesh Gupta
2018-03-12 11:29:03 +05:30
parent 52506ef382
commit 4f42ee762d
293 changed files with 43980 additions and 45830 deletions
+9 -10
View File
@@ -11,12 +11,10 @@ using namespace clara;
using namespace hip_impl;
using namespace std;
int main(int argc, char** argv)
{
int main(int argc, char** argv) {
try {
if (!hipcc_and_lpl_colocated()) {
throw runtime_error{
"The LPL executable and hipcc must be in the same directory."};
throw runtime_error{"The LPL executable and hipcc must be in the same directory."};
}
bool help = false;
@@ -31,22 +29,23 @@ int main(int argc, char** argv)
if (!r) throw runtime_error{r.errorMessage()};
if (help) cout << cmd << endl;
if (help)
cout << cmd << endl;
else {
if (sources.empty()) throw runtime_error{"No inputs specified."};
auto tmp = tokenize_targets(targets);
if (tmp.empty()) {
tmp.assign(amdgpu_targets().cbegin(), amdgpu_targets().cend());
}
else validate_targets(tmp);
} else
validate_targets(tmp);
if (output.empty()) for (auto&& x : tmp) output += x;
if (output.empty())
for (auto&& x : tmp) output += x;
generate_fat_binary(sources, tmp, flags, output);
}
}
catch (const exception& ex) {
} catch (const exception& ex) {
cerr << ex.what() << endl;
return EXIT_FAILURE;