xref: /aosp_15_r20/external/clang/lib/StaticAnalyzer/Checkers/AllocationDiagnostics.h (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li //=--- AllocationDiagnostics.h - 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 #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
15*67e74705SXin Li #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
16*67e74705SXin Li 
17*67e74705SXin Li #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
18*67e74705SXin Li 
19*67e74705SXin Li namespace clang { namespace ento {
20*67e74705SXin Li 
21*67e74705SXin Li /// \brief Returns true if leak diagnostics should directly reference
22*67e74705SXin Li /// the allocatin site (where possible).
23*67e74705SXin Li ///
24*67e74705SXin Li /// The default is false.
25*67e74705SXin Li ///
26*67e74705SXin Li bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts);
27*67e74705SXin Li 
28*67e74705SXin Li }}
29*67e74705SXin Li 
30*67e74705SXin Li #endif
31*67e74705SXin Li 
32