Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/lib/StaticAnalyzer/Core/Checker.cpp
Line
Count
Source (jump to first uncovered line)
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/PathSensitive/ProgramState.h"
14
#include "clang/StaticAnalyzer/Core/Checker.h"
15
16
using namespace clang;
17
using namespace ento;
18
19
int ImplicitNullDerefEvent::Tag;
20
21
801
StringRef CheckerBase::getTagDescription() const {
22
801
  return getCheckName().getName();
23
801
}
24
25
12.8k
CheckName CheckerBase::getCheckName() const { return Name; }
26
27
CheckerProgramPointTag::CheckerProgramPointTag(StringRef CheckerName,
28
                                               StringRef Msg)
29
84
  : SimpleProgramPointTag(CheckerName, Msg) {}
30
31
CheckerProgramPointTag::CheckerProgramPointTag(const CheckerBase *Checker,
32
                                               StringRef Msg)
33
290
  : SimpleProgramPointTag(Checker->getCheckName().getName(), Msg) {}
34
35
raw_ostream& clang::ento::operator<<(raw_ostream &Out,
36
0
                                     const CheckerBase &Checker) {
37
0
  Out << Checker.getCheckName().getName();
38
0
  return Out;
39
0
}