aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-07-14 07:19:28 +0000
committerterminaldweller <thabogre@gmail.com>2021-07-14 07:19:28 +0000
commit308bc02b8a310fd388c6f7267c9f6d71e3cacec3 (patch)
tree0cbaa891c47ffd8a22bdc22973b7fc6e57b1954d
parentfix for llvm 13 (diff)
downloadcgrep-308bc02b8a310fd388c6f7267c9f6d71e3cacec3.tar.gz
cgrep-308bc02b8a310fd388c6f7267c9f6d71e3cacec3.zip
fix for llvm 13v1.1.2
Diffstat (limited to '')
-rw-r--r--cgrep.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgrep.cpp b/cgrep.cpp
index 3cdff06..4600668 100644
--- a/cgrep.cpp
+++ b/cgrep.cpp
@@ -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;