1 //=--- AllocationDiagnostics.h - 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 #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
15 #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
17 #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
19 namespace clang { namespace ento {
21 /// \brief Returns true if leak diagnostics should directly reference
22 /// the allocatin site (where possible).
24 /// The default is false.
26 bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts);