blob: 77a5a72264532c96b7c99789b95191a55a3f3729 [file] [log] [blame]
Jordy Rose08b86532011-08-16 21:24:21 +00001//===--- ClangCheckers.h - Provides builtin 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#include "clang/StaticAnalyzer/Checkers/ClangCheckers.h"
11#include "clang/StaticAnalyzer/Core/CheckerRegistry.h"
12
13// FIXME: This is only necessary as long as there are checker registration
14// functions that do additional work besides mgr.registerChecker<CLASS>().
15// The only checkers that currently do this are:
16// - NSAutoreleasePoolChecker
17// - NSErrorChecker
18// - ObjCAtSyncChecker
19// It's probably worth including this information in Checkers.td to minimize
20// boilerplate code.
21#include "ClangSACheckers.h"
22
23using namespace clang;
24using namespace ento;
25
26void ento::registerBuiltinCheckers(CheckerRegistry &registry) {
27#define GET_CHECKERS
28#define CHECKER(FULLNAME,CLASS,DESCFILE,HELPTEXT,GROUPINDEX,HIDDEN) \
29 registry.addChecker(register##CLASS, FULLNAME, HELPTEXT);
30#include "Checkers.inc"
31#undef GET_CHECKERS
32}