summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-26 21:25:24 +0000
committerDan Gohman <gohman@apple.com>2010-07-26 21:25:24 +0000
commit28ade550f4c6e93bbb0eeec5f1f47efb3e2591ca (patch)
tree7e8f836f508fb7a3c82e294cbdb434e038c1f4a6 /clang/lib/Basic
parenta8b949883ed352b9b0851dbb7b39b8be05530ffe (diff)
downloadbcm5719-llvm-28ade550f4c6e93bbb0eeec5f1f47efb3e2591ca.tar.gz
bcm5719-llvm-28ade550f4c6e93bbb0eeec5f1f47efb3e2591ca.zip
Fix namespace polution.
llvm-svn: 109440
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Diagnostic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp
index f956f1aec85..74937910d93 100644
--- a/clang/lib/Basic/Diagnostic.cpp
+++ b/clang/lib/Basic/Diagnostic.cpp
@@ -38,6 +38,8 @@ using namespace clang;
// Builtin Diagnostic information
//===----------------------------------------------------------------------===//
+namespace {
+
// Diagnostic classes.
enum {
CLASS_NOTE = 0x01,
@@ -64,6 +66,8 @@ struct StaticDiagInfoRec {
}
};
+}
+
static const StaticDiagInfoRec StaticDiagInfo[] = {
#define DIAG(ENUM,CLASS,DEFAULT_MAPPING,DESC,GROUP,SFINAE, CATEGORY) \
{ diag::ENUM, DEFAULT_MAPPING, CLASS, SFINAE, CATEGORY, DESC, GROUP },
OpenPOWER on IntegriCloud