Put helper class in anonymous namespace.

llvm-svn: 185306
This commit is contained in:
Craig Topper
2013-07-01 06:34:58 +00:00
parent cd7b03342d
commit 69b6277a83

View 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>