- Mar 25, 2009
-
-
Mike Stump authored
llvm-svn: 67695
-
Douglas Gregor authored
llvm-svn: 67685
-
Daniel Dunbar authored
we aren't going to support. For example: clang -Xarch_i386 -S -Xarch_i386 -o -Xarch_i386 myi386asm.s ... llvm-svn: 67680
-
Anders Carlsson authored
class C { C() { } int a; }; C::C() : a(10) { } We also diagnose when initializers are used on declarations that aren't constructors: t.cpp:1:10: error: only constructors take base initializers void f() : a(10) { } ^ Doug and/or Sebastian: I'd appreciate a review, especially the nested-name-spec test results (from the looks of it we now match gcc in that test.) llvm-svn: 67672
-
Douglas Gregor authored
llvm-svn: 67664
-
- Mar 24, 2009
-
-
Sebastian Redl authored
llvm-svn: 67653
-
Daniel Dunbar authored
- -emit-llvm no longer changes what compilation steps are done. - -emit-llvm and -emit-llvm -S write output files with .o and .s suffixes, respectively. - <rdar://problem/6714125> clang-driver should support -O4 and -flto, like llvm-gcc llvm-svn: 67645
-
Douglas Gregor authored
incomplete types. RequireCompleteType is needed when the type may be completed by instantiating a template. llvm-svn: 67643
-
Daniel Dunbar authored
- Don't default to using clang for C++ (use -ccc-clang-cxx to override). - Default to only using clang on i386 and x86_64 (use -ccc-clang-archs "" to override). - <rdar://problem/6712350> [driver] clang should not be used on powerpc by default - <rdar://problem/6705767> driver should default to -ccc-no-clang-cxx I plan to add a warning that we are not using the clang compiler for the given compilation so that users do not think clang is being used in situations it isn't. This change is motivated by the desire to be able to drop clang into a build and have things "just work", even if it happens to get used to compile C++ code or code for an architecture we don't support yet. llvm-svn: 67640
-
Daniel Dunbar authored
- <rdar://problem/6715707> driver should translate -fverbose-asm into -asm-verbose llvm-svn: 67634
-
Daniel Dunbar authored
- <rdar://problem/6715818> clang doesn't honor gcc semantic that last -O optimization option wins. llvm-svn: 67628
-
Anders Carlsson authored
Fix the bug that Eli noticed where we wouldn't look at function decls outside the class declaration. llvm-svn: 67627
-
Chris Lattner authored
llvm-svn: 67625
-
Douglas Gregor authored
llvm-svn: 67623
-
Daniel Dunbar authored
- Substitutes both clang and clang-cc. - Incorporates patch from Jon Simons to diagnose if clang or clang-cc isn't found. - Uses full path when running scripts, for more precision in the output. llvm-svn: 67610
-
Daniel Dunbar authored
Again, I tried to update cmake but it is untested. llvm-svn: 67606
-
Daniel Dunbar authored
llvm-svn: 67603
-
Daniel Dunbar authored
Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
-
Daniel Dunbar authored
llvm-svn: 67601
-
Anders Carlsson authored
llvm-svn: 67598
-
Anders Carlsson authored
class C { void g(C c); virtual void f() = 0; }; In this case, C is not known to be abstract when doing semantic analysis on g. This is done by recursively traversing the abstract class and checking the types of member functions. llvm-svn: 67594
-
Eli Friedman authored
llvm-svn: 67593
-
Eli Friedman authored
llvm-svn: 67592
-
Douglas Gregor authored
llvm-svn: 67585
-
Douglas Gregor authored
eliminating the duplication is next on the list. llvm-svn: 67579
-
Douglas Gregor authored
a class template. At present, we can only instantiation normal methods, but not constructors, destructors, or conversion operators. As ever, this contains a bit of refactoring in Sema's type-checking. In particular: - Split ActOnFunctionDeclarator into ActOnFunctionDeclarator (handling the declarator itself) and CheckFunctionDeclaration (checking for the the function declaration), the latter of which is also used by template instantiation. - We were performing the adjustment of function parameter types in three places; collect those into a single new routine. - When the type of a parameter is adjusted, allocate an OriginalParmVarDecl to keep track of the type as it was written. - Eliminate a redundant check for out-of-line declarations of member functions; hide more C++-specific checks on function declarations behind if(getLangOptions().CPlusPlus). llvm-svn: 67575
-
- Mar 23, 2009
-
-
Ted Kremenek authored
A test case to test that -warn-dead-stores does not emit a warning for stores to variables marked with '#pragma unused'. llvm-svn: 67570
-
Ted Kremenek authored
llvm-svn: 67569
-
Fariborz Jahanian authored
llvm-svn: 67551
-
Anders Carlsson authored
More improvements to abstract type checking. Handle arrays correctly, and make sure to check parameter types before they decay. llvm-svn: 67550
-
Anders Carlsson authored
llvm-svn: 67542
-
Douglas Gregor authored
library function, accept this declaration and pretend that we do not know that this is a library function. autoconf depends on this (broken) behavior. llvm-svn: 67541
-
Chris Lattner authored
This matters in assembler mode, where this is silently allowed. This fixes rdar://6709206. llvm-svn: 67539
-
Ted Kremenek authored
<rdar://problem/6704930> involving SimpleConstraintManager not reasoning well about symbolic constraint values involving arithmetic operators. llvm-svn: 67534
-
Douglas Gregor authored
prototype. Thanks Eli! llvm-svn: 67533
-
Douglas Gregor authored
llvm-svn: 67530
-
Ted Kremenek authored
values passed-by-reference to unknown functions. llvm-svn: 67519
-
Eli Friedman authored
llvm-svn: 67503
-
Eli Friedman authored
llvm-svn: 67499
-
Eli Friedman authored
llvm-svn: 67496
-