AllocationDiagnostics.h 972 B

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