From b49c375def5c34c1ef43e19300c733d525d9d0ad 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201516 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/ClangAttrEmitter.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index f2bfa79def..58d8fc1381 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/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) { -- 2.40.0