config/static-checking-config.mk
author Xidorn Quan <me@upsuper.org>
Fri, 16 Sep 2016 17:23:55 +1000
changeset 314271 60d0e1dbddc00e146462d067c56d79b7b51faf3f
parent 285798 cb43c67f89030fb0ee8e702e48bc78bcbc4c8d51
child 325091 46bc9b15800185d4d814a95ae379cf069740f01a
permissions -rw-r--r--
Bug 1303302 - Add IsDestructible trait in TypeTraits and use it for refcounted type static check. r=froydnj MozReview-Commit-ID: G3YFhrJngq0

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# The entire tree should be subject to static analysis using the XPCOM
# script. Additional scripts may be added by specific subdirectories.

ifdef ENABLE_CLANG_PLUGIN
CLANG_PLUGIN := $(topobjdir)/build/clang-plugin/$(DLL_PREFIX)clang-plugin$(DLL_SUFFIX)
OS_CXXFLAGS += -Xclang -load -Xclang $(CLANG_PLUGIN) -Xclang -add-plugin -Xclang moz-check
OS_CFLAGS += -Xclang -load -Xclang $(CLANG_PLUGIN) -Xclang -add-plugin -Xclang moz-check
endif