r205201 - Post-commit review coding style change: renaming HasAttribute to hasAttribute. No functional changes.

Aaron Ballman aaron at aaronballman.com
Mon Mar 31 08:26:40 PDT 2014


Author: aaronballman
Date: Mon Mar 31 10:26:40 2014
New Revision: 205201

URL: http://llvm.org/viewvc/llvm-project?rev=205201&view=rev
Log:
Post-commit review coding style change: renaming HasAttribute to hasAttribute. No functional changes.

Modified:
    cfe/trunk/include/clang/Basic/Attributes.h
    cfe/trunk/lib/Basic/Attributes.cpp
    cfe/trunk/lib/Lex/PPMacroExpansion.cpp

Modified: cfe/trunk/include/clang/Basic/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attributes.h?rev=205201&r1=205200&r2=205201&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Attributes.h (original)
+++ cfe/trunk/include/clang/Basic/Attributes.h Mon Mar 31 10:26:40 2014
@@ -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);
 

Modified: cfe/trunk/lib/Basic/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Attributes.cpp?rev=205201&r1=205200&r2=205201&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Attributes.cpp (original)
+++ cfe/trunk/lib/Basic/Attributes.cpp Mon Mar 31 10:26:40 2014
@@ -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();

Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=205201&r1=205200&r2=205201&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Mon Mar 31 10:26:40 2014
@@ -1386,7 +1386,7 @@ void Preprocessor::ExpandBuiltinMacro(To
       // 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);





More information about the cfe-commits mailing list