>>>>> "David" == David Humphrey <[email protected]> writes:
David> #define SCOPE_MAKE_UNIQUE_SHAPE(cx,scope) ((scope)->shape = David> js_GenerateShape((cx), JS_FALSE, NULL))\n David> Notice I have no loc info at all. I don't even know which file it's David> from--it could be from any include in the current file. So I take all David> these .macro files, combine them and remove duplicates, then throw David> them in the database. David> To get you loc info, I need a new technique, I think. Or some David> knowledge I don't have. Two ideas come to mind... One, hack gcc to emit location info. libcpp stores the location of macro definitions, so this should not be too hard. The drawback is then you need a custom gcc. Two, compile with -g3 and then extract the location from the debug info. Tom _______________________________________________ dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
