summaryrefslogtreecommitdiffstats
path: root/lib/Basic
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-11-14 13:44:02 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-11-14 13:44:02 +0000
commit9135eee6f513333cd4668ff5b22a3fbbc327be83 (patch)
treeab10592f912c59c5e49c3f7bee0eb6ef331ab46a /lib/Basic
parent8f0a1a658d9db734f55a637d6b2b64a084653fe8 (diff)
Complete support for the SD-6 standing document (based off N4200) with support for __has_cpp_attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r--lib/Basic/Attributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/Attributes.cpp b/lib/Basic/Attributes.cpp
index a05ad053db..da9ac793f1 100644
--- a/lib/Basic/Attributes.cpp
+++ b/lib/Basic/Attributes.cpp
@@ -3,7 +3,7 @@
#include "llvm/ADT/StringSwitch.h"
using namespace clang;
-bool clang::hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope,
+int clang::hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope,
const IdentifierInfo *Attr, const llvm::Triple &T,
const LangOptions &LangOpts) {
StringRef Name = Attr->getName();
@@ -13,5 +13,5 @@ bool clang::hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope,
#include "clang/Basic/AttrHasAttributeImpl.inc"
- return false;
+ return 0;
}