CommonBugCategories.cpp 944 B

123456789101112131415161718192021
  1. //=--- CommonBugCategories.cpp - Provides common issue categories -*- C++ -*-=//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #include "clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h"
  9. // Common strings used for the "category" of many static analyzer issues.
  10. namespace clang { namespace ento { namespace categories {
  11. const char * const CoreFoundationObjectiveC = "Core Foundation/Objective-C";
  12. const char * const LogicError = "Logic error";
  13. const char * const MemoryRefCount =
  14. "Memory (Core Foundation/Objective-C/OSObject)";
  15. const char * const MemoryError = "Memory error";
  16. const char * const UnixAPI = "Unix API";
  17. const char * const CXXObjectLifecycle = "C++ object lifecycle";
  18. }}}