summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* fix PR10415, tidying up IR representation of module level inline asmChris Lattner2011-07-232-0/+11
| | | | | | to avoid extraneous \n's. llvm-svn: 135862
* Extend libclang with clang_equalRanges, from Erik Verbruggen!Douglas Gregor2011-07-234-0/+18
| | | | llvm-svn: 135860
* Add a link-friendly name to the Clang extension acceptance criteriaDouglas Gregor2011-07-231-1/+1
| | | | llvm-svn: 135859
* Document the criteria for evaluating a proposed extension to Clang.Douglas Gregor2011-07-231-1/+30
| | | | llvm-svn: 135858
* Tests for explicit conversion operators, along with a fix to avoidDouglas Gregor2011-07-232-12/+155
| | | | | | | | | | considering explicit conversion operators when determining surrogate functions. Fixes PR10453. Note that there are a few test cases where Clang is still wrong because it does not implement DR899; see PR10456. Patch by Jonathan Sauer! llvm-svn: 135857
* Move ArrayRef to LLVM.h and eliminate now-redundant qualifiers, patch by Jon ↵Chris Lattner2011-07-2319-39/+41
| | | | | | Mulder! llvm-svn: 135855
* Unbreak the MSVC build, using namespace clang is required otherwise MSVC ↵Francois Pichet2011-07-231-0/+2
| | | | | | will not find raw_ostream. llvm-svn: 135853
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-23243-2290/+2240
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* clean up forward declarations of raw_ostream to use the new LLVM.hChris Lattner2011-07-2310-32/+15
| | | | | | patch by Jon Mulder! llvm-svn: 135851
* Migrate 2007-10-01-BuildArrayRef.c from llvm/test/FrontendC.Eric Christopher2011-07-231-0/+20
| | | | llvm-svn: 135840
* Move TargetAsmParser.h TargetAsmBackend.h and TargetAsmLexer.h to MC where ↵Evan Cheng2011-07-231-2/+2
| | | | | | they belong. llvm-svn: 135834
* Add ext_backslash_newline_eof to Wnewline-eof group.Anna Zaks2011-07-231-1/+2
| | | | llvm-svn: 135830
* This patch (thanks to Doug Gregor) fixes aSean Callanan2011-07-221-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | problem where Clang was setting the hasExternalVisibleDecls() bit for all DeclContexts it imported. This caused Clang to make unnecessary calls to findExternalVisibleDecls() when an external AST source was installed. In fact, Clang sometimes interpreted a failure by one of these spurious calls to find a Decl as meaning the Decl didn't exist, even though findExternalLexicalDecls() did locate that decl. This produced amusing errors of the form: - error: no member named 'b' in 'A'; did you mean 'b'? - Now, if hasExternalVisibleDecls() or hasExternalLexicalDecls() should be set, the external AST source must do so itself. llvm-svn: 135824
* Expose no newline at end of file warning under Wnewline-eof flag.Anna Zaks2011-07-222-1/+7
| | | | llvm-svn: 135822
* Match LLVM API change.Evan Cheng2011-07-222-8/+2
| | | | llvm-svn: 135813
* kill a FIXME in IsIntegralPromotionDavid Majnemer2011-07-221-4/+1
| | | | | | | | IsIntegralPromotion should consider the signedness of FromType when calculating promotions. This, as of now, cannot be exercised on any platform so there is no corresponding test. llvm-svn: 135803
* Remove prepending of '$' to module names.Jonathan D. Turner2011-07-222-4/+4
| | | | llvm-svn: 135775
* Switch all of the "isysroot" const char*'s throughout the AST readerDouglas Gregor2011-07-229-53/+46
| | | | | | and writer to StringRef or std::string, as appropriate. llvm-svn: 135769
* Rename ASTReader::PerFileData to serialization::Module, pulling it outDouglas Gregor2011-07-228-366/+383
| | | | | | | of ASTReader so it can become its own full-fledged class (eventually). No functionality change. llvm-svn: 135767
* Use -ffreestanding with clang_cc1 to make the test picks the clang builtin ↵Francois Pichet2011-07-221-2/+2
| | | | | | include. llvm-svn: 135766
* Add a missing forward declaration and namespace qualifier to thisChandler Carruth2011-07-221-1/+5
| | | | | | | | | header. This showed up in client code that has a different include ordering after Chris's shuffle of raw_ostream. All of the Clang code ends up with a header included before this one that provides the needed type and using declaration. llvm-svn: 135765
* Document the existing objc_precise_lifetime attribute.John McCall2011-07-228-19/+239
| | | | | | | | | Introduce and document a new objc_returns_inner_pointer attribute, and consume it by performing a retain+autorelease on message receivers when they're not immediately loaded from an object with precise lifetime. llvm-svn: 135764
* Fix test on MSVC: since the test includes a system header it cannot use ↵Francois Pichet2011-07-221-2/+2
| | | | | | clang_cc1. llvm-svn: 135763
* Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to useJay Foad2011-07-226-11/+8
| | | | | | ArrayRef. llvm-svn: 135761
* Bring over a test from llvm/test/FrontendC that is for Sema and not CodeGen.Eric Christopher2011-07-221-0/+17
| | | | llvm-svn: 135753
* fix PR10384: C++ allows external arrays of incomplete type as well.Chris Lattner2011-07-222-0/+14
| | | | | | Many thanks to Eli for reducing this great testcase. llvm-svn: 135752
* rename test.Chris Lattner2011-07-221-0/+0
| | | | llvm-svn: 135751
* Introduce a global bit-offset continuous range map into the ASTReader,Douglas Gregor2011-07-224-91/+42
| | | | | | | | | | | | | | | | | so that we have one, simple way to map from global bit offsets to local bit offsets. Eliminates a number of loops over the chain, and generalizes for more interesting bit remappings. Also, as an amusing oddity, we were computing global bit offsets *backwards* for preprocessed entities (e.g., the directly included PCH file in the chain would start at offset zero, rather than the original PCH that occurs first in translation unit). Even more amusingly, it made precompiled preambles work, because we were forgetting to adjust the local bit offset to a global bit offset when storing preprocessed entity offsets in the ASTUnit. Two wrongs made a right, and now they're both right. llvm-svn: 135750
* Fix an embarrassing bug in relocatable PCH support, where we wereDouglas Gregor2011-07-222-1/+11
| | | | | | | passing a temporary const char* down as the "isysroot" parameter and then accessing it later. Fixes <rdar://problem/9035180>. llvm-svn: 135749
* Move duplicate uninitialized warning suppression into theChandler Carruth2011-07-223-18/+12
| | | | | | | | | | | | AnalysisBasedWarnings Sema layer and out of the Analysis library itself. This returns the uninitialized values analysis to a more pure form, allowing its original logic to correctly detect some categories of definitely uninitialized values. Fixes PR10358 (again). Thanks to Ted for reviewing and updating this patch after his rewrite of several portions of this analysis. llvm-svn: 135748
* In ARC, non-atomic getters do not need to retain and autoreleaseJohn McCall2011-07-222-17/+58
| | | | | | | their loaded values, although it still worth doing this for __weak properties to get the autoreleased-return-value optimization. llvm-svn: 135747
* Move this ObjCImplementationDecl member function into libASTJohn McCall2011-07-222-13/+13
| | | | | | where it belongs. llvm-svn: 135746
* In Objective-C, pull arbitrary attributes from overriddenJohn McCall2011-07-225-174/+211
| | | | | | | | | | | | | | | methods, including indirectly overridden methods like those declared in protocols and categories. There are mismatches that we would like to diagnose but aren't yet, but this is fine for now. I looked at approaches that avoided doing this lookup unless we needed it, but the infer-related-result-type checks were doing it anyway, so I left it with the same fast-path check for no previous declartions of that selector. llvm-svn: 135743
* Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin.Jordy Rose2011-07-2210-72/+50
| | | | | | | | | This was previously not-const only because it has to lazily construct a chain of ivars the first time it is called (and after the chain is invalidated). In practice, all the clients were just const_casting their const Decls; all those now-unnecessary const_casts have been removed. llvm-svn: 135741
* objective-c: Any use of @synthesize or @dynamic lexically after a method (or ↵Fariborz Jahanian2011-07-2211-22/+36
| | | | | | | | | | C function) implementation will be rejected with a compilation error in ARC mode, and a compiler warning otherwise. This may cause breakage in non-arc (and arc) tests which don't expect warning/error. Feel free to fix the tests, or reverse the patch, if I am unavailable. // rdar://9818354 - WIP llvm-svn: 135740
* In the AST reader, factor out the mapping of local type IDs to globalDouglas Gregor2011-07-224-81/+108
| | | | | | | | type IDs into a single place, and make sure that all of the callers use the appropriate functions to do the mapping. Since the mapping is still the identity function, this is essentially a no-op. llvm-svn: 135733
* Avoid warning on "clang -c -Dfoo test.i". Lines like these are createdRafael Espindola2011-07-211-0/+6
| | | | | | | when using ccache and libtool.m4 assumes that the compiler cannot print warnings about options it knows about. llvm-svn: 135723
* Clean up the rest of the local -> global declaration ID mappingsDouglas Gregor2011-07-213-12/+9
| | | | | | within the ASTReader (I hope). llvm-svn: 135720
* In the ASTReader, factor out the loading of (local) declaration IDs,Douglas Gregor2011-07-214-277/+340
| | | | | | | | | | | | | such that every declaration ID loaded from an AST file will go through a central local -> global mapping function. At present, this change does nothing, since the local -> global mapping function is the identity function. This is the mechanical part of the refactoring; a follow-up patch will address a few remaining areas where it's not obvious whether we're dealing with local or global IDs. llvm-svn: 135711
* Add a missing test for the limits on wcharAlexis Hunt2011-07-211-0/+15
| | | | llvm-svn: 135708
* Fix diagnostic when loading a PCH which has different enabled/disabled state ↵Argyrios Kyrtzidis2011-07-212-4/+12
| | | | | | of -fobjc-arc. rdar://9818341 llvm-svn: 135707
* Cleaning up more of the ID situation in the AST reader. This patch relaxes ↵Jonathan D. Turner2011-07-212-25/+46
| | | | | | and generalizes how CXX base specifiers are identified and loaded by using a ContinuousRangeMap. This also adds a global bit offset (or base) to the PerFileData. llvm-svn: 135705
* Add some debugging output to the AST reader, so we can see the global ↵Douglas Gregor2011-07-212-0/+57
| | | | | | remappings we generate llvm-svn: 135701
* In the AST reader, keep track of the total number of source locationsDouglas Gregor2011-07-211-13/+10
| | | | | | | entries incrementally, rather than iterating over the chain when loading a single AST file. llvm-svn: 135692
* For ASTUnit::Save, write the AST to a temporary and then rename it to the ↵Argyrios Kyrtzidis2011-07-211-4/+26
| | | | | | | | actual filename. Should avoid race conditions. Addresses rdar://9788943. llvm-svn: 135691
* Cut down one open/close pair of system calls by using Path's makeUnique ↵Argyrios Kyrtzidis2011-07-212-2/+2
| | | | | | instead of createTemporaryFileOnDisk. llvm-svn: 135690
* Update cxx_status page on www: clang has had full support for in-class ↵Richard Smith2011-07-211-4/+4
| | | | | | initializers since r132890. llvm-svn: 135689
* Clean up the C++ status page by eliminating the utterly unnecessary set of ↵Douglas Gregor2011-07-211-58/+9
| | | | | | projects. C++98/03 is sooooo yesterday llvm-svn: 135687
* Update C++0x nullptr status, from Jonathan SauerDouglas Gregor2011-07-211-2/+2
| | | | llvm-svn: 135686
* Add FixIt hint for missing 'id' type.Fariborz Jahanian2011-07-212-1/+26
| | | | | | // rdar://9615045 llvm-svn: 135685
OpenPOWER on IntegriCloud