Go to file
Dmitri Gribenko b261088a61 Attaching comments to redeclarations: fix wrong assumptions
The reason for the recent fallout for "attaching comments to any redeclaration"
change are two false assumptions:
(1) a RawComment is attached to a single decl (not true for 'typedef struct X *Y'
    where we want the comment to be attached to both X and Y);
(2) the whole redeclaration chain has only a single comment (obviously false, the
    user can put a separate comment for each redeclaration).

To fix (1) I revert the part of the recent change where a 'Decl*' member was
introduced to RawComment.  Now ASTContext has a separate DenseMap for mapping
'Decl*' to 'FullComment*'.

To fix (2) I just removed the test with this assumption.  We might not parse
every comment in redecl chain if we already parsed at least one.

llvm-svn: 161878
2012-08-14 17:17:18 +00:00
clang Attaching comments to redeclarations: fix wrong assumptions 2012-08-14 17:17:18 +00:00
clang-tools-extra Use parallel dirs here, there shouldn't be cross-tool dependencies 2012-08-09 20:47:32 +00:00
compiler-rt [asan] better diagnostics for mmap failure 2012-08-14 15:18:40 +00:00
debuginfo-tests Fix this for gdb 7.4. 2012-07-23 19:41:58 +00:00
libclc Do not use linkonce_odr linkage in .ll files. This prevented them 2012-08-05 22:25:48 +00:00
libcxx Remove obsolete do-installhdrs target (again). 2012-08-13 16:32:15 +00:00
libcxxabi Change size of reference count field in __libcpp_nmstr from 32 bits to 64 bits for 64 bit targets. This is controls the data layout of all exceptions defined in <stdexcept>. This aligns the ABI with that of gcc-4.2. 2012-08-08 16:15:16 +00:00
lld Hook up lld-test to llvm check-all. Patch by Andy Gibbs! 2012-07-31 18:44:52 +00:00
lldb Simplify the "Watchpoint ... hit" printout, make it more terse. 2012-08-13 23:27:50 +00:00
llvm [asan] insert crash basic blocks inline as opposed to inserting them at the end of the function. This doesn't seem to fix or break anything, but is considered to be more friendly to downstream passes (test change) 2012-08-14 14:05:50 +00:00
polly Add preliminary implementation for GPGPU code generation. 2012-08-03 12:50:07 +00:00