From: Chandler Carruth
Date: Mon, 28 Nov 2011 22:34:59 +0000 (+0000)
Subject: Expand and clean up the diagnostics section.
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58f2cbc083e1b564a3c393c0ad9006b2e0c45e67;p=clang
Expand and clean up the diagnostics section.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145298 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html
index 0b203978a0..62793b2fed 100644
--- a/docs/ReleaseNotes.html
+++ b/docs/ReleaseNotes.html
@@ -104,17 +104,6 @@ prose in a section of its own. When doing that, delete the notes.
compiler crashes -- Chad
OS Availability attribute -- r128127
GNU ObjectiveC Runtime support -- David Chisnall
- Diagnostic improvements bucket?
-
- - Emitting fewer include stacks
- - Significantly better recovery when encountering misspelled type names
- in a declaration context. r130082
- - Expanded typo correction, most especially namespace-aware typo
- correction in C++
- - Significantly more rich diagnostics w.r.t. macro expansion backtraces,
- especially when macro arguments are involved.
-
-
libclang improvements bucket
- Better Python Bindings
@@ -145,6 +134,31 @@ prose in a section of its own. When doing that, delete the notes.
deserializing the AST and the preprocessor -- argiris
+A multitude of improvements to Clang's diagnostics
+Clang's diagnostics are constantly being improved to catch more issues, explain
+them more clearly, and provide more accurate source information about them.
+A few improvements since the 2.9 release that have a particularly high impact:
+
+ - Substantially shorter messages due to better recovery, fewer include
+ stacks, and tuning verbose features such as 'a.k.a.' type printing.
+ -
+ Able to recover and correct from misspelled type names at the begging of statements. For example, Clang now emits:
+
t.c:6:3: error: use of undeclared identifier 'integer'; did you mean
+'Integer'?
+ integer *i = 0;
+ ^~~~~~~
+ Integer
+t.c:1:13: note: 'Integer' declared here
+typedef int Integer;
+ ^
+
+ - Expanded typo correction to (among other improvements) look across
+ namespaces and suggest namespace qualifiers in addition to misspellings of the
+ identifier itself.
+ - More rich macro expansion backtraces and some (limited) fix-it hints when
+ diagnostics stem from macro arguments.
+
+
The Clang GCC-compatible command-line driver improved dramatically
A great deal of work went into the GCC-compatible driver for the 3.0 release
making it support more operating systems, emulate GCC behavior more accurately,