diff options
author | terminaldweller <thabogre@gmail.com> | 2021-07-14 07:19:28 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-07-14 07:19:28 +0000 |
commit | 308bc02b8a310fd388c6f7267c9f6d71e3cacec3 (patch) | |
tree | 0cbaa891c47ffd8a22bdc22973b7fc6e57b1954d | |
parent | fix for llvm 13 (diff) | |
download | cgrep-308bc02b8a310fd388c6f7267c9f6d71e3cacec3.tar.gz cgrep-308bc02b8a310fd388c6f7267c9f6d71e3cacec3.zip |
fix for llvm 13v1.1.2
-rw-r--r-- | cgrep.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1106,8 +1106,7 @@ private: /*Main*/ int main(int argc, const char **argv) { #if __clang_major__ >= 13 - auto op = - CommonOptionsParser::create(argc, argv, CGrepCat); + auto op = CommonOptionsParser::create(argc, argv, CGrepCat); if (auto error = op.takeError()) { errs() << toString(std::move(error)) << "\n"; return 1; @@ -1115,6 +1114,7 @@ int main(int argc, const char **argv) { ClangTool Tool(op->getCompilations(), op->getSourcePathList()); #else CommonOptionsParser op(argc, argv, CGrepCat); + ClangTool Tool(op.getCompilations(), op.getSourcePathList()); #endif int ret = 0; |