projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run clang-format on the whole tree
[lttng-tools.git]
/
src
/
common
/
filter
/
filter-visitor-ir-validate-string.cpp
diff --git
a/src/common/filter/filter-visitor-ir-validate-string.cpp
b/src/common/filter/filter-visitor-ir-validate-string.cpp
index 0c18f98bc7b25959eeb98b71d12d4bf040484933..fd1feeed6cfcce6fed8c56158e69c90003277644 100644
(file)
--- a/
src/common/filter/filter-visitor-ir-validate-string.cpp
+++ b/
src/common/filter/filter-visitor-ir-validate-string.cpp
@@
-9,18
+9,18
@@
*
*/
*
*/
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <inttypes.h>
+#include "filter-ast.hpp"
+#include "filter-ir.hpp"
+#include "filter-parser.hpp"
-#include <common/
macros.h
>
-#include <common/
compat/errno.h
>
+#include <common/
compat/errno.hpp
>
+#include <common/
macros.hpp
>
-#include "filter-ast.h"
-#include "filter-parser.hpp"
-#include "filter-ir.h"
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
enum parse_char_result {
PARSE_CHAR_UNKNOWN = -2,
enum parse_char_result {
PARSE_CHAR_UNKNOWN = -2,
@@
-28,8
+28,7
@@
enum parse_char_result {
PARSE_CHAR_NORMAL = 0,
};
PARSE_CHAR_NORMAL = 0,
};
-static
-enum parse_char_result parse_char(const char **p)
+static enum parse_char_result parse_char(const char **p)
{
switch (**p) {
case '\\':
{
switch (**p) {
case '\\':
@@
-48,8
+47,7
@@
enum parse_char_result parse_char(const char **p)
}
}
}
}
-static
-int validate_string(struct ir_op *node)
+static int validate_string(struct ir_op *node)
{
switch (node->op) {
case IR_OP_UNKNOWN:
{
switch (node->op) {
case IR_OP_UNKNOWN:
@@
-82,8
+80,7
@@
int validate_string(struct ir_op *node)
switch (res) {
case PARSE_CHAR_UNKNOWN:
ret = -EINVAL;
switch (res) {
case PARSE_CHAR_UNKNOWN:
ret = -EINVAL;
- fprintf(stderr,
- "Unsupported escape character detected.\n");
+ fprintf(stderr, "Unsupported escape character detected.\n");
goto end_load;
case PARSE_CHAR_NORMAL:
default:
goto end_load;
case PARSE_CHAR_NORMAL:
default:
@@
-91,7
+88,7
@@
int validate_string(struct ir_op *node)
}
}
}
}
}
}
-end_load:
+
end_load:
return ret;
}
case IR_OP_UNARY:
return ret;
}
case IR_OP_UNARY:
This page took
0.04608 seconds
and
4
git commands to generate.