- Apr 30, 2010
-
-
John McCall authored
if *none* of the successors of the call expression is the exit block. This matters when a call of bool type is the condition of (say) a while loop in a function with no statements after the loop. This *can* happen in C, but it's much more common in C++ because of overloaded operators. Suppresses some substantial number of spurious -Wmissing-noreturn warnings. llvm-svn: 102696
-
Douglas Gregor authored
llvm-svn: 102695
-
Douglas Gregor authored
specializations, which keeps track of the order in which they were originally declared. We use this number so that we can always walk the list of partial specializations in a predictable order during matching or template instantiation. This also fixes a failure in Boost.Proto, where SourceManager::isBeforeInTranslationUnit was behaving poorly in inconsistent ways. llvm-svn: 102693
-
John McCall authored
a class with virtual bases. Just a patch until Sema starts (correctly) doing most of this analysis. Fixes PR 6622. llvm-svn: 102692
-
Douglas Gregor authored
InjectedClassNameType's Decl to point at the definition. It's a little messy, but we do the same thing with classes and their record types, since much of Clang expects that the TagDecl* one gets out of a type is the definition. Fixes several Boost.Proto failures. llvm-svn: 102691
-
Zhongxing Xu authored
llvm-svn: 102690
-
Zhongxing Xu authored
translation unit is parsed. This enables us to inline some calls when still analyzing one function at a time. Actions are classified into Function, CXXMethod, ObjCMethod, ObjCImplementation. This does not hurt performance much. The analysis time for sqlite3.c: before: real 17m52.440s user 17m49.460s sys 0m2.010s after: real 18m0.500s user 17m56.900s sys 0m2.330s DisplayProgress option is broken now. -inine-call action is removed. It will be reenabled in another form, perhaps as an indenpendant option. llvm-svn: 102689
-
John McCall authored
Also resolve a long-working FIXME in the test case I modified. llvm-svn: 102688
-
Douglas Gregor authored
llvm-svn: 102687
-
Douglas Gregor authored
llvm-svn: 102686
-
John McCall authored
when used by the exceptions routines. Fixes PR 6974. llvm-svn: 102684
-
Nate Begeman authored
llvm-svn: 102681
-
John McCall authored
might not have been an insertion block set at start. Fixes PR6975. llvm-svn: 102677
-
Anders Carlsson authored
llvm-svn: 102676
-
Anders Carlsson authored
llvm-svn: 102674
-
John McCall authored
entering the current instantiation. Set up a little to preserve type location information for typename types while we're in there. Fixes a Boost failure. llvm-svn: 102673
-
Nate Begeman authored
llvm-svn: 102669
-
Ted Kremenek authored
are several known issues to address for it should be turned on by default. llvm-svn: 102664
-
- Apr 29, 2010
-
-
Douglas Gregor authored
address of an overloaded function (or function template), perform that resolution prior to determining the implicit conversion sequence. This resolution is not part of the implicit conversion sequence itself. Previously, we would always consider this resolution to be a function pointer decay, which was a lie: there might be an explicit & in the expression, in which case decay should not occur. This caused the CodeGen assertion in PR6973 (where we created a pointer to a pointer to a function when we should have had a pointer to a function), but it's likely that there are corner cases of overload resolution where this would have failed. Cleaned up the code involved in determining the type that will produced afer resolving the overloaded function reference, and added an assertion to make sure the result is correct. Fixes PR6973. llvm-svn: 102650
-
Fariborz Jahanian authored
categories. Issue usual warnings instead of confusing error message. Radar 7920807 llvm-svn: 102645
-
Devang Patel authored
llvm::GLobalVariable name may not match user visibile name for function static variables. llvm-svn: 102644
-
Ted Kremenek authored
Add USR support for 'static' functions and local variables, which can be handy for resolving named variables within a translation unit. llvm-svn: 102641
-
Ted Kremenek authored
they have no linkage and by definition are anonymous. llvm-svn: 102640
-
Ted Kremenek authored
llvm-svn: 102639
-
Nate Begeman authored
llvm-svn: 102638
-
Ted Kremenek authored
Do some minor refactoring along the way. llvm-svn: 102635
-
Ted Kremenek authored
for similar methods. No functionality change. llvm-svn: 102634
-
Daniel Dunbar authored
IRgen/NeXT: Put the synthesized _objc_super, _message_ref_t decls in a valid DeclContext, to satisfy the invariants that should hold on a RecordDecl. llvm-svn: 102624
-
Daniel Dunbar authored
llvm-svn: 102623
-
Daniel Dunbar authored
instead of NDEBUG. llvm-svn: 102622
-
Ted Kremenek authored
llvm-svn: 102614
-
Douglas Gregor authored
specializations, substitute the deduced template arguments and check the resulting substitution before concluding that template argument deduction succeeds. This marvelous little fix makes a bunch of Boost.Spirit tests start working. llvm-svn: 102601
-
Douglas Gregor authored
specializations, separate out the deduction part from the checking and substitution of the deduced arguments. llvm-svn: 102600
-
Mon P Wang authored
NAN != NAN ? 1 : 0 should return 1. Also fix the case for complex. llvm-svn: 102598
-
Douglas Gregor authored
bindings when the template argument is still an expression; it happens while checking the template arguments of a class template partial specializations. Fixes PR6964. llvm-svn: 102595
-
Ted Kremenek authored
llvm-svn: 102588
-
Ted Kremenek authored
llvm-svn: 102587
-
John McCall authored
llvm-svn: 102580
-
John McCall authored
template decl itself, not its context. Testcase to follow; fixes selfhost. llvm-svn: 102578
-
Ted Kremenek authored
llvm-svn: 102576
-