blob: 62b7fab0739a8e15190c3990a12c9c264276efd8 [file] [log] [blame]
Ted Kremenek8671acb2013-04-16 21:44:22 +00001//=--- AllocationDiagnostics.h - Config options for allocation diags *- C++ -*-//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Declares the configuration functions for leaks/allocation diagnostics.
11//
12//===----------------------------------------------------------------------===//
13
Benjamin Kramer2f5db8b2014-08-13 16:25:19 +000014#ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
15#define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
Ted Kremenek8671acb2013-04-16 21:44:22 +000016
17#include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
18
19namespace clang { namespace ento {
20
Adrian Prantl9fc8faf2018-05-09 01:00:01 +000021/// Returns true if leak diagnostics should directly reference
Ted Kremenek8671acb2013-04-16 21:44:22 +000022/// the allocatin site (where possible).
23///
24/// The default is false.
25///
26bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts);
27
28}}
29
30#endif
31