blob: 3dec8a58c92920c16a097384a30a77b86dc9fefb [file] [log] [blame]
Ted Kremenek8671acb2013-04-16 21:44:22 +00001//=- AllocationDiagnostics.cpp - Config options for allocation diags *- C++ -*-//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Declares the configuration functions for leaks/allocation diagnostics.
11//
12//===--------------------------
13
14#include "AllocationDiagnostics.h"
15
16namespace clang {
17namespace ento {
18
19bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts) {
20 return AOpts.getBooleanOption("leak-diagnostics-reference-allocation",
21 false);
22}
23
24}}