Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor FoldingSet profiling code for LocationContexts, and add a new ↵ | Ted Kremenek | 2009-12-04 | 2 | -20/+65 |
| | | | | | | BlockInvocationContext to represent the invocation of a block. llvm-svn: 90506 | ||||
* | Fix for PR5679: make __builtin_prefetch a bit more flexible in what it accepts | Eli Friedman | 2009-12-04 | 4 | -11/+23 |
| | | | | | | | as a constant integer. Also, some minor cleanup and improvements to the diagnostics. llvm-svn: 90504 | ||||
* | constify MemRegion* returned by MemRegionManager::getXXXRegion() methods. | Ted Kremenek | 2009-12-04 | 4 | -64/+62 |
| | | | | llvm-svn: 90503 | ||||
* | When recovering from an invalid forward reference to an enum type in C++, | John McCall | 2009-12-04 | 2 | -4/+8 |
| | | | | | | create the enum type in the same scope as you would a record type. llvm-svn: 90500 | ||||
* | More template-logic for MemRegion construction out of MemRegion.h and into ↵ | Ted Kremenek | 2009-12-04 | 2 | -157/+161 |
| | | | | | | MemRegion.cpp. llvm-svn: 90499 | ||||
* | These are done. | Mike Stump | 2009-12-03 | 1 | -2/+0 |
| | | | | llvm-svn: 90494 | ||||
* | Improve catch parameter bindings for scalar non-pointers. WIP. | Mike Stump | 2009-12-03 | 1 | -4/+8 |
| | | | | llvm-svn: 90492 | ||||
* | Lift the ObjCPropertyCallback out of local scope to unbreak VS2005 builds. | John McCall | 2009-12-03 | 2 | -55/+60 |
| | | | | | | | Make it an inner class of Parser to assuage access control. No functionality change. llvm-svn: 90491 | ||||
* | Add recursion guards to ice-checking and evaluation for declrefs, so we | Eli Friedman | 2009-12-03 | 5 | -22/+88 |
| | | | | | | don't infinitely recurse for cases we can't evaluate. llvm-svn: 90480 | ||||
* | Try to make the output of PlistDiagnostics more deterministic by sorting ↵ | Ted Kremenek | 2009-12-03 | 1 | -0/+39 |
| | | | | | | PathDiagnostics before they are emitted. Fixes <rdar://problem/7439668>. llvm-svn: 90478 | ||||
* | Convert some methods in PathDiagnostic to return StringRefs instead of ↵ | Ted Kremenek | 2009-12-03 | 1 | -3/+3 |
| | | | | | | std::string&. llvm-svn: 90477 | ||||
* | A new helper function to set various bits in the class when | Fariborz Jahanian | 2009-12-03 | 4 | -15/+19 |
| | | | | | | | a new virtual function is declared/instantiated. it is used in couple of places. llvm-svn: 90470 | ||||
* | Fix Clang tool translation to forward -fvisibility as separate arguments, the | Daniel Dunbar | 2009-12-03 | 2 | -3/+8 |
| | | | | | | old syntax isn't supported. llvm-svn: 90469 | ||||
* | Add utils/TestUtils, and sink pch-test.pl there. | Daniel Dunbar | 2009-12-03 | 2 | -0/+24 |
| | | | | | | Also, add a test for generator a C file with a very deep call stack. llvm-svn: 90468 | ||||
* | Unify the end-of-class code paths used by the parser and template | Douglas Gregor | 2009-12-03 | 5 | -27/+55 |
| | | | | | | | | | | | | | | instantiation, to ensure that we mark class template specilizations as abstract when we need to and perform checking of abstract classes. Also, move the checking that determines whether we are creating a variable of abstract class type *after* we check whether the type is complete. Otherwise, we won't see when we have an abstract class template specialization that is implicitly instantiated by this declaration. This is the "something else" that Sebastian had noted earlier. llvm-svn: 90467 | ||||
* | Add another blocks test case illustrating how parameters passed-by-reference ↵ | Ted Kremenek | 2009-12-03 | 1 | -0/+15 |
| | | | | | | in block invocations are invalidated (just like function calls). llvm-svn: 90466 | ||||
* | When instantiating a class, if a base specifier is not dependent we still ↵ | Anders Carlsson | 2009-12-03 | 4 | -11/+41 |
| | | | | | | need to copy its attributes down to the instantiated class. llvm-svn: 90463 | ||||
* | Tweak handling of BlockDataRegions in ↵ | Ted Kremenek | 2009-12-03 | 1 | -4/+6 |
| | | | | | | RegionStoreManager::RemoveDeadBindings(): only the VarRegions for variables marked with the '__block' annotation should have their lifetime extended by a BlockDataRegion. llvm-svn: 90462 | ||||
* | Handle static_assert inside functions. | Anders Carlsson | 2009-12-03 | 2 | -1/+6 |
| | | | | llvm-svn: 90461 | ||||
* | When we're building a CXXExprWithTemporaries, only include those | Douglas Gregor | 2009-12-03 | 4 | -4/+36 |
| | | | | | | | | | | | temporaries that are within our current evaluation context. That way, nested evaluation contexts (e.g., within a sizeof() expression) won't see temporaries from outer contexts. Also, make sure to push a new evaluation context when instantiating the initializer of a variable; this may be an unevaluated context or a potentially-evaluated context, depending on whether it's an in-class initializer or not. Fixes PR5672. llvm-svn: 90460 | ||||
* | Minor cleanup to the code-completion-point logic suggested by Chris. | Douglas Gregor | 2009-12-03 | 3 | -4/+3 |
| | | | | llvm-svn: 90459 | ||||
* | Eli, I copied my code from this code... Let's fix the souce of the bad idea! | Mike Stump | 2009-12-03 | 1 | -4/+1 |
| | | | | | | Thanks. llvm-svn: 90458 | ||||
* | Make test 64 bit safe. | Benjamin Kramer | 2009-12-03 | 1 | -1/+1 |
| | | | | llvm-svn: 90452 | ||||
* | Fix for PR5659: correct a rather nasty oversight in the type conversion for | Eli Friedman | 2009-12-03 | 2 | -4/+14 |
| | | | | | | member pointer types. llvm-svn: 90450 | ||||
* | XFAIL this on Win32 for the time being. | Daniel Dunbar | 2009-12-03 | 1 | -0/+1 |
| | | | | llvm-svn: 90448 | ||||
* | Add security syntactic checker for mktemp. | Zhongxing Xu | 2009-12-03 | 1 | -1/+41 |
| | | | | | | Patch by Lei Zhang! llvm-svn: 90444 | ||||
* | Update CMake for CallGraph.cpp move. | Daniel Dunbar | 2009-12-03 | 2 | -1/+1 |
| | | | | llvm-svn: 90443 | ||||
* | Fix two more diagnostic-on-stderr instances that thought they could hide ↵ | Daniel Dunbar | 2009-12-03 | 2 | -10/+14 |
| | | | | | | from me -- they thought wrong. llvm-svn: 90442 | ||||
* | Kill a few more random stderr uses. | Daniel Dunbar | 2009-12-03 | 6 | -22/+18 |
| | | | | llvm-svn: 90441 | ||||
* | Convert ABIArgInfo::dump to raw_ostream. | Daniel Dunbar | 2009-12-03 | 1 | -11/+11 |
| | | | | llvm-svn: 90440 | ||||
* | Kill off one last exit() call. | Daniel Dunbar | 2009-12-03 | 1 | -1/+1 |
| | | | | llvm-svn: 90439 | ||||
* | Use llvm_report_error instead of fprintf + assert + exit. | Daniel Dunbar | 2009-12-03 | 1 | -8/+5 |
| | | | | llvm-svn: 90438 | ||||
* | Fix CompilerInstance::createOutputFile to use proper diagnostics, and (try ↵ | Daniel Dunbar | 2009-12-03 | 4 | -15/+48 |
| | | | | | | to) update all clients to be able to handle failure. llvm-svn: 90437 | ||||
* | Remove an unnecessary (I believe) exit() on error. | Daniel Dunbar | 2009-12-03 | 1 | -4/+0 |
| | | | | llvm-svn: 90436 | ||||
* | Convert StmtDumper to raw_ostream. I forget why. | Daniel Dunbar | 2009-12-03 | 1 | -129/+121 |
| | | | | llvm-svn: 90435 | ||||
* | Switch PCHReader::getOriginalSourceFile to use proper diagnostics. | Daniel Dunbar | 2009-12-03 | 4 | -13/+19 |
| | | | | llvm-svn: 90434 | ||||
* | Fix BackendConsumer to use proper diagnostics. | Daniel Dunbar | 2009-12-03 | 2 | -15/+17 |
| | | | | llvm-svn: 90433 | ||||
* | Add value invalidation logic for block-captured variables. Conceptually ↵ | Ted Kremenek | 2009-12-03 | 3 | -2/+50 |
| | | | | | | invoking a block (without specific reasoning of what the block does) can invalidate any value to it by reference when the block was created. llvm-svn: 90431 | ||||
* | Make BlockDataRegion::referenced_vars_iterator an actual class that enforces ↵ | Ted Kremenek | 2009-12-03 | 2 | -3/+29 |
| | | | | | | that all MemRegions iterated over are VarRegions. llvm-svn: 90430 | ||||
* | Attempt to fix the MSVC build. | Anders Carlsson | 2009-12-03 | 1 | -4/+4 |
| | | | | llvm-svn: 90427 | ||||
* | clang-cc: Move to CompilerInvocation based command line parsing. | Daniel Dunbar | 2009-12-03 | 4 | -1437/+3 |
| | | | | llvm-svn: 90426 | ||||
* | Fix layering violation by moving Analysis/CallGraph to Index | Daniel Dunbar | 2009-12-03 | 3 | -3/+3 |
| | | | | llvm-svn: 90424 | ||||
* | clang-cc: Honor -help and -version when using new style option parsing. | Daniel Dunbar | 2009-12-03 | 4 | -0/+32 |
| | | | | llvm-svn: 90422 | ||||
* | CC1Options: Normalize meta var spellings, and fix a few help texts. | Daniel Dunbar | 2009-12-03 | 1 | -27/+27 |
| | | | | llvm-svn: 90421 | ||||
* | Add OptTable::PrintHelp. | Daniel Dunbar | 2009-12-03 | 3 | -0/+89 |
| | | | | llvm-svn: 90420 | ||||
* | Update test and CIndex to use -FOO BAR form for ↵ | Daniel Dunbar | 2009-12-03 | 2 | -6/+8 |
| | | | | | | -{remap-file,code-completion-at}. llvm-svn: 90416 | ||||
* | Add clang -cc1 support for -remap-file. | Daniel Dunbar | 2009-12-03 | 3 | -2/+26 |
| | | | | llvm-svn: 90414 | ||||
* | Add clang -cc1 -load option. | Daniel Dunbar | 2009-12-03 | 5 | -1/+24 |
| | | | | llvm-svn: 90413 | ||||
* | Fix thunk generation for thunks with a parameter with reference type. | Eli Friedman | 2009-12-03 | 2 | -1/+9 |
| | | | | llvm-svn: 90412 | ||||
* | Minor cleanup. | Eli Friedman | 2009-12-03 | 3 | -12/+7 |
| | | | | llvm-svn: 90411 |