Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:36:48

0001 //===--- Attributes.h - Attributes header -----------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_CLANG_BASIC_ATTRIBUTES_H
0010 #define LLVM_CLANG_BASIC_ATTRIBUTES_H
0011 
0012 #include "clang/Basic/AttributeCommonInfo.h"
0013 
0014 namespace clang {
0015 
0016 class IdentifierInfo;
0017 class LangOptions;
0018 class TargetInfo;
0019 
0020 /// Return the version number associated with the attribute if we
0021 /// recognize and implement the attribute specified by the given information.
0022 int hasAttribute(AttributeCommonInfo::Syntax Syntax,
0023                  const IdentifierInfo *Scope, const IdentifierInfo *Attr,
0024                  const TargetInfo &Target, const LangOptions &LangOpts);
0025 
0026 int hasAttribute(AttributeCommonInfo::Syntax Syntax,
0027                  const IdentifierInfo *Scope, const IdentifierInfo *Attr,
0028                  const TargetInfo &Target, const LangOptions &LangOpts,
0029                  bool CheckPlugins);
0030 
0031 } // end namespace clang
0032 
0033 #endif // LLVM_CLANG_BASIC_ATTRIBUTES_H