------- Comment #2 from tglek at mozilla dot com 2010-03-22 22:42 ------- (In reply to comment #1) > Which location do you want? For function calls, it will be part of the call > expression (or rather the call statement). For variables, it is harder to > keep > track of that usage. But most statements have a line/column info already. >
Ideally I would want the beginning and ending of every expression in the AST, but I'd settle for ability to know the beginning of variables. For example somenamespace::foo->call( x, y); Right now there is no way to get locations for x, y or "call". CALL_EXPR just gives one a vague location, given that there can be a large number of other decls referenced within the CALL_EXPR. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486