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