hanchenye-llvm-project/clang
Tom Care 3f272b853f Bug 7377: printf checking fails to flag some undefined behavior
http://llvm.org/bugs/show_bug.cgi?id=7377

Updated format string highlighting and fixits to take advantage of the new CharSourceRange class.
- Change HighlightRange to allow highlighting whitespace only in a CharSourceRange (for warnings about the ' ' (space) flag)
- Change format specifier range helper function to allow for half-open ranges (+1 to end)
- Enabled previously failing tests (FIXMEs/XFAILs removed)
- Small fixes and additions to format string test cases

M       test/Sema/format-strings.c
M       test/Sema/format-strings-fixit.c
M       lib/Frontend/TextDiagnosticPrinter.cpp
M       lib/Sema/SemaChecking.cpp

llvm-svn: 106480
2010-06-21 21:21:01 +00:00
..
INPUTS
bindings/python Rename 'CIndex' to 'libclang', since it has basically become our stable public 2010-04-30 21:51:10 +00:00
clang.xcodeproj Update Xcode project. 2010-06-08 20:02:04 +00:00
docs Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile. 2010-06-08 20:34:18 +00:00
examples Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy Straszheim! 2010-06-16 16:59:23 +00:00
include Add CXType support for querying the return type of Objective-C methods. This is done by 2010-06-21 20:48:56 +00:00
lib Bug 7377: printf checking fails to flag some undefined behavior 2010-06-21 21:21:01 +00:00
test Bug 7377: printf checking fails to flag some undefined behavior 2010-06-21 21:21:01 +00:00
tools Add CXType support for querying the return type of Objective-C methods. This is done by 2010-06-21 20:48:56 +00:00
utils FuzzTest: Add support for reading list of replacements from a file. 2010-05-30 22:27:55 +00:00
www Rework the unqualified-lookup-in-templates section of the compatibility 2010-06-16 10:48:16 +00:00
CMakeLists.txt Teach the PrintFunctionNames example to be a proper module, so that 2010-06-08 19:23:49 +00:00
INSTALL.txt
LICENSE.TXT
Makefile add a libs-only target to the clang makefile, patch by Sunay Ismail 2010-06-19 06:35:25 +00:00
ModuleInfo.txt
NOTES.txt
README.txt Fix typo (test commit) 2010-06-17 12:39:05 +00:00
TODO.txt
VER Bump Clang version number. 2010-04-29 15:30:51 +00:00

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:              http://clang.llvm.org/
Building and using Clang:          http://clang.llvm.org/get_started.html
Clang Static Analyzer:             http://clang-analyzer.llvm.org/
Information on the LLVM project:   http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/