[PATCH] D57046: [llvm-symbolizer] Allow single letter command flags grouping.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 22 05:40:04 PST 2019


jhenderson added a comment.

The code change looks fine. Please make sure, if you haven't already, to review all tests using llvm-symbolizer (they exist both in tools/llvm-symbolizer and DebugInfo) that currently use single dash options (for long options) to make sure they aren't negatively impacted. Adding grouping behaviour can cause a change in behaviour for these cases, if you're not careful.



================
Comment at: test/tools/llvm-symbolizer/sym.test:25
 RUN: llvm-symbolizer -inlining -print-address -p -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
+RUN: llvm-symbolizer -inlining -apC -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
 RUN: echo "0x1" > %t.input
----------------
Rather than extending an existing test, I'd prefer it if this was done in its own test, as it isn't necessarily clear that this is specifically testing the combining of short options.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D57046





More information about the llvm-commits mailing list