108a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//=--- AllocationDiagnostics.h - Config options for allocation diags *- C++ -*-//
208a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
308a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//                     The LLVM Compiler Infrastructure
408a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
508a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek// This file is distributed under the University of Illinois Open Source
608a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek// License. See LICENSE.TXT for details.
708a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
808a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//===----------------------------------------------------------------------===//
908a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
1008a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek// Declares the configuration functions for leaks/allocation diagnostics.
1108a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//
1208a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek//===----------------------------------------------------------------------===//
1308a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
1408a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek#ifndef LLVM_CLANG_SA_LIB_CHECKERS_ALLOC_DIAGS_H
1508a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek#define LLVM_CLANG_SA_LIB_CHECKERS_ALLOC_DIAGS_H
1608a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
1708a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek#include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
1808a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
1908a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremeneknamespace clang { namespace ento {
2008a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
2108a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek/// \brief Returns true if leak diagnostics should directly reference
2208a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek/// the allocatin site (where possible).
2308a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek///
2408a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek/// The default is false.
2508a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek///
2608a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenekbool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts);
2708a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
2808a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek}}
2908a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
3008a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek#endif
3108a838d16825159f7d0ae20d171aa5b3ebab3939Ted Kremenek
32