initial commit
This commit is contained in:
commit
8385bbb030
7 changed files with 562 additions and 0 deletions
19
main.cpp
Normal file
19
main.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue