Skip to content

Commit

Permalink
Updated format script (fmt.sh) to skip externals/ dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Jul 7, 2024
1 parent 0b5c312 commit 4d51422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/async_consume_v5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ int main(int argc, char* argv[])
cout << "\nWaiting for messages on topic: '" << TOPIC << "'" << endl;

while (true) {

auto evt = cli.consume_event();

if (const auto* p = std::get_if<mqtt::const_message_ptr>(&evt)) {
Expand All @@ -113,7 +112,7 @@ int main(int argc, char* argv[])
}
else if (const auto* p = std::get_if<mqtt::disconnected_event>(&evt)) {
cout << "*** Disconnected. Reason [0x" << hex << int{p->reasonCode}
<< "]: " << p->reasonCode << " ***" << endl;
<< "]: " << p->reasonCode << " ***" << endl;
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Runs clang format over the whole project tree
#

find . -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i
find . -path './externals' -prune -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i

0 comments on commit 4d51422

Please sign in to comment.