[PATCH] D150568: OptTable: stop parsing options after "--" alone.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 02:14:51 PDT 2023


jhenderson added a comment.

I feel like this is a non-trivial change that requires greater visibility and buy-in from the community. I personally have no issues with it, but I think it's worth raising on the LLVM Discourse channel.



================
Comment at: llvm/test/tools/llvm-nm/option--.test:1
+; RUN: not llvm-nm -- -weird-filename-that-doesnt-exist 2>&1 | FileCheck %s --check-prefix=CHECK-NOTOPT
+; CHECK-NOTOPT: error: -weird-filename-that-doesnt-exist: No such file or directory
----------------
I don't think a test in tools/llvm-nm is the right place for this sort of behaviour, as it isn't code that is specific to llvm-nm. Can it be tested using the gtest unit test system? If not, then the test still would belong in llvm/test/Option or something like that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150568/new/

https://reviews.llvm.org/D150568



More information about the llvm-commits mailing list