summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* 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
* objc - Diagnose missing method return type specifier underFariborz Jahanian2011-07-214-1/+19
| | | | | | a warning flag. // rdar://9615045 llvm-svn: 135681
* One last RandomAccessIterator operator for PreprocessingRecord::iteratorDouglas Gregor2011-07-211-0/+5
| | | | llvm-svn: 135680
* Add the remaining RandomAccessIterator operations toDouglas Gregor2011-07-211-2/+14
| | | | | | PreprocessingRecord::iterator. Where's concept_map when I need it? llvm-svn: 135679
* Define the _MIPS_SIM builtin macro on MIPS platforms. Patch by Robert Millan!Bruno Cardoso Lopes2011-07-211-1/+19
| | | | llvm-svn: 135675
* Convert ConstantExpr::getGetElementPtr andJay Foad2011-07-216-14/+14
| | | | | | ConstantExpr::getInBoundsGetElementPtr to use ArrayRef. llvm-svn: 135673
* For some reason I don't fully comprehend, the MSVC debug build will fail ↵Francois Pichet2011-07-211-0/+4
| | | | | | with a huge 50+ lines template error message if PreprocessingRecord::iterator has no operator<() llvm-svn: 135670
* Speculatively revert 135649 to bring back the g++ testing bots.Eric Christopher2011-07-211-6/+4
| | | | llvm-svn: 135668
* Move AnalysisManager constructor out of line. No functionality change (yet).Ted Kremenek2011-07-212-10/+25
| | | | llvm-svn: 135667
* Simplify passing of CFGBuildOptions around for AnalysisContext. No ↵Ted Kremenek2011-07-216-50/+72
| | | | | | functionality change. llvm-svn: 135666
* Fix a test in warn-sign-conversion.cpp. Removed a part of a directory path ↵Richard Trieu2011-07-211-1/+1
| | | | | | so that the directory seperator, which may change on different platforms, is no longer part of the string checked for. llvm-svn: 135665
* Remove warning for conditional operands of differend signedness from ↵Richard Trieu2011-07-217-113/+128
| | | | | | -Wsign-compare. Cases that previously warn on this will have a different warning emitted from -Wsign-conversion. llvm-svn: 135664
* New libclang API to expose container type for code completion, fromDouglas Gregor2011-07-2110-13/+188
| | | | | | Connor Wakamo! llvm-svn: 135651
* When copping out on a friend template declaration, be sure to mark itsAlexis Hunt2011-07-211-4/+6
| | | | | | access specifier as public. llvm-svn: 135649
* Rework the detailed preprocessing record to separate preprocessingDouglas Gregor2011-07-217-143/+273
| | | | | | | | | | | | | | | entities generated directly by the preprocessor from those loaded from the external source (e.g., the ASTReader). By separating these two sets of entities into different vectors, we allow both to grow independently, and eliminate the need for preallocating all of the loaded preprocessing entities. This is similar to the way the recent SourceManager refactoring treats FileIDs and the source location address space. As part of this, switch over to building a continuous range map to track preprocessing entities. llvm-svn: 135646
* Addressing code review comments for commit 135509 - Add FixItHints in case a ↵Anna Zaks2011-07-214-13/+58
| | | | | | C++ function call is missing * or & operators on llvm-svn: 135643
* Removes a comment.Fariborz Jahanian2011-07-201-1/+0
| | | | llvm-svn: 135640
* objc-arc: Fixes a crash @throw'ing an objc message.Fariborz Jahanian2011-07-202-1/+18
| | | | | | // pr10411 llvm-svn: 135638
* Continuing to improve and generalize how IDs are handled in ASTReader. This ↵Jonathan D. Turner2011-07-202-12/+21
| | | | | | patch cleans up and generalizes TypeID loading and uses a similar table-lookup to Doug's previous Decl patch. llvm-svn: 135622
* Temporarily revert r135614 while I fix the cmake build.Chad Rosier2011-07-2011-170/+18
| | | | llvm-svn: 135621
* Remove extraneous period.Bill Wendling2011-07-201-1/+1
| | | | llvm-svn: 135619
* When the compiler crashes, the compiler driver now produces diagnostic ↵Chad Rosier2011-07-2011-18/+170
| | | | | | | | | information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. llvm-svn: 135614
* Match MCContext change.Evan Cheng2011-07-201-4/+3
| | | | llvm-svn: 135612
* Fix -Wuninitialized regression involving functions invalidating parameters ↵Ted Kremenek2011-07-202-1/+13
| | | | | | passed by reference. llvm-svn: 135610
* Whitespace.Chad Rosier2011-07-201-3/+0
| | | | llvm-svn: 135605
* If -ccc-host-triple i386-pc-win32-macho or -ccc-host-triple Chad Rosier2011-07-202-1/+29
| | | | | | | | x86_64-pc-win32-macho is used in conjunction with -no-integrated-as go ahead and use the Darwin system assembler. rdar://9785470 llvm-svn: 135604
* arc-objc++: Issue an arc specific diagnostic when overload resolutionFariborz Jahanian2011-07-203-1/+44
| | | | | | | fails because of lifetime differences of parameter and argument type. // rdar://9790531 llvm-svn: 135593
* test/CMakeLists.txt: Re-indent.NAKAMURA Takumi2011-07-201-4/+4
| | | | llvm-svn: 135591
* Unbreak build after API change.Benjamin Kramer2011-07-201-6/+7
| | | | llvm-svn: 135585
* arrayref should now move in here, and redundant #includes of <cassert> can go Chris Lattner2011-07-201-1/+1
| | | | | | | away (since it comes in through Casting.h). This will have to wait for another day when I'm unmotivated though, or someone else to pick it up :) llvm-svn: 135579
* remove some now-redundant forward declarations.Chris Lattner2011-07-2018-56/+0
| | | | llvm-svn: 135578
* add raw_ostream and Twine to LLVM.h, eliminating a ton of llvm:: qualifications.Chris Lattner2011-07-2054-164/+159
| | | | llvm-svn: 135577
* now that we have a centralized place to do so, add some using declarations forChris Lattner2011-07-20120-663/+687
| | | | | | | some common llvm types: stringref and smallvector. This cleans up the codebase quite a bit. llvm-svn: 135576
* introduce a centralized place to introduce and inject llvm types into theChris Lattner2011-07-208-40/+46
| | | | | | | | clang namespace. There are a number of LLVM types that are used pervasively and it doesn't make sense to keep qualifying them. Start with casting operators. llvm-svn: 135574
OpenPOWER on IntegriCloud