1251609Sdim//=- AllocationDiagnostics.cpp - Config options for allocation diags *- C++ -*-//
2251609Sdim//
3251609Sdim//                     The LLVM Compiler Infrastructure
4251609Sdim//
5251609Sdim// This file is distributed under the University of Illinois Open Source
6251609Sdim// License. See LICENSE.TXT for details.
7251609Sdim//
8251609Sdim//===----------------------------------------------------------------------===//
9251609Sdim//
10251609Sdim// Declares the configuration functions for leaks/allocation diagnostics.
11251609Sdim//
12251609Sdim//===--------------------------
13251609Sdim
14251609Sdim#include "AllocationDiagnostics.h"
15251609Sdim
16251609Sdimnamespace clang {
17251609Sdimnamespace ento {
18251609Sdim
19251609Sdimbool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts) {
20251609Sdim  return AOpts.getBooleanOption("leak-diagnostics-reference-allocation",
21251609Sdim                                false);
22251609Sdim}
23251609Sdim
24251609Sdim}}
25