From 6d6a4e767634b5b3ce5a68222edba713ad135f39 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 31 Mar 2014 15:26:40 +0000 Subject: [PATCH] Post-commit review coding style change: renaming HasAttribute to hasAttribute. No functional changes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205201 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Attributes.h | 2 +- lib/Basic/Attributes.cpp | 2 +- lib/Lex/PPMacroExpansion.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/clang/Basic/Attributes.h b/include/clang/Basic/Attributes.h index 48242fe641..4a7e4629d0 100644 --- a/include/clang/Basic/Attributes.h +++ b/include/clang/Basic/Attributes.h @@ -30,7 +30,7 @@ enum class AttrSyntax { /// \brief Return true if we recognize and implement the attribute specified by /// the given information. -bool HasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope, +bool hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope, const IdentifierInfo *Attr, const llvm::Triple &T, const LangOptions &LangOpts); diff --git a/lib/Basic/Attributes.cpp b/lib/Basic/Attributes.cpp index c882bc226d..a05ad053db 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, +bool clang::hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope, const IdentifierInfo *Attr, const llvm::Triple &T, const LangOptions &LangOpts) { StringRef Name = Attr->getName(); diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index 62a89c03e1..35f9192d38 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -1386,7 +1386,7 @@ void Preprocessor::ExpandBuiltinMacro(Token &Tok) { // Check for a builtin is trivial. Value = FeatureII->getBuiltinID() != 0; } else if (II == Ident__has_attribute) - Value = HasAttribute(AttrSyntax::Generic, nullptr, FeatureII, + Value = hasAttribute(AttrSyntax::Generic, nullptr, FeatureII, getTargetInfo().getTriple(), getLangOpts()); else if (II == Ident__has_extension) Value = HasExtension(*this, FeatureII); -- 2.40.0