Bug 476245. Keep better track of our anonymous content. r=smaug, sr=jst
[mozilla-central.git] / config / static-checking-config.mk
blob9e2719b1c532c90f4caf0e46233761aa6327b9c7
1 # The entire tree should be subject to static analysis using the XPCOM
2 # script. Additional scripts may be added by specific subdirectories.
4 DEHYDRA_SCRIPT = $(topsrcdir)/config/static-checking.js
6 DEHYDRA_MODULES = \
7 $(topsrcdir)/xpcom/analysis/final.js \
8 $(topsrcdir)/layout/generic/frame-verify.js \
9 $(NULL)
11 TREEHYDRA_MODULES = \
12 $(topsrcdir)/xpcom/analysis/outparams.js \
13 $(topsrcdir)/xpcom/analysis/stack.js \
14 $(topsrcdir)/xpcom/analysis/flow.js \
15 $(topsrcdir)/js/src/jsstack.js \
16 $(NULL)
18 DEHYDRA_ARGS = \
19 --topsrcdir=$(topsrcdir) \
20 --objdir=$(DEPTH) \
21 --dehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(DEHYDRA_MODULES))) \
22 --treehydra-modules=$(subst $(NULL) ,$(COMMA),$(strip $(TREEHYDRA_MODULES))) \
23 $(NULL)
25 DEHYDRA_FLAGS = -fplugin=$(DEHYDRA_PATH) -fplugin-arg='$(DEHYDRA_SCRIPT) $(DEHYDRA_ARGS)'
27 ifdef DEHYDRA_PATH
28 OS_CXXFLAGS += $(DEHYDRA_FLAGS)
29 endif