Post-commit review coding style change: renaming HasAttribute to hasAttribute. No functional changes.
llvm-svn: 205201
This commit is contained in:
parent
a567da5a36
commit
759c71d621
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue