108a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//=- AllocationDiagnostics.cpp - Config options for allocation diags *- C++ -*-//
208a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
308a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//                     The LLVM Compiler Infrastructure
408a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
508a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek// This file is distributed under the University of Illinois Open Source
608a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek// License. See LICENSE.TXT for details.
708a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
808a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//===----------------------------------------------------------------------===//
908a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
1008a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek// Declares the configuration functions for leaks/allocation diagnostics.
1108a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
1208a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//===--------------------------
1308a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
1408a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek#include "AllocationDiagnostics.h"
1508a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
1608a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremeneknamespace clang {
1708a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremeneknamespace ento {
1808a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
1908a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenekbool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts) {
2008a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek  return AOpts.getBooleanOption("leak-diagnostics-reference-allocation",
2108a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek                                false);
2208a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek}
2308a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
2408a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek}}
25