- Nov 10, 2009
-
-
Ted Kremenek authored
Make -Wsemicolon-before-method-body opt-in (and part of -Wextra). Addresses <rdar://problem/7381735>. llvm-svn: 86731
-
Benjamin Kramer authored
llvm-svn: 86719
-
Douglas Gregor authored
handling template template parameters properly. This refactoring: - Parses template template arguments as id-expressions, representing the result of the parse as a template name (Action::TemplateTy) rather than as an expression (lame!). - Represents all parsed template arguments via a new parser-specific type, ParsedTemplateArgument, which stores the kind of template argument (type, non-type, template) along with all of the source information about the template argument. This replaces an ad hoc set of 3 vectors (one for a void*, which was either a type or an expression; one for a bit telling whether the first was a type or an expression; and one for a single source location pointing at the template argument). - Moves TemplateIdAnnotation into the new Parse/Template.h. It never belonged in the Basic library anyway. llvm-svn: 86708
-
Fariborz Jahanian authored
(Ted's feedback). llvm-svn: 86702
-
Fariborz Jahanian authored
global array of objects. llvm-svn: 86701
-
Mike Stump authored
llvm-svn: 86699
-
Daniel Dunbar authored
- This is conceptually better since the only thing we want this option to do is preserve the internal module as constructed by IRgen, before running any passes. - This also fixes bugs in -disable-llvm-optzns handling with regards to debug info. llvm-svn: 86691
-
John McCall authored
although in this case we probably just run a risk of duplicating work; I can't think of how this could cause a bug. llvm-svn: 86680
-
John McCall authored
using directives, and fix a bug thereby exposed: since we're playing tricks with pointers, we need to make certain we're always using the same pointers for things. Also tweak an existing error message. llvm-svn: 86679
-
Zhongxing Xu authored
llvm-svn: 86677
-
Zhongxing Xu authored
This is reasonable because people know what they are doing when they intentionally dereference the pointer. So now we only emit warning when a pointer variable is use literally. llvm-svn: 86673
-
Mike Stump authored
being generated. Add the most derived vtable pointer to the VTT. llvm-svn: 86671
-
John McCall authored
This is a pretty minimal test case; I'll make a better one later. llvm-svn: 86669
-
Anders Carlsson authored
When trying to assign a regular string literal to an Objective-C 'id' type or a pointer to an NSString, emit a code insertion hint that turns it into an Objective-C string. For example: @class NSString; @interface Test + (void)test:(NSString *)string; @end void g(NSString *a); void f() { NSString *a = "Foo"; g("Foo"); [Test test:"Foo"]; } will produce t.m:10:17: warning: incompatible pointer types initializing 'char [4]', expected 'NSString *' NSString *a = "Foo"; ^~~~~ @ t.m:11:5: warning: incompatible pointer types passing 'char [4]', expected 'NSString *' g("Foo"); ^~~~~ @ t.m:12:14: warning: incompatible pointer types sending 'char [4]', expected 'NSString *' [Test test:"Foo"]; ^~~~~ @ 3 diagnostics generated. llvm-svn: 86665
-
Zhongxing Xu authored
llvm-svn: 86663
-
Zhongxing Xu authored
llvm-svn: 86662
-
Anders Carlsson authored
llvm-svn: 86661
-
Zhongxing Xu authored
the argument is not an expression. llvm-svn: 86660
-
Anders Carlsson authored
If a function with a default argument is redefined and the new function also has a defualt argument then add a fixit hint that removes the default argument. Fixes PR5444. llvm-svn: 86659
-
Zhongxing Xu authored
region, so that arithmetic within a memory chunk is allowed. llvm-svn: 86652
-
Mike Stump authored
Start implementing VTTs. WIP. llvm-svn: 86650
-
Zhongxing Xu authored
getBaseRegion will be used in another method. llvm-svn: 86649
-
Mike Stump authored
llvm-svn: 86647
-
Mike Stump authored
llvm-svn: 86643
-
Jeffrey Yasskin authored
Patch by Victor Zverovich! llvm-svn: 86638
-
Daniel Dunbar authored
llvm-svn: 86632
-
Douglas Gregor authored
llvm-svn: 86629
-
Daniel Dunbar authored
ApplyHeaderSearchOptions now. llvm-svn: 86617
-
- Nov 09, 2009
-
-
Mike Stump authored
llvm-svn: 86607
-
Fariborz Jahanian authored
llvm-svn: 86599
-
Fariborz Jahanian authored
llvm-svn: 86598
-
Fariborz Jahanian authored
warning, to match gcc. It used to be warning, so better keep it a warning (it broke a certain project). llvm-svn: 86597
-
Douglas Gregor authored
ArrayType>()) does not instantiate. Update all callers that used this unsafe feature to use the appropriate ASTContext::getAs*ArrayType method. llvm-svn: 86596
-
Ted Kremenek authored
llvm-svn: 86595
-
Douglas Gregor authored
when looking for a name within a given DeclContext. Now enumerators will show up in code-completion results. llvm-svn: 86591
-
Fariborz Jahanian authored
its element type. Fixes pr5432. llvm-svn: 86587
-
Benjamin Kramer authored
llvm-svn: 86584
-
Douglas Gregor authored
overloaded operator(). llvm-svn: 86581
-
Eli Friedman authored
declaration invalid if the constructor can't be properly built. Addresses remaining review comments from Fariborz for r86500. llvm-svn: 86579
-
Douglas Gregor authored
templates. The instantiation of these default arguments must be (and now, is) delayed until the template argument is actually used, at which point we substitute all levels of template arguments concurrently. llvm-svn: 86578
-