This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43486] Preserve variable-use locations
- From: "tglek at mozilla dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Mar 2010 22:42:27 -0000
- Subject: [Bug c++/43486] Preserve variable-use locations
- References: <bug-43486-18333@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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