]> granicus.if.org Git - clang/commitdiff
Post-commit review coding style change: renaming HasAttribute to hasAttribute. No...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 31 Mar 2014 15:26:40 +0000 (15:26 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 31 Mar 2014 15:26:40 +0000 (15:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205201 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attributes.h
lib/Basic/Attributes.cpp
lib/Lex/PPMacroExpansion.cpp

index 48242fe641beea76852e06b38b9ed08d85345c8e..4a7e4629d046d24f23df22b19521918bc0a564cc 100644 (file)
@@ -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);
 
index c882bc226d47dc2192aa08915f49548325c2eb18..a05ad053db04d2f9718245a0cfff11b5429e861c 100644 (file)
@@ -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();
index 62a89c03e185b5ea30aeb3b7c071241110120887..35f9192d38ea1fa58eccc8eb34a9d2919cfe4c72 100644 (file)
@@ -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);