GR:Gravity/Xref/Queries/Simple Examples

From Remain Software
< GR:Gravity‎ | Xref‎ | Queries
Jump to navigation Jump to search

Simple Query Examples

To find where cdxferc is used:

cdxferc


To find where cdxferc is defined:

defs:cdxferc


To find where cdxferc is referenced:

refs:cdxferc


To find C language files that have a reference to cdxferc but do not define it:

type:c +refs:cdxferc -defs:cdxferc


To find files that have a reference to cdxferc in files with the extension c:

refs:cdxferc path:c 


To find files that have a reference to cdxferc in the Xref location Git_Repo_Omxfer (casing must be correct):

refs:cdxferc path:Git_Repo_Omxfer 

To be more precise and get hits only from a specific path then enclose the path with double quotes, e.g. "src/mypath", otherwise dividers will be removed and you will most likely get more hits.


To search for the phrase "EXPORT short cdxferc”:

"EXPORT short cdxferc"


To find all strings that have the word cdxfer in it use the wildcard:

*cdxfer*
NOTE. If a name used in a path definition contains a space then enclose the name within double-quotes. Using path also has the restriction that you can use only a single file extension in a path statement, e.g. using path:c and path:h to restrict the query to files with the extension c or h will not work, use a language type to do this.