diff options
author | Jordy Rose <jediknil@belkadan.com> | 2011-08-17 01:30:59 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2011-08-17 01:30:59 +0000 |
commit | 77a33a71701b59affb5337d9e2b57d69bc095c7d (patch) | |
tree | 922ce1739cd3a9b18109432b7c7a90a38df963d1 /include/clang/StaticAnalyzer/Core/CheckerOptInfo.h | |
parent | bc84532e762a41141bd94037cd5d1133f234088e (diff) |
[analyzer] Add basic support for pluggable checkers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/CheckerOptInfo.h')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/CheckerOptInfo.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h b/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h index 76f98a8cda..b64fbf2c1f 100644 --- a/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h +++ b/include/clang/StaticAnalyzer/Core/CheckerOptInfo.h @@ -37,42 +37,3 @@ public: } // end namespace clang #endif -//===--- CheckerOptInfo.h - Specifies which checkers to use -----*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H -#define LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H - -#include "clang/Basic/LLVM.h" - -namespace clang { -namespace ento { - -class CheckerOptInfo { - StringRef Name; - bool Enable; - bool Claimed; - -public: - CheckerOptInfo(StringRef name, bool enable) - : Name(name), Enable(enable), Claimed(false) { } - - StringRef getName() const { return Name; } - bool isEnabled() const { return Enable; } - bool isDisabled() const { return !isEnabled(); } - - bool isClaimed() const { return Claimed; } - bool isUnclaimed() const { return !isClaimed(); } - void claim() { Claimed = true; } -}; - -} // end namespace ento -} // end namespace clang - -#endif |