config/static-checking-config.mk
author Carsten "Tomcat" Book <cbook@mozilla.com>
Wed, 10 Feb 2016 16:08:27 +0100
changeset 283735 ac39fba33c6d
parent 274100 63f4deb6cde8
permissions -rw-r--r--
Backed out changeset 5bf07e98c4ee (bug 1243750) for breaking Linux and OS X Nightly Builds
# 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 := $(DEPTH)/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