clang
7.0.0svn
lib
StaticAnalyzer
Checkers
AllocationDiagnostics.cpp
Go to the documentation of this file.
1
//=- AllocationDiagnostics.cpp - 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
14
#include "
AllocationDiagnostics.h
"
15
16
namespace
clang
{
17
namespace
ento {
18
19
bool
shouldIncludeAllocationSiteInLeakDiagnostics
(
AnalyzerOptions
&AOpts) {
20
return
AOpts.
getBooleanOption
(
"leak-diagnostics-reference-allocation"
,
21
false
);
22
}
23
24
}}
clang::ento::shouldIncludeAllocationSiteInLeakDiagnostics
bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts)
Returns true if leak diagnostics should directly reference the allocatin site (where possible)...
Definition:
AllocationDiagnostics.cpp:19
clang::AnalyzerOptions::getBooleanOption
bool getBooleanOption(StringRef Name, bool DefaultVal, const ento::CheckerBase *C=nullptr, bool SearchInParents=false)
Interprets an option's string value as a boolean.
Definition:
AnalyzerOptions.cpp:174
clang
Dataflow Directional Tag Classes.
Definition:
CFGReachabilityAnalysis.h:22
AllocationDiagnostics.h
clang::AnalyzerOptions
Definition:
AnalyzerOptions.h:124
Generated on Thu Apr 26 2018 00:53:26 for clang by
1.8.13