summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-02-17 15:36:08 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-02-17 15:36:08 +0000
commitb49c375def5c34c1ef43e19300c733d525d9d0ad (patch)
tree799e238078d690ed53326b7cb5e3726593f773b0 /utils
parentb0d5955832088e3771d541dda30cc8f73e5d93f2 (diff)
downloadclang-b49c375def5c34c1ef43e19300c733d525d9d0ad.tar.gz
clang-b49c375def5c34c1ef43e19300c733d525d9d0ad.tar.bz2
clang-b49c375def5c34c1ef43e19300c733d525d9d0ad.tar.xz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangAttrEmitter.cpp14
1 files 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<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) {