- May 25, 2011
-
-
Alexis Hunt authored
type that turns one type into another. This is used as the basis to implement __underlying_type properly - with TypeSourceInfo and proper behavior in the face of templates. llvm-svn: 132017
-
- May 24, 2011
-
-
Nick Lewycky authored
libprofile_rt.a. On Darwin, don't try to link -lgcov. llvm-svn: 132006
-
Ted Kremenek authored
llvm-svn: 132001
-
Roman Divacky authored
Patch by Dimitry Andric! llvm-svn: 131990
-
Argyrios Kyrtzidis authored
Add new warning that warns when invoking 'delete' on a polymorphic, non-final, class without a virtual destructor. Patch by Matthieu Monrocq! llvm-svn: 131989
-
Douglas Gregor authored
that the unevaluated subexpressions of &&, ||, and ? : are not considered when determining whether the expression is a constant expression. Also, turn the "used in its own initializer" warning into a runtime-behavior warning, so that it doesn't fire when a variable is used as part of an unevaluated subexpression of its own initializer. Fixes PR9999. llvm-svn: 131968
-
Jim Grosbach authored
llvm-svn: 131967
-
Chandler Carruth authored
This patch also by Ismail Donmez. llvm-svn: 131958
-
Chandler Carruth authored
through sugared types when testing for TagTypes. This was the actual cause of the only false positive in Clang+LLVM. Next evaluation will be over a much larger selection of code including large amounts of open source code. llvm-svn: 131957
-
Nico Weber authored
Make it possible for external tools to distinguish between paths that come from -I and paths that come from -system. Patch from Paul Holden! llvm-svn: 131955
-
Francois Pichet authored
llvm-svn: 131950
-
Alexis Hunt authored
issues and also add a test. We should now handle defaulted members of templates properly. No comment as to whether or not this also holds for templated functions, but defaulting those is kind of insane. llvm-svn: 131938
-
David Chisnall authored
llvm-svn: 131935
-
Alexis Hunt authored
The general out-of-line case (including explicit instantiation mostly works except that the definition is being lost somewhere between the AST and CodeGen, so the definition is never emitted. llvm-svn: 131933
-
David Chisnall authored
llvm-svn: 131932
-
David Chisnall authored
Fix some problems where functions must be bitcast but we're expecting a llvm::Function of the right type. PR9994. llvm-svn: 131930
-
- May 23, 2011
-
-
Alexis Hunt authored
fixes PR9965, but we're not out of the water yet, as we do not successfully handle out-of-line definitions, due to my utter misunderstanding of how we manage templates. llvm-svn: 131920
-
Francois Pichet authored
Emulate a MSVC bug where if during an using declaration name lookup, the declaration found is unaccessible (private) and that declaration was bring into scope via another using declaration whose target declaration is accessible (public) then no error is generated. Example: class A { public: int f(); }; class B : public A { private: using A::f; }; class C : public B { private: using B::f; }; Here, B::f is private so this should fail in Standard C++, but because B::f refers to A::f which is public MSVC accepts it. This fixes 1 error when parsing MFC code with clang. llvm-svn: 131896
-
Chris Lattner authored
code generator will do it. With this patch, clang compiles the example in PR9794 to not have an alloca temporary. llvm-svn: 131881
-
Chris Lattner authored
generator will give it something sufficient. This is important because the mid-level optimizer doesn't know what alignment is required otherwise. llvm-svn: 131879
-
David Chisnall authored
llvm-svn: 131877
-
Chris Lattner authored
header. Getting it in the wrong order generated incorrect line markers in -E mode. In the testcase from PR9861 we used to generate: # 1 "test.c" 2 # 1 "./foobar.h" 1 # 0 "./foobar.h" # 0 "./foobar.h" 3 # 2 "test.c" 2 now we properly produce: # 1 "test.c" 2 # 1 "./foobar.h" 1 # 1 "./foobar.h" 3 # 2 "test.c" 2 This fixes PR9861. llvm-svn: 131871
-
Chris Lattner authored
llvm-svn: 131870
-
- May 22, 2011
-
-
Chris Lattner authored
llvm-svn: 131857
-
Chris Lattner authored
patch by Bryce Lelbach llvm-svn: 131840
-
Douglas Gregor authored
to determine outer template arguments lists for template parameters. This is actually the problem behind PR9643, which I have yet to figure out how to fix. llvm-svn: 131822
-
Chris Lattner authored
llvm-svn: 131815
-
Douglas Gregor authored
minor issues along the way: - Non-type template parameters of type 'std::nullptr_t' were not permitted. - We didn't properly introduce built-in operators for nullptr ==, !=, <, <=, >=, or > as candidate functions . To my knowledge, there's only one (minor but annoying) part of nullptr that hasn't been implemented: catching a thrown 'nullptr' as a pointer or pointer-to-member, per C++0x [except.handle]p4. llvm-svn: 131813
-
Douglas Gregor authored
function type. Educate template argument deduction thusly, fixing PR9974 / <rdar://problem/9479155>. llvm-svn: 131811
-
- May 21, 2011
-
-
Douglas Gregor authored
PR9973 / <rdar://problem/9479191>. llvm-svn: 131810
-
Chris Lattner authored
llvm-svn: 131808
-
Douglas Gregor authored
non-POD/non-trivial object throuugh a C-style varargs. The warning itself was default-mapped to error, but can be downgraded, but we were treating it in Sema like a hard error, silently dropping the call. Instead, treat this problem like a warning, and do what the warning says we do: abort at runtime. To do so, we fake up a __builtin_trap() expression that gets evaluated as part of the argument. llvm-svn: 131805
-
Eli Friedman authored
and stop abusing the multi-level dereference isa<> used to allow. llvm-svn: 131804
-
Douglas Gregor authored
instantiations and specializations. Fixes <rdar://problem/9126453> and PR8700. llvm-svn: 131802
-
Douglas Gregor authored
should use a constructor to default-initialize a variable. InitializationSequence knows the rules for default initialization, better. Fixes <rdar://problem/8501008>. llvm-svn: 131796
-
Douglas Gregor authored
prints the file, line, and column of a diagnostic. We currently support Clang's normal format, MSVC, and Vi formats. Note that we no longer change the diagnostic format based on -fms-extensions. Patch by Andrew Fish! llvm-svn: 131794
-
Douglas Gregor authored
llvm-svn: 131793
-
Douglas Gregor authored
llvm-svn: 131792
-
-
Ted Kremenek authored
Fix regression in static analyzer's handling of prefix '--' operator. It was being treated as postfix '--' in C mode. llvm-svn: 131770
-