From f99ecea239290a7abb7d5ee657ff53eb64f80a61 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 15 Aug 2008 10:00:48 +0300 Subject: [PATCH] Add a comment to get_variable_from_expr_simple() Signed-off-by: Dan Carpenter --- smatch_helper.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smatch_helper.c b/smatch_helper.c index 2b5e0218..52feaf5d 100644 --- a/smatch_helper.c +++ b/smatch_helper.c @@ -223,6 +223,11 @@ char *get_variable_from_expr(struct expression *expr, struct symbol **sym_ptr) return var_name; } +/* + * get_variable_from_expr_simple() only returns simple variables. + * If it's a complicated variable like a->foo instead of just 'a' + * then it returns NULL. + */ char *get_variable_from_expr_simple(struct expression *expr, struct symbol **sym_ptr) -- 2.11.4.GIT