aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirparse/microdesc_parse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-10 15:13:30 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-06 14:54:04 -0500
commit99a5aecbc779985629abce22dfc00a4e9d6ccb9e (patch)
tree25ad3754ba87a24f50858f9809a8269dcfe531cb /src/feature/dirparse/microdesc_parse.c
parent06a6130666315cb1d385b89d7c95df42ac17db1a (diff)
downloadtor-99a5aecbc779985629abce22dfc00a4e9d6ccb9e.tar.gz
tor-99a5aecbc779985629abce22dfc00a4e9d6ccb9e.zip
Wrap columnar tables in "clang-format off/on"
These tables have aligned comments, so we don't want clang-format to mess with them.
Diffstat (limited to 'src/feature/dirparse/microdesc_parse.c')
-rw-r--r--src/feature/dirparse/microdesc_parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/dirparse/microdesc_parse.c b/src/feature/dirparse/microdesc_parse.c
index c2eabeb404..9231080aaa 100644
--- a/src/feature/dirparse/microdesc_parse.c
+++ b/src/feature/dirparse/microdesc_parse.c
@@ -28,6 +28,7 @@
#include "feature/nodelist/microdesc_st.h"
/** List of tokens recognized in microdescriptors */
+// clang-format off
static token_rule_t microdesc_token_table[] = {
T1_START("onion-key", K_ONION_KEY, NO_ARGS, NEED_KEY_1024),
T01("ntor-onion-key", K_ONION_KEY_NTOR, GE(1), NO_OBJ ),
@@ -39,6 +40,7 @@ static token_rule_t microdesc_token_table[] = {
A01("@last-listed", A_LAST_LISTED, CONCAT_ARGS, NO_OBJ ),
END_OF_TABLE
};
+// clang-format on
/** Assuming that s starts with a microdesc, return the start of the
* *NEXT* one. Return NULL on "not found." */