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
Basic
Attributes.h
Go to the documentation of this file.
1
//===--- Attributes.h - Attributes header -----------------------*- 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_BASIC_ATTRIBUTES_H
11
#define LLVM_CLANG_BASIC_ATTRIBUTES_H
12
13
#include "
clang/Basic/LangOptions.h
"
14
#include "llvm/ADT/Triple.h"
15
16
namespace
clang {
17
18
class
IdentifierInfo;
19
20
enum class
AttrSyntax
{
21
/// Is the identifier known as a GNU-style attribute?
22
GNU
,
23
/// Is the identifier known as a __declspec-style attribute?
24
Declspec
,
25
// Is the identifier known as a C++-style attribute?
26
CXX
,
27
// Is the identifier known as a pragma attribute?
28
Pragma
29
};
30
31
/// \brief Return the version number associated with the attribute if we
32
/// recognize and implement the attribute specified by the given information.
33
int
hasAttribute
(
AttrSyntax
Syntax,
const
IdentifierInfo *Scope,
34
const
IdentifierInfo *Attr,
const
llvm::Triple &T,
35
const
LangOptions &LangOpts);
36
37
}
// end namespace clang
38
39
#endif // LLVM_CLANG_BASIC_ATTRIBUTES_H
clang::AttrSyntax::Declspec
Is the identifier known as a __declspec-style attribute?
clang::AttrSyntax::GNU
Is the identifier known as a GNU-style attribute?
clang::AttrSyntax::Pragma
clang::hasAttribute
int hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope, const IdentifierInfo *Attr, const llvm::Triple &T, const LangOptions &LangOpts)
Return the version number associated with the attribute if we recognize and implement the attribute s...
Definition:
Attributes.cpp:6
clang::AttrSyntax
AttrSyntax
Definition:
Attributes.h:20
clang::AttrSyntax::CXX
LangOptions.h
Defines the clang::LangOptions interface.
Generated on Mon Aug 31 2015 10:45:10 for clang by
1.8.6