1 //===--- CheckerOptInfo.h - Specifies which checkers to use -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H
11 #define LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H
13 #include "clang/Basic/LLVM.h"
18 /// Represents a request to include or exclude a checker or package from a
19 /// specific analysis run.
21 /// \sa CheckerRegistry::initializeManager
22 class CheckerOptInfo {
28 CheckerOptInfo(StringRef name, bool enable)
29 : Name(name), Enable(enable), Claimed(false) { }
31 StringRef getName() const { return Name; }
32 bool isEnabled() const { return Enable; }
33 bool isDisabled() const { return !isEnabled(); }
35 bool isClaimed() const { return Claimed; }
36 bool isUnclaimed() const { return !isClaimed(); }
37 void claim() { Claimed = true; }
40 } // end namespace ento
41 } // end namespace clang