diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-19 07:18:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-19 07:18:12 +0000 |
commit | 094dbf917127a1228147587076d59ca45b7c258d (patch) | |
tree | 1a24dfb0f0a832672eabc427cabf857158d55649 /include/clang/Basic/Builtins.h | |
parent | 4b6ebe390fb0e38f6871d32db15cac29d22eb752 (diff) |
Rename the 'Attributes' class to 'Attribute'. It's going to represent a single attribute in the future.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r-- | include/clang/Basic/Builtins.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index 257daf10ec..ac75be7819 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -46,13 +46,13 @@ enum ID { }; struct Info { - const char *Name, *Type, *Attributes, *HeaderName; + const char *Name, *Type, *Attribute, *HeaderName; LanguageID builtin_lang; bool operator==(const Info &RHS) const { return !strcmp(Name, RHS.Name) && !strcmp(Type, RHS.Type) && - !strcmp(Attributes, RHS.Attributes); + !strcmp(Attribute, RHS.Attribute); } bool operator!=(const Info &RHS) const { return !(*this == RHS); } }; @@ -91,40 +91,40 @@ public: /// \brief Return true if this function has no side effects and doesn't /// read memory. bool isConst(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 'c') != 0; + return strchr(GetRecord(ID).Attribute, 'c') != 0; } /// \brief Return true if we know this builtin never throws an exception. bool isNoThrow(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 'n') != 0; + return strchr(GetRecord(ID).Attribute, 'n') != 0; } /// \brief Return true if we know this builtin never returns. bool isNoReturn(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 'r') != 0; + return strchr(GetRecord(ID).Attribute, 'r') != 0; } /// \brief Return true if we know this builtin can return twice. bool isReturnsTwice(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 'j') != 0; + return strchr(GetRecord(ID).Attribute, 'j') != 0; } /// \brief Return true if this is a builtin for a libc/libm function, /// with a "__builtin_" prefix (e.g. __builtin_abs). bool isLibFunction(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 'F') != 0; + return strchr(GetRecord(ID).Attribute, 'F') != 0; } /// \brief Determines whether this builtin is a predefined libc/libm /// function, such as "malloc", where we know the signature a /// priori. bool isPredefinedLibFunction(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 'f') != 0; + return strchr(GetRecord(ID).Attribute, 'f') != 0; } /// \brief Determines whether this builtin has custom typechecking. bool hasCustomTypechecking(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 't') != 0; + return strchr(GetRecord(ID).Attribute, 't') != 0; } /// \brief Completely forget that the given ID was ever considered a builtin, @@ -152,7 +152,7 @@ public: /// /// Such functions can be const when the MathErrno lang option is disabled. bool isConstWithoutErrno(unsigned ID) const { - return strchr(GetRecord(ID).Attributes, 'e') != 0; + return strchr(GetRecord(ID).Attribute, 'e') != 0; } private: |