Skip to content

Commit

Permalink
Increase callgraph robustness.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcranmer committed Nov 8, 2011
1 parent 325f902 commit 754544d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions PLUGIN_README
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Plugin developer and/or hacker README:

The xref-tools directory contains a set of the standard usable plugins for DXR.
To be usable, a plugin at the least needs to contain an indexer.py file, which
is the entry point into the plugin from the indexer and web CGI locations.

If a Makefile is present, the root setup-env.sh will attempt to make the
prebuild target.

If the file set-env.sh is present, it will be sourced from setup-env.sh for use
in building. Important environment variables are:
SRCDIR The source directory of the tree being built
OBJDIR The build directory of the tree being built
DXRSRC The directory that contains setup-env.sh

Note that set-env.sh is sourced in the shell, so tricks like export will work
properly.

2 changes: 2 additions & 0 deletions xref-tools/cxx-clang/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def repairScope(info):
call['targetid'] = functions[target]['funcid']
elif target in variables:
call['targetid'] = variables[target]['varid']
else:
continue
callgraph.append(call)

overridemap = {}
Expand Down

0 comments on commit 754544d

Please sign in to comment.