1251609Sdim//=--- AllocationDiagnostics.h - 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#ifndef LLVM_CLANG_SA_LIB_CHECKERS_ALLOC_DIAGS_H 15251609Sdim#define LLVM_CLANG_SA_LIB_CHECKERS_ALLOC_DIAGS_H 16251609Sdim 17251609Sdim#include "clang/StaticAnalyzer/Core/AnalyzerOptions.h" 18251609Sdim 19251609Sdimnamespace clang { namespace ento { 20251609Sdim 21251609Sdim/// \brief Returns true if leak diagnostics should directly reference 22251609Sdim/// the allocatin site (where possible). 23251609Sdim/// 24251609Sdim/// The default is false. 25251609Sdim/// 26251609Sdimbool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts); 27251609Sdim 28251609Sdim}} 29251609Sdim 30251609Sdim#endif 31251609Sdim 32