From b43737387b00a2f259d96a242fe8c1685566cd6c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 23 Nov 2009 18:53:03 +0000 Subject: [PATCH] Provide out-of-line definition for destructor of Checker. llvm-svn: 89688 --- .../clang/Analysis/PathSensitive/Checker.h | 2 +- clang/lib/Analysis/CMakeLists.txt | 1 + clang/lib/Analysis/Checker.cpp | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 clang/lib/Analysis/Checker.cpp diff --git a/clang/include/clang/Analysis/PathSensitive/Checker.h b/clang/include/clang/Analysis/PathSensitive/Checker.h index bfc431d07ad3..1fb92a61deac 100644 --- a/clang/include/clang/Analysis/PathSensitive/Checker.h +++ b/clang/include/clang/Analysis/PathSensitive/Checker.h @@ -162,7 +162,7 @@ private: } public: - virtual ~Checker() {} + virtual ~Checker(); virtual void _PreVisit(CheckerContext &C, const Stmt *S) {} virtual void _PostVisit(CheckerContext &C, const Stmt *S) {} virtual void VisitLocation(CheckerContext &C, const Stmt *S, SVal location) {} diff --git a/clang/lib/Analysis/CMakeLists.txt b/clang/lib/Analysis/CMakeLists.txt index 13ce1fc7dbfe..d777eaabac28 100644 --- a/clang/lib/Analysis/CMakeLists.txt +++ b/clang/lib/Analysis/CMakeLists.txt @@ -21,6 +21,7 @@ add_clang_library(clangAnalysis CheckObjCUnusedIVars.cpp CheckSecuritySyntaxOnly.cpp CheckSizeofPointer.cpp + Checker.cpp DereferenceChecker.cpp DivZeroChecker.cpp Environment.cpp diff --git a/clang/lib/Analysis/Checker.cpp b/clang/lib/Analysis/Checker.cpp new file mode 100644 index 000000000000..985b1e0a1d7e --- /dev/null +++ b/clang/lib/Analysis/Checker.cpp @@ -0,0 +1,18 @@ +//== Checker.h - Abstract interface for checkers -----------------*- C++ -*--=// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines Checker and CheckerVisitor, classes used for creating +// domain-specific checks. +// +//===----------------------------------------------------------------------===// + +#include "clang/Analysis/PathSensitive/Checker.h" +using namespace clang; + +Checker::~Checker() {}