]> granicus.if.org Git - clang/commitdiff
Fixing build bot breakage due to using a local type as a template argument.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 17 Feb 2014 15:36:08 +0000 (15:36 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 17 Feb 2014 15:36:08 +0000 (15:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201516 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangAttrEmitter.cpp

index f2bfa79defce52f27061f27870993ce9bdfb5933..58d8fc1381a12c9c4fc9eff40596e0b33c1fd8c6 100644 (file)
@@ -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<std::string> Names;
 
-  enum SpellingKind {
-    GNU = 1 << 0,
-    CXX11 = 1 << 1,
-    Declspec = 1 << 2,
-    Keyword = 1 << 3
-  };
-
   unsigned SupportedSpellings = 0;
   for (std::vector<FlattenedSpelling>::const_iterator I = Spellings.begin(),
        E = Spellings.end(); I != E; ++I) {