[LLVMbugs] [Bug 13169] New: Clang driver warning: argument unused during compilation: '-fixit'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 21 16:48:33 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13169
Bug #: 13169
Summary: Clang driver warning: argument unused during
compilation: '-fixit'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rikka at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
As of r158931 clang complains about -fixit and friends being unused instead of
passing them to the "clang -cc1" invocation, despite mentioning them in the
help text:
$ ./bin/clang --help
OVERVIEW: clang "gcc-compatible" driver
USAGE: clang-3 [options] <inputs>
OPTIONS:
...
-fgnu89-inline Use the gnu89 inline semantics
-fhidden-weak-vtables Generate weak vtables and RTTI with hidden visibility
-finstrument-functions Generate calls to instrument function entry and exit
-fix-only-warnings Apply fix-it advice only for warnings, not errors
-fix-what-you-can Apply fix-it advice even in the presence of unfixable
errors
-fixit-recompile Apply fix-it changes and recompile
-fixit-to-temporary Apply fix-it changes to temporary files
-fixit=<value> Apply fix-it advice creating a file with the given
suffix
-fixit Apply fix-it advice to the input source
-flimit-debug-info Limit debug information produced to reduce size of
debug binary
...
$ cat foo.c
unsinged x = 0U;
$ ./bin/clang -fixit -fix-what-you-can foo.c
clang-3: warning: argument unused during compilation: '-fixit'
clang-3: warning: argument unused during compilation: '-fix-what-you-can'
foo.c:1:1: error: unknown type name 'unsinged'; did you mean 'unsigned'?
unsinged x = 0U;
^~~~~~~~
unsigned
1 error generated.
$ cat foo.c
unsinged x = 0U;
$ ./bin/clang -cc1 -fixit -fix-what-you-can foo.c
foo.c:1:1: error: unknown type name 'unsinged'; did you mean 'unsigned'?
unsinged x = 0U;
^~~~~~~~
unsigned
foo.c:1:1: note: FIX-IT applied suggested code changes
1 error generated.
$ cat foo.c
unsigned x = 0U;
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list