diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-07 00:17:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-07 00:17:44 +0000 |
commit | 6da83624e44a4066c31524d60d2226de55c698a0 (patch) | |
tree | af398a1c3c421d7db12977da2470c7036f385180 /clang/test/FixIt/typo.c | |
parent | b907a467e2acee99ecc11cb91c32cf1a3c0ef68c (diff) | |
download | bcm5719-llvm-6da83624e44a4066c31524d60d2226de55c698a0.tar.gz bcm5719-llvm-6da83624e44a4066c31524d60d2226de55c698a0.zip |
Whenever we emit a typo-correction diagnostic, also emit a note
pointing to the declaration that we found that has that name (if it is
unique).
llvm-svn: 92877
Diffstat (limited to 'clang/test/FixIt/typo.c')
-rw-r--r-- | clang/test/FixIt/typo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/FixIt/typo.c b/clang/test/FixIt/typo.c index d36e769ed0a..72e3d658e7b 100644 --- a/clang/test/FixIt/typo.c +++ b/clang/test/FixIt/typo.c @@ -5,13 +5,14 @@ struct Point { }; struct Rectangle { - struct Point top_left, bottom_right; + struct Point top_left, // expected-note{{'top_left' declared here}} + bottom_right; }; enum Color { Red, Green, Blue }; struct Window { - struct Rectangle bounds; + struct Rectangle bounds; // expected-note{{'bounds' declared here}} enum Color color; }; |