]> granicus.if.org Git - clang/commitdiff
Put helper class in anonymous namespace.
authorCraig Topper <craig.topper@gmail.com>
Mon, 1 Jul 2013 06:34:58 +0000 (06:34 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 1 Jul 2013 06:34:58 +0000 (06:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185306 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Tooling/JSONCompilationDatabase.cpp

index 254b069952da94b4bea71e2fc3a36a2efa5e94e3..1e33b418af4ee67953eaddb264d3c7f164b7f612 100644 (file)
@@ -117,8 +117,6 @@ std::vector<std::string> unescapeCommandLine(
   return parser.parse();
 }
 
-} // end namespace
-
 class JSONCompilationDatabasePlugin : public CompilationDatabasePlugin {
   virtual CompilationDatabase *loadFromDirectory(
       StringRef Directory, std::string &ErrorMessage) {
@@ -132,6 +130,8 @@ class JSONCompilationDatabasePlugin : public CompilationDatabasePlugin {
   }
 };
 
+} // end namespace
+
 // Register the JSONCompilationDatabasePlugin with the
 // CompilationDatabasePluginRegistry using this statically initialized variable.
 static CompilationDatabasePluginRegistry::Add<JSONCompilationDatabasePlugin>