Home | History | Annotate | Download | only in Core
      1 //== Checker.cpp - Registration mechanism for checkers -----------*- 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 //  This file defines Checker, used to create and register checkers.
     11 //
     12 //===----------------------------------------------------------------------===//
     13 
     14 #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"
     15 #include "clang/StaticAnalyzer/Core/Checker.h"
     16 
     17 using namespace clang;
     18 using namespace ento;
     19 
     20 StringRef CheckerBase::getTagDescription() const {
     21   // FIXME: We want to return the package + name of the checker here.
     22   return "A Checker";
     23 }
     24 
     25 void Checker<check::_VoidCheck, check::_VoidCheck, check::_VoidCheck,
     26              check::_VoidCheck, check::_VoidCheck, check::_VoidCheck,
     27              check::_VoidCheck, check::_VoidCheck, check::_VoidCheck,
     28              check::_VoidCheck, check::_VoidCheck, check::_VoidCheck,
     29              check::_VoidCheck, check::_VoidCheck, check::_VoidCheck,
     30              check::_VoidCheck, check::_VoidCheck, check::_VoidCheck
     31              >::anchor() { }
     32