Wrap the struct in an anonymous namespace.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 13 Feb 2011 07:51:19 +0000 (07:51 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 13 Feb 2011 07:51:19 +0000 (07:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125452 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangDiagnosticsEmitter.cpp

index 9f076073eda7dc7a6f3f2b4260621a67d9417371..60e67c467466f5c4f7a6ecd22365562a2f98acab 100644 (file)
@@ -187,11 +187,13 @@ void ClangDiagsDefsEmitter::run(raw_ostream &OS) {
 // Warning Group Tables generation
 //===----------------------------------------------------------------------===//
 
+namespace {
 struct GroupInfo {
   std::vector<const Record*> DiagsInGroup;
   std::vector<std::string> SubGroups;
   unsigned IDNo;
 };
+} // end anonymous namespace.
 
 void ClangDiagGroupsEmitter::run(raw_ostream &OS) {
   // Compute a mapping from a DiagGroup to all of its parents.