clang API Documentation

AllocationDiagnostics.h
Go to the documentation of this file.
00001 //=--- AllocationDiagnostics.h - 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 #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
00015 #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_ALLOCATIONDIAGNOSTICS_H
00016 
00017 #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
00018 
00019 namespace clang { namespace ento {
00020 
00021 /// \brief Returns true if leak diagnostics should directly reference
00022 /// the allocatin site (where possible).
00023 ///
00024 /// The default is false.
00025 ///
00026 bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts);
00027 
00028 }}
00029 
00030 #endif
00031