19 lines
458 B
C++
19 lines
458 B
C++
#include <cstdlib>
|
|
|
|
#include "clang/Tooling/CommonOptionsParser.h"
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
using namespace clang::tooling;
|
|
using namespace llvm;
|
|
|
|
static cl::OptionCategory Category("errorck options");
|
|
|
|
int main(int argc, const char **argv) {
|
|
auto pRes = CommonOptionsParser::create(argc, argv, Category);
|
|
if (!pRes) {
|
|
llvm::errs() << pRes.takeError();
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
CommonOptionsParser &OptionsParser = pRes.get();
|
|
}
|