summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/align_log_al.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2021-11-21 17:04:21 +0900
committerMichele Calgaro <[email protected]>2021-11-21 17:09:35 +0900
commite6ba08c3b21cdb14ee3a97b5d584759a4597b54b (patch)
treee8b4121323f2f448aeaa15bf3bddb465f36aea8b /debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/align_log_al.cpp
parentf312c235ea5f9971066f3808997d20f89c25f33b (diff)
downloadextra-dependencies-e6ba08c3b21cdb14ee3a97b5d584759a4597b54b.tar.gz
extra-dependencies-e6ba08c3b21cdb14ee3a97b5d584759a4597b54b.zip
uncrustify-trinity: updated based on upstream version 0.74.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/align_log_al.cpp')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/align_log_al.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/align_log_al.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/align_log_al.cpp
new file mode 100644
index 00000000..802b0280
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/align_log_al.cpp
@@ -0,0 +1,31 @@
+/**
+ * @file align_log_al.cpp
+ *
+ * @author Guy Maurel
+ * split from align.cpp
+ * @author Ben Gardner
+ * @license GPL v2+
+ */
+
+#include "align_log_al.h"
+
+#include "uncrustify.h"
+
+
+void align_log_al(log_sev_t sev, size_t line)
+{
+ if (log_sev_on(sev))
+ {
+ log_fmt(sev, "%s(%d): line %zu, cpd.al_cnt is %zu\n",
+ __func__, __LINE__, line, cpd.al_cnt);
+
+ for (size_t idx = 0; idx < cpd.al_cnt; idx++)
+ {
+ log_fmt(sev, " cpd.al[%2.1zu].col is %2.1zu, cpd.al[%2.1zu].len is %zu, type is %s\n",
+ idx, cpd.al[idx].col, idx, cpd.al[idx].len,
+ get_token_name(cpd.al[idx].type));
+ }
+
+ log_fmt(sev, "\n");
+ }
+} // align_log_al