- Aug 29, 2011
-
-
Caitlin Sadowski authored
This patch is by DeLesley Hutchins. llvm-svn: 138738
-
Jeffrey Yasskin authored
qualification of a type doesn't affect whether a conversion is a narrowing conversion. This doesn't work in template cases because SubstTemplateTypeParmType gets in the way. llvm-svn: 138735
-
Nico Weber authored
This matches gcc's logic. Second half of PR10661. llvm-svn: 138730
-
- Aug 28, 2011
-
-
Jordy Rose authored
[analyzer] Introduce a new callback for checkers, printState, to be used for debug-printing the contents of a ProgramState. Unlike the other callbacks, this one is a simple virtual method, since it is only to be used for debugging. This new callback replaces the old ProgramState::Printer interface, and allows us to move the printing of refcount bindings from CFRefCount to RetainReleaseChecker. llvm-svn: 138728
-
Jordy Rose authored
[analyzer] Remove the ProgramState argument from ExprEngine::evalBind; we were ignoring it anyway. No functionality change. llvm-svn: 138720
-
Jordy Rose authored
llvm-svn: 138719
-
Jordy Rose authored
This is a common path for function and C++ method calls, Objective-C messages and property accesses, and C++ construct-exprs. As support, add message receiver accessors to ObjCMessage and CallOrObjCMessage. llvm-svn: 138718
-
Jordy Rose authored
[analyzer] Change the check::RegionChanges callback to include the regions explicitly requested for invalidation. Also, allow CallOrObjCMessage to wrap a CXXConstructExpr as well. Finally, this allows us to remove the clunky whitelisting system from CFRefCount/RetainReleaseChecker. Slight regression due to CXXNewExprs not yet being handled in post-statement callbacks (PR forthcoming). llvm-svn: 138716
-
John McCall authored
to varargs functions in unevaluated contexts. AFAICT, there is no standards justification for this, but it matches what other compilers do and therefore preserves compatibility with certain template metaprogramming idioms. Should fix self-host. llvm-svn: 138715
-
- Aug 27, 2011
-
-
Fariborz Jahanian authored
to class implementation where it is supposed to be implemented. // rdar://10009982. llvm-svn: 138714
-
Ted Kremenek authored
[analyzer] Rename current PathDiagnosticClient::HandlePathDiagnostic() to HandlePathDiagnosticImpl(), and slot in new HandlePathDiagnostic() for potentially handling concurrent access to PathDiagnosticClients (in the future). llvm-svn: 138713
-
Ted Kremenek authored
[analyzer] Pull body of loop in AnalysisConsumer::HandleDeclContext() into its own method. No real functionality change. llvm-svn: 138712
-
Fariborz Jahanian authored
, such as list of forward @class decls, in a DeclGroup node. Deal with its consequence throught clang. This is in preparation for more Sema work ahead. // rdar://8843851. Feel free to reverse if it breaks something important and I am unavailable. llvm-svn: 138709
-
Benjamin Kramer authored
llvm-svn: 138707
-
Douglas Gregor authored
__import__ within the preprocessor, since the prior one foolishly assumed that Preprocessor::Lex() was re-entrant. We now handle __import__ at the top level (only), after macro expansion. This should fix the buildbot failures. llvm-svn: 138704
-
John McCall authored
of default argument promotion and needs to happen unconditionally. This is particularly semantically important in C++0x. llvm-svn: 138691
-
Benjamin Kramer authored
llvm-svn: 138689
-
Douglas Gregor authored
pointer variable. Patch by David Blaikie! llvm-svn: 138687
-
Douglas Gregor authored
llvm-svn: 138684
-
Douglas Gregor authored
llvm-svn: 138681
-
Douglas Gregor authored
Try to unbreak the build on systems where uint64_t isn't something that StringRef::getAsInteger can handle as its second argument llvm-svn: 138680
-
Douglas Gregor authored
loads the named module. The syntax itself is intentionally hideous and will be replaced at some later point with something more palatable. For now, we're focusing on the semantics: - Module imports are handled first by the preprocessor (to get macro definitions) and then the same tokens are also handled by the parser (to get declarations). If both happen (as in normal compilation), the second one is redundant, because we currently have no way to hide macros or declarations when loading a module. Chris gets credit for this mad-but-workable scheme. - The Preprocessor now holds on to a reference to a module loader, which is responsible for loading named modules. CompilerInstance is the only important module loader: it now knows how to create and wire up an AST reader on demand to actually perform the module load. - We search for modules in the include path, using the module name with the suffix ".pcm" (precompiled module) for the file name. This is a temporary hack; we hope to improve the situation in the future. llvm-svn: 138679
-
Argyrios Kyrtzidis authored
llvm-svn: 138674
-
Argyrios Kyrtzidis authored
of the migrated files. rdar://10022801 llvm-svn: 138671
-
Chad Rosier authored
llvm-svn: 138670
-
Douglas Gregor authored
are lexically within a particular DeclContext. Test forthcoming. llvm-svn: 138668
-
- Aug 26, 2011
-
-
Chad Rosier authored
for catching this. llvm-svn: 138666
-
Chad Rosier authored
cases we want the prefix to be the original file name less the suffix. For an input such as test.c to named temporary would be something like test-3O4Clq.o Part of <rdar://problem/8314451> llvm-svn: 138662
-
Douglas Gregor authored
after having already deserialized the fields, clear out the fields first. This makes sure that we keep all of the declarations in the lexical context (including those implicitly added by later type-checking) within the same list. A test case for this behavior is coming as part of another commit; testing for this problem in isolation is a nightmare. llvm-svn: 138661
-
Fariborz Jahanian authored
finding life-time conflict with its declared ivar. // rdar://10007230 llvm-svn: 138659
-
John McCall authored
emit all gl-value arguments as reference bindings. llvm-svn: 138655
-
Jordy Rose authored
llvm-svn: 138649
-
Eli Friedman authored
llvm-svn: 138648
-
Eli Friedman authored
Make sure we don't crash printing builtin candidates for overloads of deleted operators. Fixes PR10757. llvm-svn: 138645
-
John McCall authored
llvm-svn: 138639
-
John McCall authored
the crazy comma expression so that we get an r-value in the varargs position. llvm-svn: 138638
-
Chad Rosier authored
<rdar://problem/10027287> llvm-svn: 138637
-
Axel Naumann authored
llvm-svn: 138631
-
John McCall authored
better. llvm-svn: 138628
-
John McCall authored
really shouldn't be optional. Fix the remaining place where a temporary was being passed as potentially-aliased memory. Fixes PR10756. llvm-svn: 138627
-