| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
different code path that I forgot previously.
Implement the rvalue reference overload dance for returning local objects. Returning a local object first tries to find a move constructor now.
The error message when no move constructor is defined (or is not applicable) and the copy constructor is deleted is quite ugly, though.
llvm-svn: 68902
|
| |
|
|
|
|
| |
Class and unqualified id's are.
llvm-svn: 68899
|
| |
|
|
|
|
|
| |
list of another protocol definition. This warning is very noisy and GCC doesn't
produce it so existing code doesn't expect it.
llvm-svn: 68894
|
| |
|
|
|
|
| |
crashes codegen.
llvm-svn: 68891
|
| |
|
|
|
|
| |
macro definitions.
llvm-svn: 68884
|
| |
|
|
| |
llvm-svn: 68883
|
| |
|
|
|
|
|
| |
macro deserialization. We now correctly install II's in tokens, handle
function-like macros, etc.
llvm-svn: 68882
|
| |
|
|
|
|
|
|
|
|
|
| |
@property int x;
associate the location of X with the property decl, not the location
of the @. Also, pass this info along to the synthesized ParmVarDecls
so that redefinition and other diagnostics can use it. This eliminates
a fixme.
llvm-svn: 68880
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
info, now
that it is plumbed through Sema. On a file from growl, we used to emit:
t.mi:107059:1: warning: conflicting types for 'removePluginHandler:forPluginTypes:'
- (void) removePluginHandler:(id <GrowlPluginHandler>)handler forPluginTypes:(NSSet *)extensions {
^
t.mi:105280:1: note: previous definition is here
- (void) removePluginHandler:(id <NSObject>)handler forPluginTypes:(NSSet *)types;
^
now we produce:
t.mi:107059:55: warning: conflicting parameter types in implementation of 'removePluginHandler:forPluginTypes:': 'id<NSObject>' vs 'id<GrowlPluginHandler>'
- (void) removePluginHandler:(id <GrowlPluginHandler>)handler forPluginTypes:(NSSet *)extensions {
^
t.mi:105280:45: note: previous definition is here
- (void) removePluginHandler:(id <NSObject>)handler forPluginTypes:(NSSet *)types;
^
We still don't have proper loc info for properties, hence the FIXME.
rdar://6782494
llvm-svn: 68879
|
| |
|
|
| |
llvm-svn: 68877
|
| |
|
|
|
|
| |
to their arguments.
llvm-svn: 68876
|
| |
|
|
|
|
|
| |
a block without a prototype should still coerce a return in it to
use the declared return type.
llvm-svn: 68875
|
| |
|
|
| |
llvm-svn: 68873
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) improve localizability by not passing english strings in.
2) improve location for arguments.
3) print the objc type being passed.
Before:
method-bad-param.m:15:1: error: Objective-C type cannot be passed by value
-(void) my_method:(foo) my_param
^
after:
method-bad-param.m:15:25: error: Objective-C interface type 'foo' cannot be passed by value
-(void) my_method:(foo) my_param
^
llvm-svn: 68872
|
| |
|
|
|
|
|
| |
information in a little struct instead of individually. While we're
at it, add per-argument loc info and attribute info.
llvm-svn: 68871
|
| |
|
|
| |
llvm-svn: 68870
|
| |
|
|
|
|
|
|
|
|
|
| |
down to the ActionBase class. This eliminates dependencies of (e.g.)
DeclSpec.h on Action.h, meaning that action.h can now include these
headers and use their types directly in the actions interfaces.
This is a refactoring to support a future change, no functionality
change.
llvm-svn: 68869
|
| |
|
|
|
|
| |
thanks to Tobias Stadler for pointing this out.
llvm-svn: 68868
|
| |
|
|
|
|
|
| |
since it only parses one identifier out of the selector, not the
whole thing.
llvm-svn: 68867
|
| |
|
|
|
|
| |
indent code properly
llvm-svn: 68866
|
| |
|
|
| |
llvm-svn: 68865
|
| |
|
|
| |
llvm-svn: 68853
|
| |
|
|
| |
llvm-svn: 68852
|
| |
|
|
| |
llvm-svn: 68849
|
| |
|
|
|
|
|
| |
so that we only need to perform the lookup and identifier resolution
once per identifier in the PCH file.
llvm-svn: 68846
|
| |
|
|
|
|
|
|
|
| |
ProgramPoints all the way through to GRCoreEngine.
NSString.m now fails with RegionStoreManager because of the void** cast.
Disabling use of region store for that test for now.
llvm-svn: 68845
|
| |
|
|
|
|
| |
the attribute set on them.
llvm-svn: 68844
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
buffer generated for the current translation unit. If they are
different, complain and then ignore the PCH file. This effectively
checks for all compilation options that somehow would affect
preprocessor state (-D, -U, -include, the dreaded -imacros, etc.).
When we do accept the PCH file, throw away the contents of the
predefines buffer rather than parsing them, since all of the results
of that parsing are already stored in the PCH file. This eliminates
the ugliness with the redefinition of __builtin_va_list, among other
things.
llvm-svn: 68838
|
| |
|
|
| |
llvm-svn: 68837
|
| |
|
|
|
|
| |
CleanupEntries vector needed to be reallocated.
llvm-svn: 68835
|
| |
|
|
| |
llvm-svn: 68834
|
| |
|
|
| |
llvm-svn: 68833
|
| |
|
|
|
|
|
| |
PCH. This works now, except for limitations not being able to do things
with identifiers. The basic example in the testcase works though.
llvm-svn: 68832
|
| |
|
|
|
|
|
|
|
|
| |
Preprocessor.cpp
into clang-cc.cpp. This makes it so clang-cc constructs the *entire* predefines
buffer, not just half of it. A bonus of this is that we get to kill a copy
of DefineBuiltinMacro.
llvm-svn: 68830
|
| |
|
|
|
|
|
| |
fixme's, e.g. for tokens with identifiers) but does not actually install
them. Some details with the predefines buffer needs to be sorted out first.
llvm-svn: 68828
|
| |
|
|
| |
llvm-svn: 68825
|
| |
|
|
|
|
| |
using the PCH file
llvm-svn: 68824
|
| |
|
|
| |
llvm-svn: 68822
|
| |
|
|
|
|
|
|
|
| |
file. When de-serializing LangOptions, we check that the
currently-provided language options are consistent with the options
used to compile the PCH file. If they are not, we emit a diagnostic
and ignore the PCH file.
llvm-svn: 68820
|
| |
|
|
|
|
|
|
| |
their emission was deferred.
- <rdar://problem/6775234> variables with internal linkage should not
be exposed with -fvisibility=hidden.
llvm-svn: 68818
|
| |
|
|
| |
llvm-svn: 68816
|
| |
|
|
|
|
|
|
|
|
| |
- Patch by Shantonu Sen (with a minor tweak to split out
getDarwin{OSX,IPhoneOS}Defines)!
- <rdar://problem/6776277> Need clang-cc/ccc-analyzer support for
-miphoneos-version-min
llvm-svn: 68815
|
| |
|
|
|
|
| |
blocks, so that the outer blocks use it as well. Radar 6762279
llvm-svn: 68811
|
| |
|
|
|
|
| |
in @protocol expression.
llvm-svn: 68806
|
| |
|
|
| |
llvm-svn: 68805
|
| |
|
|
| |
llvm-svn: 68804
|
| |
|
|
| |
llvm-svn: 68803
|
| |
|
|
| |
llvm-svn: 68800
|
| |
|
|
| |
llvm-svn: 68798
|
| |
|
|
|
|
|
| |
Note that we don't do anything useful with identifier infos yet
and don't emit the tokens that the macros are defined to.
llvm-svn: 68797
|