- Apr 11, 2012
-
-
Richard Smith authored
llvm-svn: 154476
-
Argyrios Kyrtzidis authored
emits but not clang. llvm-svn: 154475
-
Argyrios Kyrtzidis authored
output the errors that occurred even if we did not get an AST (e.g. because the PCH failed to load). Also honor displayDiagnostics in clang_indexSourceFile(). rdar://11203489 llvm-svn: 154472
-
Anna Zaks authored
(Applied changes to CStringAPI, Malloc, and Taint.) This might almost never happen, but we should not crash even if it does. This fixes a crash on the internal analyzer buildbot, where postgresql's configure was redefining memmove (radar://11219852). llvm-svn: 154451
-
Richard Smith authored
of an uninitialized Stmt* in serialization of __atomic_init and add a test of atomics serialization. llvm-svn: 154448
-
Kaelyn Uhrain authored
introduced by the test harness' expansion of %t. llvm-svn: 154443
-
Fariborz Jahanian authored
subscripting. // rdar://11203853 llvm-svn: 154441
-
- Apr 10, 2012
-
-
Anna Zaks authored
Generate a sink when the dynamic_cast from a reference fails to represent a thrown exception. llvm-svn: 154438
-
Argyrios Kyrtzidis authored
for methods in categories of super classes. rdar://11220358 llvm-svn: 154436
-
Anna Zaks authored
Simulate the C++ dynamic_cast in the analyzer. llvm-svn: 154434
-
Anna Zaks authored
llvm-svn: 154433
-
Douglas Gregor authored
incomplete type, keep track of the actual type that was incomplete. Otherwise, we might fail to produce a diagnostic. Fixes PR12498. llvm-svn: 154432
-
Douglas Gregor authored
information and more closely match GCC's, from Nikola Smiljanic! llvm-svn: 154430
-
Douglas Gregor authored
return types, from Michel Morin! llvm-svn: 154428
-
Douglas Gregor authored
non-type template parameter of pointer type is not a constant expression. llvm-svn: 154424
-
Eric Christopher authored
PR9796 llvm-svn: 154422
-
Douglas Gregor authored
providing code completions for Objective-C method declarations. Fixes <rdar://problem/11164498>. llvm-svn: 154421
-
Eric Christopher authored
and emit a relatively empty block for a plain break statement. This enables us to track where we went through a switch. PR9796 & rdar://11215207 llvm-svn: 154420
-
Douglas Gregor authored
'public', 'private', or 'protected', unless code completion patterns are enabled. Fixes <rdar://problem/11189132>. llvm-svn: 154413
-
Fariborz Jahanian authored
seem to get called any more. Also add an assert in isModifiableLvalue. llvm-svn: 154410
-
Argyrios Kyrtzidis authored
llvm-svn: 154409
-
Argyrios Kyrtzidis authored
code-completion related strings specific to a translation unit (ASTContext and related data) CodeCompletionAllocator does such limited caching, by caching the name assigned to a DeclContext*, but that is not the appropriate place since that object has a lifetime that can extend beyond that of an ASTContext. Introduce CodeCompletionTUInfo which will be always tied to a translation unit to do this kind of caching and move the caching of CodeCompletionAllocator into this object, and propagate it to all the places where it will be needed. The plan is to extend the caching where appropriate, using CodeCompletionTUInfo, to avoid re-calculating code-completion strings. Part of rdar://10796159. llvm-svn: 154408
-
Douglas Gregor authored
Richard's feedback, to properly catch non-constant expressions and type mismatches. Finishes <rdar://problem/11193097>. llvm-svn: 154407
-
Fariborz Jahanian authored
expression enterring IsConstProperty function. llvm-svn: 154406
-
Chandler Carruth authored
llvm-svn: 154399
-
Manuel Klimek authored
llvm-svn: 154393
-
David Chisnall authored
Patch by Dmitri Shubin! llvm-svn: 154392
-
Evgeniy Stepanov authored
llvm-svn: 154389
-
Duncan Sands authored
rational number, eg as 2.5 rather than 5, 2. OK'd by Peter Collingbourne. llvm-svn: 154388
-
Eric Christopher authored
llvm-svn: 154384
-
Eric Christopher authored
llvm-svn: 154383
-
Richard Smith authored
* Alternative tokens (such as 'compl') are treated as identifiers in attribute names. * An attribute-list can start with a comma. * An ellipsis may not be used with either of our currently-supported C++11 attributes. llvm-svn: 154381
-
Richard Smith authored
* In C++11, '[[' is ill-formed unless it starts an attribute-specifier. Reject array sizes and array indexes which begin with a lambda-expression. Recover by parsing the lambda as a lambda. * In Objective-C++11, either '[' could be the start of a message-send. Fully disambiguate this case: it turns out that the grammars of message-sends, lambdas and attributes do not actually overlap. Accept any occurrence of '[[' where either '[' starts a message send, but reject a lambda in an array index just like in C++11 mode. Implement a couple of changes to the attribute wording which occurred after our attributes implementation landed: * In a function-declaration, the attributes go after the exception specification, not after the right paren. * A reference type can have attributes applied. * An 'identifier' in an attribute can also be a keyword. Support for alternative tokens (iso646 keywords) in attributes to follow. And some bug fixes: * Parse attributes after declarator-ids, even if they are not simple identifiers. * Do not accept attributes after a parenthesized declarator. * Accept attributes after an array size in a new-type-id. * Partially disamiguate 'delete' followed by a lambda. More work is required here for the case where the lambda-introducer is '[]'. llvm-svn: 154369
-
Rafael Espindola authored
llvm-svn: 154363
-
Fariborz Jahanian authored
implicit casts which is needed to produce good c++ code. // rdar://11202764 llvm-svn: 154360
-
Rafael Espindola authored
requires the -plugin to come before any -plugin-opt options, we were passing them the other way around. With this one can run (for example): clang -o foo foo.c -O4 -Wl,-plugin-opt=generate-api-file llvm-svn: 154357
-
Fariborz Jahanian authored
to c-index-test. llvm-svn: 154347
-
- Apr 09, 2012
-
-
John McCall authored
base-class subojects. Incidentally, thinking about virtual bases makes it clear to me that we're not appropriately computing the access to the virtual base's member because we're not computing the best possible access to the virtual base at all; in fact, we're basically assuming it's public. I'll file a separate PR about that. llvm-svn: 154346
-
John McCall authored
to define a special member function as deleted so that it properly establishes an object context for the accesses to the base subobject members. llvm-svn: 154343
-
Daniel Dunbar authored
--- log message follows this test --- [tests] Fixup some tests to work in "CLANG_IS_PRODUCTION" mode. llvm-svn: 154342
-