Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Constify. | Zhongxing Xu | 2010-07-20 | 3 | -11/+12 |
| | | | | llvm-svn: 108800 | ||||
* | Correct line info for declarations/definitions. Radar 8063111. | Stuart Hastings | 2010-07-19 | 1 | -0/+1 |
| | | | | llvm-svn: 108785 | ||||
* | Temporarily revert. Some odd internal breakage is likely related. | Jim Grosbach | 2010-07-19 | 1 | -4/+4 |
| | | | | llvm-svn: 108764 | ||||
* | Remove PCHReader::getStream(), it was unused. Inline ↵ | Sebastian Redl | 2010-07-19 | 1 | -1/+1 |
| | | | | | | PCHReader::getDelsCursor() into its sole caller and remove it. This reduces the attack surface of multiple PCH files towards code outside the PCH implementation. llvm-svn: 108763 | ||||
* | Promote IdentifierOffsets to per-file data. | Sebastian Redl | 2010-07-19 | 1 | -12/+12 |
| | | | | llvm-svn: 108762 | ||||
* | Promote DeclOffsets and TypeOffsets to per-file data. | Sebastian Redl | 2010-07-19 | 1 | -10/+21 |
| | | | | llvm-svn: 108760 | ||||
* | Patch to type match comparing Objective-C Classes which implement | Fariborz Jahanian | 2010-07-19 | 1 | -1/+31 |
| | | | | | | protocols (Radar 8191774). llvm-svn: 108758 | ||||
* | Don't warn when a '%%' or '%*d' (scanf) is used in a format string with ↵ | Ted Kremenek | 2010-07-19 | 1 | -22/+26 |
| | | | | | | | | positional arguments, since these don't actually consume an argument. llvm-svn: 108757 | ||||
* | Introduce a new libclang API, clang_reparseTranslationUnit(), which | Douglas Gregor | 2010-07-19 | 2 | -76/+133 |
| | | | | | | | | reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. llvm-svn: 108756 | ||||
* | Hook up 'invalid conversion' warning for scanf format strings. | Ted Kremenek | 2010-07-19 | 1 | -23/+59 |
| | | | | llvm-svn: 108750 | ||||
* | Put ObjC method names, method types and class names in separate string literal | Jim Grosbach | 2010-07-19 | 1 | -4/+4 |
| | | | | | | sections. rdar://8207705 llvm-svn: 108749 | ||||
* | Promote the identifier table to per-file data. Also, if a CHAINED_METADATA ↵ | Sebastian Redl | 2010-07-19 | 1 | -21/+30 |
| | | | | | | record exists, it has to be the first thing in the PCH file. llvm-svn: 108748 | ||||
* | Add missing conversion specifier parsing for 'u', 'x', 'o', and 's'. Fixes ↵ | Ted Kremenek | 2010-07-19 | 1 | -0/+4 |
| | | | | | | <rdar://problem/8204052>. llvm-svn: 108742 | ||||
* | Driver: Make -fnext-runtime the default when rewriting Objective-C. | Daniel Dunbar | 2010-07-19 | 1 | -2/+7 |
| | | | | llvm-svn: 108741 | ||||
* | Driver/Darwin: Add deployment target after doing argument translation, so that | Daniel Dunbar | 2010-07-19 | 2 | -11/+13 |
| | | | | | | -mmacosx-version-min works inside a -Xarch_ flag. llvm-svn: 108712 | ||||
* | Driver: Factor out Darwin::AddDeploymentTarget. | Daniel Dunbar | 2010-07-19 | 2 | -10/+20 |
| | | | | llvm-svn: 108711 | ||||
* | Remove unused location-to-AST-node resolver. libclang's implementation ↵ | Douglas Gregor | 2010-07-19 | 2 | -603/+0 |
| | | | | | | supercedes it llvm-svn: 108708 | ||||
* | Categories cannot synthesize property ivars, | Fariborz Jahanian | 2010-07-19 | 1 | -5/+5 |
| | | | | | | and a minor cleanup. llvm-svn: 108707 | ||||
* | Fix construction of AnalysisContext. Thanks Daniel. | Zhongxing Xu | 2010-07-19 | 1 | -1/+1 |
| | | | | llvm-svn: 108694 | ||||
* | Fix http://llvm.org/PR7660 | Argyrios Kyrtzidis | 2010-07-19 | 1 | -1/+2 |
| | | | | | | | A ParmVarDecl instantiated from a FunctionProtoType may have Record as DeclContext, in which case isStaticDataMember() will erroneously return true. llvm-svn: 108692 | ||||
* | tidy up comment. | Chris Lattner | 2010-07-19 | 1 | -2/+1 |
| | | | | llvm-svn: 108676 | ||||
* | remove CallInliner.cpp. | Zhongxing Xu | 2010-07-19 | 1 | -0/+0 |
| | | | | llvm-svn: 108670 | ||||
* | Add double close check to StreamChecker. Patch by Lei Zhang. | Zhongxing Xu | 2010-07-19 | 1 | -4/+87 |
| | | | | llvm-svn: 108669 | ||||
* | Reapply r108617. | Zhongxing Xu | 2010-07-19 | 8 | -75/+73 |
| | | | | llvm-svn: 108668 | ||||
* | Driver: Change the driver to take the path to the main executable, instead of | Daniel Dunbar | 2010-07-19 | 2 | -8/+7 |
| | | | | | | | | | taking it in pieces. - Fixes a problem where the Clang executable path was not initialized properly on Win32, because sys::Path::getBasename() doesn't do what I always think it does. Imagine that, a sys::Path interface that is confusing! llvm-svn: 108667 | ||||
* | Driver: Fix a possible use after free. | Daniel Dunbar | 2010-07-18 | 1 | -4/+4 |
| | | | | llvm-svn: 108659 | ||||
* | Fix a goof in my previous patch -- not all of the builtins return a value, some | Chandler Carruth | 2010-07-18 | 1 | -1/+7 |
| | | | | | | fixed return types. llvm-svn: 108657 | ||||
* | Fix mangling for static member variables of classes inside an extern "C" | Eli Friedman | 2010-07-18 | 1 | -0/+4 |
| | | | | | | | linkage specification. Not sure if this is the ideal fix, but I'm reasonably sure it's correct vs. gcc. llvm-svn: 108656 | ||||
* | When instantiating function definitions set parameter names to those used in ↵ | Peter Collingbourne | 2010-07-18 | 1 | -4/+8 |
| | | | | | | | | | | | | | | template The rationale is that we are copying the entire definition including parameter names which may differ between the declaration and the definition. This is particularly important if any parameters are unnamed in the declaration, as a DeclRef to an unnamed ParmVarDecl would cause the pretty printer to produce invalid output. llvm-svn: 108643 | ||||
* | Improve the representation of the atomic builtins in a few ways. First, we make | Chandler Carruth | 2010-07-18 | 2 | -64/+93 |
| | | | | | | | | | | | | | | | their call expressions synthetically have the "deduced" types based on their first argument. We only insert conversions in the AST for arguments whose values require conversion to match the value type expected. This keeps PR7600 closed by maintaining the return type, but avoids assertions due to unexpected implicit casts making the type unsigned (test case added from Daniel). The magic is moved into the codegen for the atomic builtin which inserts the casts as needed at the IR level to raise the type to an integer suitable for the LLVM intrinsic. This shouldn't cause any real change in functionality, but now we can make the builtin be more truly polymorphic. llvm-svn: 108638 | ||||
* | BUILD_ARCHIVE is the default for libraries, no need to set it. | Chris Lattner | 2010-07-18 | 12 | -12/+0 |
| | | | | llvm-svn: 108633 | ||||
* | Fix crash initializing a bit-field with a non-constant in a place where we | Eli Friedman | 2010-07-17 | 1 | -4/+3 |
| | | | | | | try to evaluate the initializer as a constant. llvm-svn: 108632 | ||||
* | Check for casts to an incomplete type in C. Improves diagnostics for cast to | Eli Friedman | 2010-07-17 | 1 | -0/+4 |
| | | | | | | | incomplete union (PR5692) and incomplete enum, and fixes obscure accepts-invalid on cast to incomplete struct. llvm-svn: 108630 | ||||
* | Added PCH/ASTImporter code for ObjCIvarDecl's field. | Fariborz Jahanian | 2010-07-17 | 3 | -1/+4 |
| | | | | llvm-svn: 108627 | ||||
* | Add another terrible VC++ compatibility hack: allow users to | Chris Lattner | 2010-07-17 | 1 | -2/+7 |
| | | | | | | | allow invalid token pastes (when in -fms-extensions mode) with -Wno-invalid-token-paste llvm-svn: 108624 | ||||
* | Revert r108617, it broke the build. | Benjamin Kramer | 2010-07-17 | 7 | -42/+75 |
| | | | | llvm-svn: 108621 | ||||
* | Prepare the analyzer for the callee in another translation unit: | Zhongxing Xu | 2010-07-17 | 7 | -75/+42 |
| | | | | | | | Let AnalysisContext contain a TranslationUnit. Let CallEnter refer to an AnalysisContext instead of a FunctionDecl. llvm-svn: 108617 | ||||
* | Fix '<rdar://problem/8202272> __imag passed non-complex should not crash' by ↵ | Ted Kremenek | 2010-07-17 | 1 | -2/+1 |
| | | | | | | removing a bogus assertion. llvm-svn: 108602 | ||||
* | Patch to synthesize property ivars on demand as | Fariborz Jahanian | 2010-07-17 | 3 | -3/+60 |
| | | | | | | | part of the new property synthesis by default. wip. llvm-svn: 108599 | ||||
* | The GNU-runtime ObjC personality function doesn't let us rethrow with URR for | John McCall | 2010-07-17 | 2 | -43/+92 |
| | | | | | | multiple reasons. Rethrow with _objc_exception_throw instead. Fixes PR7656. llvm-svn: 108595 | ||||
* | Fix APFloat assertion failure in IdempotentOperationChecker resulting in having | Ted Kremenek | 2010-07-17 | 1 | -4/+6 |
| | | | | | | an APFloat with different "float semantics" than the compared float literal. llvm-svn: 108590 | ||||
* | Teach the PCH reader to load the dependency when encountering a chain ↵ | Sebastian Redl | 2010-07-17 | 1 | -77/+86 |
| | | | | | | metadata record. WIP llvm-svn: 108578 | ||||
* | When checking whether to bind an expression to a temporary, don't bind Obj-C ↵ | Anders Carlsson | 2010-07-16 | 1 | -20/+8 |
| | | | | | | message send expressions who call methods that return references. llvm-svn: 108559 | ||||
* | Separate out the initial loading of a PCH so that loading chained PCHs can ↵ | Sebastian Redl | 2010-07-16 | 1 | -32/+51 |
| | | | | | | reuse it. llvm-svn: 108551 | ||||
* | Improved false positive rate for the idempotent operations checker and moved ↵ | Tom Care | 2010-07-16 | 6 | -11/+82 |
| | | | | | | | | | | it into the default path-sensitive analysis options. - Added checks for static local variables, self assigned parameters, and truncating/extending self assignments - Removed command line option (now default with --analyze) - Updated test cases to pass with idempotent operation warnings llvm-svn: 108550 | ||||
* | Hook up warning for an incomplete scanlist in scanf format strings. | Ted Kremenek | 2010-07-16 | 2 | -2/+10 |
| | | | | llvm-svn: 108542 | ||||
* | First baby steps towards PCHReader being able to keep track of multiple PCH ↵ | Sebastian Redl | 2010-07-16 | 3 | -20/+50 |
| | | | | | | files. WIP llvm-svn: 108537 | ||||
* | When performing template name lookup for a dependent member access | Douglas Gregor | 2010-07-16 | 1 | -5/+5 |
| | | | | | | | | | expression such as the "foo" in "this->blah.foo<1, 2>", and we can't look into the type of "this->blah" (e.g., because it is dependent), look into the local scope of a template of the same name. Fixes <rdar://problem/8198511>. llvm-svn: 108531 | ||||
* | Add a little more data to chained PCHs. WIP | Sebastian Redl | 2010-07-16 | 3 | -36/+55 |
| | | | | llvm-svn: 108528 | ||||
* | Revert Microsoft-specific override of the "typedef requires a name" | Douglas Gregor | 2010-07-16 | 1 | -4/+3 |
| | | | | | | | diagnostic. Instead, put it and the "declaration does not declare anything" warning into -Wmissing-declarations. llvm-svn: 108527 |