Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored and anonrig committed Sep 19, 2023
1 parent 87b44f8 commit 9c995f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions benchmarks/performancecounters/apple_arm_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,7 @@ typedef struct {

#define lib_nelems(x) (sizeof(x) / sizeof((x)[0]))
#define lib_symbol_def(name) \
{ \
#name, (void **)&name \
}
{ #name, (void **)&name }

static const lib_symbol lib_symbols_kperf[] = {
lib_symbol_def(kpc_pmu_version),
Expand Down
3 changes: 1 addition & 2 deletions include/ada/idna/to_ascii.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ std::string to_ascii(std::string_view ut8_string);
// https://url.spec.whatwg.org/#forbidden-domain-code-point
bool contains_forbidden_domain_code_point(std::string_view ascii_string);

bool begins_with(std::u32string_view view,
std::u32string_view prefix);
bool begins_with(std::u32string_view view, std::u32string_view prefix);
bool begins_with(std::string_view view, std::string_view prefix);

bool constexpr is_ascii(std::u32string_view view);
Expand Down
3 changes: 1 addition & 2 deletions src/to_ascii.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

namespace ada::idna {

bool begins_with(std::u32string_view view,
std::u32string_view prefix) {
bool begins_with(std::u32string_view view, std::u32string_view prefix) {
if (view.size() < prefix.size()) {
return false;
}
Expand Down

0 comments on commit 9c995f5

Please sign in to comment.