[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Library search
From: |
Hageseter, Trond E. |
Subject: |
RE: Library search |
Date: |
Thu, 11 Oct 2001 10:29:16 +0200 |
In a header file test.hxx
const string THIS_IS_A_STRING = "This is a string";
In some file test.cxx that include test.hxx.
string newString = THIS_IS_A_STRING + " again!";
I would now like to "jump" to the test.hxx file on the line where
THIS_IS_A_STRING is defined without having too see all symbols that
match THIS_IS_A_STRING.
ie
global THIS_IS_A_STRING
<some_path>/test.hxx
if -s is used:
global -s THIS_IS_A_STRING
<some_path>/test.hxx
<some_path>/test.cxx
<some_path>/one_file.cxx
<some_path>/another_file.cxx
<some_path>/another_file_again.cxx
Another thing:
It seams that enumerations and type definitions are not treated as other
than symbols, is that correct. I am not able to locate typedefs and
enums with the global SOME_TYPEDEF command, only with global -s.
ie:
test.hxx
typedef enum {
FIRST = 1,
SECOND
} FIRST_SECOND;
typedef struct {
int one_entry;
int another_entry;
} SIMPLE_STRUCT;
When running "global FIRST_SECOND" or "global SIMPLE_STRUCT" they are
not located, only with the use of global -s they are found (together
with a lot of "noise").
regards
trondeh
-----Original Message-----
From: Shigio Yamaguchi [mailto:address@hidden
Sent: 11. oktober 2001 09:29
To: Hageseter, Trond E.
Cc: Shigio Yamaguchi; address@hidden
Subject: Re: Library search
> OK, if you have a constant or a define in your code, and you need to
see
> how it is defined, the global -s option would list all places where it
> is either used or defined. I would like to run "global
ThisIsMyConstant"
> and then jump directly to the location where it is defined.
Please show me a example.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)
-----Original Message-----
From: Shigio Yamaguchi [mailto:address@hidden
Sent: 11. oktober 2001 09:29
To: Hageseter, Trond E.
Cc: Shigio Yamaguchi; address@hidden
Subject: Re: Library search
> OK, if you have a constant or a define in your code, and you need to
see
> how it is defined, the global -s option would list all places where it
> is either used or defined. I would like to run "global
ThisIsMyConstant"
> and then jump directly to the location where it is defined.
Please show me a example.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)
- Library search, Hageseter, Trond E., 2001/10/10
- RE: Library search, Hageseter, Trond E., 2001/10/10
- RE: Library search, Hageseter, Trond E., 2001/10/11
- RE: Library search, Hageseter, Trond E., 2001/10/11
- RE: Library search, Hageseter, Trond E., 2001/10/11
- RE: Library search,
Hageseter, Trond E. <=
- RE: Library search, Hageseter, Trond E., 2001/10/11