1 //=- AllocationDiagnostics.cpp - Config options for allocation diags *- C++ -*-//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Declares the configuration functions for leaks/allocation diagnostics.
12 //===--------------------------
14 #include "AllocationDiagnostics.h"
19 bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts) {
20 return AOpts.getBooleanOption("leak-diagnostics-reference-allocation",