clang API Documentation

AllocationDiagnostics.cpp
Go to the documentation of this file.
00001 //=- AllocationDiagnostics.cpp - Config options for allocation diags *- C++ -*-//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // Declares the configuration functions for leaks/allocation diagnostics.
00011 //
00012 //===--------------------------
00013 
00014 #include "AllocationDiagnostics.h"
00015 
00016 namespace clang {
00017 namespace ento {
00018 
00019 bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts) {
00020   return AOpts.getBooleanOption("leak-diagnostics-reference-allocation",
00021                                 false);
00022 }
00023 
00024 }}