aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ClazyStandaloneMain.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/ClazyStandaloneMain.cpp b/src/ClazyStandaloneMain.cpp
index 3118048b..aada1895 100644
--- a/src/ClazyStandaloneMain.cpp
+++ b/src/ClazyStandaloneMain.cpp
@@ -125,19 +125,7 @@ public:
int main(int argc, const char **argv)
{
-#if LLVM_VERSION_MAJOR >= 9
- /* HACK: cl::ZeroOrMore makes clazy-standalone stop working for some reason (with llvm-9).
- * optionsParser.getSourcePathList() returns 0, even with a command as simple as:
- * clang-standalone main.cpp
- * The exact same command line works in clang-tidy, which has the same CommonOptionsParser code.
- * Commented for now to figure if it's a compiler bug on my archlinux.
- */
- auto numOccurrencesFlag = cl::OneOrMore;
-#else
- auto numOccurrencesFlag = cl::ZeroOrMore;
-#endif
-
- CommonOptionsParser optionsParser(argc, argv, s_clazyCategory, numOccurrencesFlag);
+ CommonOptionsParser optionsParser(argc, argv, s_clazyCategory, cl::ZeroOrMore);
// llvm::errs() << optionsParser.getSourcePathList().size() << "\n";
if (s_supportedChecks.getValue()) {