xref: /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/Checker.cpp (revision 700637cbb5e582861067a11aaca4d053546871d2)
1 //== Checker.cpp - Registration mechanism for checkers -----------*- 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 //
9 //  This file defines Checker, used to create and register checkers.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "clang/StaticAnalyzer/Core/Checker.h"
14 
15 using namespace clang;
16 using namespace ento;
17 
18 int ImplicitNullDerefEvent::Tag;
19 
getDebugTag() const20 StringRef CheckerBase::getDebugTag() const { return getName(); }
21 
printState(raw_ostream & Out,ProgramStateRef State,const char * NL,const char * Sep) const22 void CheckerBackend::printState(raw_ostream &Out, ProgramStateRef State,
23                                 const char *NL, const char *Sep) const {}
24