diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-11-27 20:14:30 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-11-27 20:14:30 +0000 |
| commit | c1494bddc1932a87d370c02d080c5fd6d76e4418 (patch) | |
| tree | 79a8c2398375ae591866da76cdb86e0b02dc5b4e /clang | |
| parent | fde8e4b7c9db90353c50374e639b87e913397000 (diff) | |
| download | bcm5719-llvm-c1494bddc1932a87d370c02d080c5fd6d76e4418.tar.gz bcm5719-llvm-c1494bddc1932a87d370c02d080c5fd6d76e4418.zip | |
Renaming Struct to GenericRecord for clarity; could not use Record as the enumerant because that's already taken by the Record class.
llvm-svn: 195875
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/utils/TableGen/ClangAttrEmitter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index 1a7d566ad00..abdb98d8f26 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -1713,7 +1713,7 @@ static std::string CalculateDiagnostic(const Record &S) { ObjCMethod = 1U << 2, Param = 1U << 3, Class = 1U << 4, - Struct = 1U << 5, + GenericRecord = 1U << 5, Type = 1U << 6, ObjCIVar = 1U << 7, ObjCProp = 1U << 8, @@ -1737,7 +1737,7 @@ static std::string CalculateDiagnostic(const Record &S) { .Case("TypedefName", Type) .Case("ObjCIvar", ObjCIVar) .Case("ObjCProperty", ObjCProp) - .Case("Record", Struct) + .Case("Record", GenericRecord) .Case("ObjCInterface", ObjCInterface) .Case("Block", Block) .Case("CXXRecord", Class) @@ -1771,10 +1771,10 @@ static std::string CalculateDiagnostic(const Record &S) { case Type: return "ExpectedType"; case ObjCInterface: return "ExpectedObjectiveCInterface"; - // "Struct" means struct, union or class; check the language options and if - // not compiling for C++, strip off the class part. Note that this relies - // on the fact that the context for this declares "Sema &S". - case Struct: + // "GenericRecord" means struct, union or class; check the language options + // and if not compiling for C++, strip off the class part. Note that this + // relies on the fact that the context for this declares "Sema &S". + case GenericRecord: return "(S.getLangOpts().CPlusPlus ? ExpectedStructOrUnionOrClass : " "ExpectedStructOrUnion)"; case Func | ObjCMethod | Block: return "ExpectedFunctionMethodOrBlock"; |

