summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Constify.Zhongxing Xu2010-07-203-11/+12
| | | | llvm-svn: 108800
* Correct line info for declarations/definitions. Radar 8063111.Stuart Hastings2010-07-191-0/+1
| | | | llvm-svn: 108785
* Temporarily revert. Some odd internal breakage is likely related.Jim Grosbach2010-07-191-4/+4
| | | | llvm-svn: 108764
* Remove PCHReader::getStream(), it was unused. Inline ↵Sebastian Redl2010-07-191-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 Redl2010-07-191-12/+12
| | | | llvm-svn: 108762
* Promote DeclOffsets and TypeOffsets to per-file data.Sebastian Redl2010-07-191-10/+21
| | | | llvm-svn: 108760
* Patch to type match comparing Objective-C Classes which implement Fariborz Jahanian2010-07-191-1/+31
| | | | | | protocols (Radar 8191774). llvm-svn: 108758
* Don't warn when a '%%' or '%*d' (scanf) is used in a format string with ↵Ted Kremenek2010-07-191-22/+26
| | | | | | | | positional arguments, since these don't actually consume an argument. llvm-svn: 108757
* Introduce a new libclang API, clang_reparseTranslationUnit(), whichDouglas Gregor2010-07-192-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 Kremenek2010-07-191-23/+59
| | | | llvm-svn: 108750
* Put ObjC method names, method types and class names in separate string literalJim Grosbach2010-07-191-4/+4
| | | | | | sections. rdar://8207705 llvm-svn: 108749
* Promote the identifier table to per-file data. Also, if a CHAINED_METADATA ↵Sebastian Redl2010-07-191-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 Kremenek2010-07-191-0/+4
| | | | | | <rdar://problem/8204052>. llvm-svn: 108742
* Driver: Make -fnext-runtime the default when rewriting Objective-C.Daniel Dunbar2010-07-191-2/+7
| | | | llvm-svn: 108741
* Driver/Darwin: Add deployment target after doing argument translation, so thatDaniel Dunbar2010-07-192-11/+13
| | | | | | -mmacosx-version-min works inside a -Xarch_ flag. llvm-svn: 108712
* Driver: Factor out Darwin::AddDeploymentTarget.Daniel Dunbar2010-07-192-10/+20
| | | | llvm-svn: 108711
* Remove unused location-to-AST-node resolver. libclang's implementation ↵Douglas Gregor2010-07-192-603/+0
| | | | | | supercedes it llvm-svn: 108708
* Categories cannot synthesize property ivars,Fariborz Jahanian2010-07-191-5/+5
| | | | | | and a minor cleanup. llvm-svn: 108707
* Fix construction of AnalysisContext. Thanks Daniel.Zhongxing Xu2010-07-191-1/+1
| | | | llvm-svn: 108694
* Fix http://llvm.org/PR7660Argyrios Kyrtzidis2010-07-191-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 Lattner2010-07-191-2/+1
| | | | llvm-svn: 108676
* remove CallInliner.cpp.Zhongxing Xu2010-07-191-0/+0
| | | | llvm-svn: 108670
* Add double close check to StreamChecker. Patch by Lei Zhang.Zhongxing Xu2010-07-191-4/+87
| | | | llvm-svn: 108669
* Reapply r108617.Zhongxing Xu2010-07-198-75/+73
| | | | llvm-svn: 108668
* Driver: Change the driver to take the path to the main executable, instead ofDaniel Dunbar2010-07-192-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 Dunbar2010-07-181-4/+4
| | | | llvm-svn: 108659
* Fix a goof in my previous patch -- not all of the builtins return a value, someChandler Carruth2010-07-181-1/+7
| | | | | | fixed return types. llvm-svn: 108657
* Fix mangling for static member variables of classes inside an extern "C"Eli Friedman2010-07-181-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 Collingbourne2010-07-181-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 makeChandler Carruth2010-07-182-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 Lattner2010-07-1812-12/+0
| | | | llvm-svn: 108633
* Fix crash initializing a bit-field with a non-constant in a place where weEli Friedman2010-07-171-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 toEli Friedman2010-07-171-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 Jahanian2010-07-173-1/+4
| | | | llvm-svn: 108627
* Add another terrible VC++ compatibility hack: allow users toChris Lattner2010-07-171-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 Kramer2010-07-177-42/+75
| | | | llvm-svn: 108621
* Prepare the analyzer for the callee in another translation unit:Zhongxing Xu2010-07-177-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 Kremenek2010-07-171-2/+1
| | | | | | removing a bogus assertion. llvm-svn: 108602
* Patch to synthesize property ivars on demand asFariborz Jahanian2010-07-173-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 forJohn McCall2010-07-172-43/+92
| | | | | | multiple reasons. Rethrow with _objc_exception_throw instead. Fixes PR7656. llvm-svn: 108595
* Fix APFloat assertion failure in IdempotentOperationChecker resulting in havingTed Kremenek2010-07-171-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 Redl2010-07-171-77/+86
| | | | | | metadata record. WIP llvm-svn: 108578
* When checking whether to bind an expression to a temporary, don't bind Obj-C ↵Anders Carlsson2010-07-161-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 Redl2010-07-161-32/+51
| | | | | | reuse it. llvm-svn: 108551
* Improved false positive rate for the idempotent operations checker and moved ↵Tom Care2010-07-166-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 Kremenek2010-07-162-2/+10
| | | | llvm-svn: 108542
* First baby steps towards PCHReader being able to keep track of multiple PCH ↵Sebastian Redl2010-07-163-20/+50
| | | | | | files. WIP llvm-svn: 108537
* When performing template name lookup for a dependent member accessDouglas Gregor2010-07-161-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. WIPSebastian Redl2010-07-163-36/+55
| | | | llvm-svn: 108528
* Revert Microsoft-specific override of the "typedef requires a name"Douglas Gregor2010-07-161-4/+3
| | | | | | | diagnostic. Instead, put it and the "declaration does not declare anything" warning into -Wmissing-declarations. llvm-svn: 108527
OpenPOWER on IntegriCloud