clang
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
tools
clang
include
clang
StaticAnalyzer
Core
CheckerOptInfo.h
Go to the documentation of this file.
1
//===--- CheckerOptInfo.h - Specifies which checkers to use -----*- 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
#ifndef LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H
11
#define LLVM_CLANG_STATICANALYZER_CORE_CHECKEROPTINFO_H
12
13
#include "
clang/Basic/LLVM.h
"
14
#include "llvm/ADT/StringRef.h"
15
16
namespace
clang {
17
namespace
ento {
18
19
/// Represents a request to include or exclude a checker or package from a
20
/// specific analysis run.
21
///
22
/// \sa CheckerRegistry::initializeManager
23
class
CheckerOptInfo
{
24
StringRef Name;
25
bool
Enable;
26
bool
Claimed;
27
28
public
:
29
CheckerOptInfo
(StringRef name,
bool
enable)
30
: Name(name), Enable(enable), Claimed(
false
) { }
31
32
StringRef
getName
()
const
{
return
Name; }
33
bool
isEnabled
()
const
{
return
Enable; }
34
bool
isDisabled
()
const
{
return
!
isEnabled
(); }
35
36
bool
isClaimed
()
const
{
return
Claimed; }
37
bool
isUnclaimed
()
const
{
return
!
isClaimed
(); }
38
void
claim
() { Claimed =
true
; }
39
};
40
41
}
// end namespace ento
42
}
// end namespace clang
43
44
#endif
clang::ento::CheckerOptInfo
Definition:
CheckerOptInfo.h:23
clang::ento::CheckerOptInfo::CheckerOptInfo
CheckerOptInfo(StringRef name, bool enable)
Definition:
CheckerOptInfo.h:29
LLVM.h
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
clang::ento::CheckerOptInfo::isDisabled
bool isDisabled() const
Definition:
CheckerOptInfo.h:34
clang::ento::CheckerOptInfo::isEnabled
bool isEnabled() const
Definition:
CheckerOptInfo.h:33
clang::ento::CheckerOptInfo::claim
void claim()
Definition:
CheckerOptInfo.h:38
clang::ento::CheckerOptInfo::getName
StringRef getName() const
Definition:
CheckerOptInfo.h:32
false
#define false
Definition:
stdbool.h:33
clang::ento::CheckerOptInfo::isClaimed
bool isClaimed() const
Definition:
CheckerOptInfo.h:36
clang::ento::CheckerOptInfo::isUnclaimed
bool isUnclaimed() const
Definition:
CheckerOptInfo.h:37
Generated on Mon Aug 31 2015 10:45:13 for clang by
1.8.6