Add a basic .clang-tidy file and fix typedef warnings
[lttng-tools.git] / src / bin / lttng / commands / list_triggers.cpp
index 78be73ea758062d96322cab5c2e54c1643d8f6e7..ea47c51f4ba694e2d596a7f9356343fea83e930b 100644 (file)
@@ -32,12 +32,12 @@ static const char help_msg[] =
 
 #define INDENTATION_LEVEL_STR "  "
 
-typedef enum lttng_event_rule_status (*event_rule_logging_get_name_pattern)(
-       const struct lttng_event_rule *rule, const char **pattern);
-typedef enum lttng_event_rule_status (*event_rule_logging_get_filter)(
-       const struct lttng_event_rule *rule, const char **expression);
-typedef enum lttng_event_rule_status (*event_rule_logging_get_log_level_rule)(
-       const struct lttng_event_rule *rule, const struct lttng_log_level_rule **log_level_rule);
+using event_rule_logging_get_name_pattern =
+       enum lttng_event_rule_status (*)(const struct lttng_event_rule *, const char **);
+using event_rule_logging_get_filter =
+       enum lttng_event_rule_status (*)(const struct lttng_event_rule *, const char **);
+using event_rule_logging_get_log_level_rule = enum lttng_event_rule_status (*)(
+       const struct lttng_event_rule *, const struct lttng_log_level_rule **);
 
 enum {
        OPT_HELP,
This page took 0.023209 seconds and 4 git commands to generate.