- Mar 18, 2011
-
-
Ted Kremenek authored
Use CrashRecoveryContextCleanup objects to recover an ASTUnit if we crash in ASTUnit::LoadFromCommandLine() and ASTUnit::LoadFromCompilerInvocation(). llvm-svn: 127851
-
Ted Kremenek authored
Use CrashRecoveryContextCleanup objects to release resources associated with Sema during a crash while parsing. llvm-svn: 127850
-
Ken Dyck authored
llvm-svn: 127848
-
Ken Dyck authored
CharUnits. No change in functionality intended. llvm-svn: 127846
-
Ken Dyck authored
functionality intended. llvm-svn: 127844
-
Daniel Dunbar authored
disable Obj-C exceptions. llvm-svn: 127836
-
- Mar 17, 2011
-
-
Daniel Dunbar authored
llvm-svn: 127820
-
Daniel Dunbar authored
llvm-svn: 127819
-
Daniel Dunbar authored
llvm-svn: 127815
-
Richard Smith authored
Fix PR9488: 'auto' type substitution can fail (for instance, if it creates a reference-to-void type). Don't crash if it does. Also fix an issue where type source information for the resulting type was being lost. llvm-svn: 127811
-
David Chisnall authored
Remove code that was intentionally generating bad code on the GNU runtime for no reason (failing to emit .cxx_constructor / .cxx_destructor methods). llvm-svn: 127806
-
Ted Kremenek authored
Don't construct two CFGs just to run -Wuninitialized. While this causes new warnings to be flagged under -Wconditional-uninitialized, this is something we can improve over time. llvm-svn: 127802
-
Ted Kremenek authored
llvm-svn: 127798
-
Ted Kremenek authored
Teach VariadicMethodTypeChecker that CF references are valid arguments to variadic Objective-C methods. llvm-svn: 127797
-
Ted Kremenek authored
Tweak RegionStore's handling of lazy compound values to use the 'Default' versus 'Direct' binding key, thus allowing specific elements of an array/struct to be overwritten without invalidating the entire binding. Fixes PR 9455. llvm-svn: 127796
-
Ted Kremenek authored
llvm-svn: 127794
-
Ken Dyck authored
change in functionality intended. llvm-svn: 127787
-
Matt Beaumont-Gay authored
llvm-svn: 127783
-
Daniel Dunbar authored
not being consistent at all with other parts of the GCC implementation. llvm-svn: 127777
-
- Mar 16, 2011
-
-
Joerg Sonnenberger authored
llvm-svn: 127769
-
Eli Friedman authored
llvm-svn: 127768
-
Abramo Bagnara authored
llvm-svn: 127755
-
Douglas Gregor authored
dependent scope and produce an error (rather than crashing). Fixes PR8979. llvm-svn: 127749
-
Argyrios Kyrtzidis authored
Having FileManager::getFile always open the file, brought much consternation and leaking of file descriptors. Add 'openFile' bool to FileManager::getFile to specify whether we want to have the file opened or not, have it false by default, and enable it only in HeaderSearch.cpp where the open+fstat optimization matters. Fixes rdar://9139899. llvm-svn: 127748
-
Douglas Gregor authored
overload, so that we actually do the resolution for full expressions and emit more consistent, useful diagnostics. Also fixes an IRGen crasher, where Sema wouldn't diagnose a resolvable bound member function template-id used in a full-expression (<rdar://problem/9108698>). llvm-svn: 127747
-
Sandeep Patel authored
llvm-svn: 127746
-
Peter Collingbourne authored
llvm-svn: 127744
-
Chandler Carruth authored
clients to observe the exact path through which an #included file was located. This is very useful when trying to record and replay inclusion operations without it beind influenced by the aggressive caching done inside the FileManager to avoid redundant system calls and filesystem operations. The work to compute and return this is only done in the presence of callbacks, so it should have no effect on normal compilation. Patch by Manuel Klimek. llvm-svn: 127742
-
Douglas Gregor authored
operands to a binary expression; it doesn't make sense in all contexts. The right answer would be to see if the user forgot at (). Fixes <rdar://problem/9136502>. llvm-svn: 127740
-
Douglas Gregor authored
pointer-to-function type. Fixes <rdar://problem/9065289>. llvm-svn: 127739
-
Douglas Gregor authored
ActOnFinishFunctionBody/ActOnBlockStmtExpr. This way, we ensure that we diagnose undefined labels before the jump-scope checker gets run, since the jump-scope checker requires (as its invariant) that all of the GotoStmts be wired up correctly. Fixes PR9495. llvm-svn: 127738
-
Douglas Gregor authored
forward-looking "goto" statement, make sure to insert it *after* the last declaration in the identifier resolver's declaration chain that is either outside of the function/block/method's scope or that is declared in that function/block/method's specific scope. Previously, we could end up inserting the label ahead of declarations in inner scopes, confusing C++ name lookup. Fixes PR9491/<rdar://problem/9140426> and <rdar://problem/9135994>. Note that the crash-on-invalid PR9495 is *not* fixed. That's a separate issue. llvm-svn: 127737
-
David Chisnall authored
llvm-svn: 127736
-
Abramo Bagnara authored
llvm-svn: 127735
-
Ted Kremenek authored
Teach CFGBuilder that the 'default' branch of a switch statement is dead if all enum values in a switch conditioned are handled. llvm-svn: 127727
-
John McCall authored
in non-GC mode. llvm-svn: 127725
-
Ted Kremenek authored
VariadicMethodTypeChecker: don't warn for null pointer constants passed to variadic Objective-C methods. llvm-svn: 127719
-
- Mar 15, 2011
-
-
Ted Kremenek authored
Remove warning for null characters in CFString literals. Clang handles them just fine, and GCC 4.2 doesn't warn here either. We added this warning back in 2007 when we were comparing against GCC 4.0. llvm-svn: 127704
-
Ted Kremenek authored
llvm-svn: 127703
-
John McCall authored
make sure that upcasts of member pointer types are covered as constants. Fixed rdar://problem/9130221 llvm-svn: 127702
-