AllocationDiagnostics.cpp 722 B

123456789101112131415161718192021222324
  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. #include "AllocationDiagnostics.h"
  14. namespace clang {
  15. namespace ento {
  16. bool shouldIncludeAllocationSiteInLeakDiagnostics(AnalyzerOptions &AOpts) {
  17. return AOpts.getBooleanOption("leak-diagnostics-reference-allocation",
  18. false);
  19. }
  20. }}