Support general warnings and errors in lint pass via flags and attrs. Close #1543.

This commit is contained in:
Graydon Hoare
2012-04-12 17:30:52 -07:00
parent 7b3cb05311
commit 8a7fd4a04f
11 changed files with 273 additions and 130 deletions

View File

@@ -39,7 +39,6 @@ Options:
--lib Compile a library crate
--ls List the symbols defined by a compiled library crate
--no-asm-comments Do not add comments into the assembly source
--no-lint-ctypes Suppress warnings for possibly incorrect ctype usage
--no-trans Run all passes except translation; no output
--no-verify Suppress LLVM verification step (slight speedup)
(see http://llvm.org/docs/Passes.html for detail)
@@ -65,13 +64,15 @@ Options:
(see http://sources.redhat.com/autobook/autobook/
autobook_17.html for detail)
-W <foo> enable warning <foo>
-W no-<foo> disable warning <foo>
-W err-<foo> enable warning <foo> as an error
--time-passes Time the individual phases of the compiler
--time-llvm-passes Time the individual phases of the LLVM backend
--count-llvm-insns Count and categorize generated LLVM instructions
-v --version Print version info and exit
--warn-unused-imports
Warn about unnecessary imports
-v --version Print version info and exit
");
}