- Nov 06, 2010
-
-
John McCall authored
data members by delaying the emission of the initializer until after linkage and visibility have been set on the global. Also, don't emit a guard unless the variable actually ends up with vague linkage, and don't use thread-safe statics in any case. llvm-svn: 118336
-
Craig Silverstein authored
The callback info for #if/#elif is not great -- ideally it would give us a list of tokens in the #if, or even better, a little parse tree. But that's a lot more work. Instead, clients can retokenize using Lexer::LexFromRawLexer(). Reviewed by nlewycky. llvm-svn: 118318
-
Argyrios Kyrtzidis authored
make sure to setup the instantiation stack. Fixes rdar://8620775 & http://llvm.org/PR8234 llvm-svn: 118314
-
Douglas Gregor authored
of its parent context, be sure to update the parent-context pointer after instantiation. Fixes two anonymous-union instantiation issues in <rdar://problem/8635664>. llvm-svn: 118313
-
- Nov 05, 2010
-
-
Douglas Gregor authored
of that field. Otherwise, we can end up building and later trying to instantiate a dependent member initializer that will fail at instantiation time. Unfortunately, I've only managed to trigger this bug with very large sources, so there's no test case :( llvm-svn: 118306
-
Argyrios Kyrtzidis authored
llvm-svn: 118305
-
Argyrios Kyrtzidis authored
Read/write from/to PCH the diagnostic mappings that the user set so that e.g. #pragma clang diagnostic can be used in a PCH. Fixes rdar://8435969. llvm-svn: 118303
-
Benjamin Kramer authored
llvm-svn: 118293
-
Fariborz Jahanian authored
qualified ObjC pointer types in its argument list. // rdar: //8608902 llvm-svn: 118286
-
Anders Carlsson authored
llvm-svn: 118276
-
Anders Carlsson authored
Implement [over.ics.rank]p4: A conversion that does not convert an std::nullptr_t to bool is better than one than does. llvm-svn: 118269
-
- Nov 04, 2010
-
-
John McCall authored
making something up. Fixes PR8129. llvm-svn: 118258
-
Argyrios Kyrtzidis authored
check that the TargetNestedNameDecl is the same first. llvm-svn: 118239
-
Anders Carlsson authored
llvm-svn: 118238
-
Anders Carlsson authored
llvm-svn: 118236
-
Argyrios Kyrtzidis authored
e.g. for: template <int i> class A { class B *g; }; 'class B' has the template as lexical context but semantically it is introduced in namespace scope. Fixes rdar://8611125 & http://llvm.org/PR8505 llvm-svn: 118235
-
Anders Carlsson authored
llvm-svn: 118234
-
Douglas Gregor authored
llvm-svn: 118212
-
Douglas Gregor authored
or dependent specializations, rip apart the dependent name/dependent specialization to recanonicalize its pieces, because nested-name-specifiers store "dependent-type::identifier" differently than types do. Fixes PR7419. llvm-svn: 118211
-
Fariborz Jahanian authored
is a objc qualified class type. // rdar: //8608902 llvm-svn: 118208
-
Fariborz Jahanian authored
block pointer type arguments. Partial fix for // rdar: //8608902 llvm-svn: 118205
-
- Nov 03, 2010
-
-
Argyrios Kyrtzidis authored
When -working-directory is passed in command line, file paths are resolved relative to the specified directory. This helps both when using libclang (where we can't require the user to actually change the working directory) and to help reproduce test cases when the reproduction work comes along. --FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains the working directory value if set). --FileSystemOptions are passed around to various interfaces that perform file operations. --Opening & reading the content of files should be done only through FileManager. This is useful in general since file operations will be abstracted in the future for the reproduction mechanism. FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same FileManager but with different FileSystemOptions. Addresses rdar://8583824. llvm-svn: 118203
-
Nick Lewycky authored
PR7702. llvm-svn: 118181
-
Douglas Gregor authored
the sets of available conversions for the first and second arguments separate. This is apparently the indent of C++ [over.built], and reduces the number of overload candidates generated, eliminating some ambiguities. Fixes PR8477. llvm-svn: 118178
-
David Chisnall authored
llvm-svn: 118172
-
Zhongxing Xu authored
llvm-svn: 118165
-
Marcin Swiderski authored
Added generating destructors for temporary objects. Two cases I know of, that are not handled properly: 1. For statement: const C& c = C(0) ?: C(1) destructors generated for condition will not differ from those generated for case without prolonged lifetime of temporary, 2. There will be no destructor for constant reference member bound to temporary at the exit from constructor. llvm-svn: 118158
-
Rafael Espindola authored
llvm-svn: 118150
-
Rafael Espindola authored
distros listed by running gcc main.o -o main g++ main.o -o main gcc main.o -o main -static g++ main.o -o main -static gcc f.o -o f.so -shared g++ f.o -o f.so -shared and comparing the ld line with the one created by clang. I also added -m32/m64 in distros that support it. While I tested many distros, there will always be more. If you are hit by this it should be somewhat easy to add your distro. If you are in a hurry, do revert this, but please inform how to detect you distro and the ld command lines produced by the above gcc invocations. Most distros have some patches on gcc :-( llvm-svn: 118149
-
Anders Carlsson authored
When setting a tied check if it's already tied. If it's tied to another constraint it's invalid. Fixes PR3905. llvm-svn: 118146
-
Anders Carlsson authored
llvm-svn: 118145
-
Alexis Hunt authored
parameter name. Fixes PR8012. llvm-svn: 118138
-
Douglas Gregor authored
ensuring that they cover all of their child nodes. There's still a clang_getCursor()-related issue with CXXFunctionalCastExprs with CXXConstructExprs as children (see FIXME in the test case); I'll look at that separately. llvm-svn: 118132
-
- Nov 02, 2010
-
-
Fariborz Jahanian authored
expression is a dependent expression. // rdar: // 8620524 and PR7851 llvm-svn: 118066
-
John McCall authored
visibility of their function. llvm-svn: 118065
-
Douglas Gregor authored
can be used to automatically synthesize an ivar. llvm-svn: 118052
-
Daniel Dunbar authored
some unexpected fallout. llvm-svn: 118037
-
Rafael Espindola authored
llvm-svn: 118035
-
John McCall authored
llvm-svn: 118034
-
Fariborz Jahanian authored
// rdar: //8620510 and PR7666 llvm-svn: 118019
-