From a66b574b28874d4ba32b0732c01f70d64d539284 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 17 Feb 2014 15:36:08 +0000 Subject: [PATCH] Fixing build bot breakage due to using a local type as a template argument. llvm-svn: 201516 --- clang/utils/TableGen/ClangAttrEmitter.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index f2bfa79defce..58d8fc1381a1 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -2677,6 +2677,13 @@ static void WriteCategoryHeader(DocumentationData::DocCategory Category, OS << "\n"; } +enum SpellingKind { + GNU = 1 << 0, + CXX11 = 1 << 1, + Declspec = 1 << 2, + Keyword = 1 << 3 +}; + static void WriteDocumentation(const DocumentationData &Doc, raw_ostream &OS) { // FIXME: there is no way to have a per-spelling category for the attribute @@ -2715,13 +2722,6 @@ static void WriteDocumentation(const DocumentationData &Doc, // semantic characters are still acceptable. std::vector Names; - enum SpellingKind { - GNU = 1 << 0, - CXX11 = 1 << 1, - Declspec = 1 << 2, - Keyword = 1 << 3 - }; - unsigned SupportedSpellings = 0; for (std::vector::const_iterator I = Spellings.begin(), E = Spellings.end(); I != E; ++I) {