clang 22.0.0git
Attributes.h
Go to the documentation of this file.
1//===--- Attributes.h - Attributes header -----------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_BASIC_ATTRIBUTES_H
10#define LLVM_CLANG_BASIC_ATTRIBUTES_H
11
13
14namespace clang {
15
16class IdentifierInfo;
17class LangOptions;
18class TargetInfo;
19
20/// Return the version number associated with the attribute if we
21/// recognize and implement the attribute specified by the given information.
22int hasAttribute(AttributeCommonInfo::Syntax Syntax, llvm::StringRef ScopeName,
23 llvm::StringRef AttrName, const TargetInfo &Target,
24 const LangOptions &LangOpts, bool CheckPlugins);
25
28 const TargetInfo &Target, const LangOptions &LangOpts);
29
32 const TargetInfo &Target, const LangOptions &LangOpts,
33 bool CheckPlugins);
34
35} // end namespace clang
36
37#endif // LLVM_CLANG_BASIC_ATTRIBUTES_H
Attr - This represents one attribute.
Definition Attr.h:44
Syntax
The style used to specify an attribute.
One of these records is kept for each identifier that is lexed.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Scope - A scope is a transient data structure that is used while parsing the program.
Definition Scope.h:41
Exposes information about the current target.
Definition TargetInfo.h:226
The JSON file list parser is used to communicate input to InstallAPI.
int hasAttribute(AttributeCommonInfo::Syntax Syntax, llvm::StringRef ScopeName, llvm::StringRef AttrName, const TargetInfo &Target, const LangOptions &LangOpts, bool CheckPlugins)
Return the version number associated with the attribute if we recognize and implement the attribute s...