clang API Documentation
00001 //== Checker.cpp - Registration mechanism for checkers -----------*- C++ -*--=// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file defines Checker, used to create and register checkers. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h" 00015 #include "clang/StaticAnalyzer/Core/Checker.h" 00016 00017 using namespace clang; 00018 using namespace ento; 00019 00020 StringRef CheckerBase::getTagDescription() const { 00021 // FIXME: We want to return the package + name of the checker here. 00022 return "A Checker"; 00023 } 00024 00025 void Checker<check::_VoidCheck, check::_VoidCheck, check::_VoidCheck, 00026 check::_VoidCheck, check::_VoidCheck, check::_VoidCheck, 00027 check::_VoidCheck, check::_VoidCheck, check::_VoidCheck, 00028 check::_VoidCheck, check::_VoidCheck, check::_VoidCheck, 00029 check::_VoidCheck, check::_VoidCheck, check::_VoidCheck, 00030 check::_VoidCheck, check::_VoidCheck, check::_VoidCheck 00031 >::anchor() { }