summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Generalize the module offset map to include mapping information forDouglas Gregor2011-08-023-29/+86
| | | | | | | | all of the kinds of IDs that can be offset. No effectively functionality change; this is preparation for adding remapping for IDs. llvm-svn: 136686
* Make helper functions static.Benjamin Kramer2011-08-023-12/+13
| | | | llvm-svn: 136679
* Fix formatting of SemaExpr.cpp, mainly fixing lines greater than 80 characters.Richard Trieu2011-08-021-109/+194
| | | | | | No functional change. llvm-svn: 136678
* Revert "Re-enable byval for ARM in clang. rdar://problem/7662569"Bob Wilson2011-08-011-10/+6
| | | | | | | | | | | This reverts commit 67d097e1232b7d66f58989c16a45b8a11721f76e. We found a miscompile with ARM byval, which is still being investigated. In the meantime, this works around the problem by disabling ARM byval. Conflicts: lib/CodeGen/TargetInfo.cpp llvm-svn: 136662
* Add a skeleton for the Keychain Services API Checker. Register it as OSX ↵Anna Zaks2011-08-014-0/+243
| | | | | | experimental for now. Note, the checker still does not handle tracking of escaped values, taking into account the return value of the allocator functions, nor the actual bug reporting.. llvm-svn: 136659
* objective-c: reverse patch for // rdar://9818354Fariborz Jahanian2011-08-0111-36/+22
| | | | llvm-svn: 136658
* Implement MipsABIInfo::EmitVAArg. This fix enables clang to complete compilationAkira Hatanaka2011-08-011-1/+31
| | | | | | | | | | without bailing out when va_arg is an aggregate expression. However, alignment checking needs to be added in isSafeToEliminateVarargsCast in InstCombineCalls.cpp in order to produce correct mips code (see link below). http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-July/042047.html llvm-svn: 136647
* Driver: When compiling i386 -fapple-kext code, we fallback to llvmgcc.Chad Rosier2011-08-011-1/+4
| | | | | | | | Unfortunately, llvmgcc doesn't always work when writing temporary output to /dev/null. Therefore, create a temp file that is later deleted. rdar://9837692 llvm-svn: 136644
* Pass records with non-trivial destructors or constructors indirectly.Akira Hatanaka2011-08-011-0/+5
| | | | llvm-svn: 136630
* Fix linkage type for tentative definition of ivar offset variables (GNUstep ↵David Chisnall2011-08-011-2/+2
| | | | | | runtime) llvm-svn: 136628
* Move the serialization of the MODULE_OFFSET_MAP out of the ↵Douglas Gregor2011-08-011-32/+35
| | | | | | source-manager-writing code and into the general chained-PCH writing code llvm-svn: 136624
* Rename the AST file's SOURCE_LOCATION_MAP to MODULE_OFFSET_MAP, to indicate ↵Douglas Gregor2011-08-013-5/+8
| | | | | | the greater role it will soon play in remapping. llvm-svn: 136619
* Test for // rdar://9846759Fariborz Jahanian2011-07-311-0/+32
| | | | llvm-svn: 136602
* Remove dead code flagged by GCC's -Wunused-but-set-variable.Benjamin Kramer2011-07-313-12/+0
| | | | llvm-svn: 136581
* Not sure why we bother updating FunctionDecl's EndRangeLoc in ↵Argyrios Kyrtzidis2011-07-301-5/+0
| | | | | | | | FunctionDecl::setParams. EndRangeLoc should always be set to at least the ending paren or brace. llvm-svn: 136573
* [libclang] Annotation of parameters that got default args from a previous ↵Argyrios Kyrtzidis2011-07-304-0/+31
| | | | | | | | | declarations was broken because the end location of the parameter was the end location of the default arg, resulting in a source range that could begin in one file and end in another. llvm-svn: 136572
* Introduce a Fix-It for the "missing sentinel" warning, adding anDouglas Gregor2011-07-304-7/+35
| | | | | | | appropriate sentinel at the end of the argument list. Also, put the sentinel warnings under -Wsentinel. Fixes <rdar://problem/8764236>. llvm-svn: 136566
* Add code completion to produce "else" blocks after an "if"Douglas Gregor2011-07-304-0/+71
| | | | | | statement. Fixes <rdar://problem/9229438>. llvm-svn: 136564
* When producing code completion results for variadic macros, fold theDouglas Gregor2011-07-302-4/+35
| | | | | | | variadic bit (", ..." or ", args...") into the prior placeholder, like we do with functions and methods. Fixes <rdar://problem/9740808>. llvm-svn: 136563
* Add the various parameter-passing keywords for Distributed ObjectsDouglas Gregor2011-07-302-5/+39
| | | | | | | (such as in, inout, byref, and oneway) to code completion results. Fixes <rdar://problem/8844158>. llvm-svn: 136562
* Fix a thinko in my __is_empty/__is_pod commit.Douglas Gregor2011-07-301-2/+6
| | | | llvm-svn: 136561
* Turn off __has_feature(is_empty) and __has_feature(is_pod) if theDouglas Gregor2011-07-303-3/+9
| | | | | | | libstdc++ hack has reverted these type traits to keywords. Icky, but fixes <rdar://problem/9836262>. llvm-svn: 136560
* When performing code completion after at @interface, allow bothDouglas Gregor2011-07-306-25/+35
| | | | | | | | already-defined and forward-declared results. Already-defined results are fine because they could be the start of a category. Fixes <rdar://problem/9811691>. llvm-svn: 136559
* When complaining about a non-POD second argument to va_arg, use aDouglas Gregor2011-07-303-2/+16
| | | | | | | | special diagnostic for ARC ownership-qualified types. We wouldn't want to expose Objective-C programmers to the term "POD", would we? Fixes <rdar://problem/9772982>. llvm-svn: 136558
* Use the "Bar.h" -> <Foo/Bar.h> remapping for index header maps only asDouglas Gregor2011-07-301-16/+23
| | | | | | | a fallback, if normal header search fails. Another attempt at <rdar://problem/9824020>. llvm-svn: 136557
* objc rewriter - my last patch was not quite right.Fariborz Jahanian2011-07-301-2/+8
| | | | | | Fixed again. // rdar://9846759 llvm-svn: 136550
* objc rewriter - set the flag passed to ↵Fariborz Jahanian2011-07-301-2/+2
| | | | | | | | _Block_object_assign/_Block_object_dispose correctly for copying a captured block object. // rdar://9846759 llvm-svn: 136549
* Teach the ASTImporter to cope with cases where we have alreadyDouglas Gregor2011-07-291-26/+84
| | | | | | | imported a forward declaration, but later the full definition of the same entity becomes available. When this happens, import the definition. llvm-svn: 136537
* Add support for the 'Q' arm memory constraint.Eric Christopher2011-07-292-1/+10
| | | | | | Fixes rdar://9866494 llvm-svn: 136524
* [analyzer] Remove recursive visitation in ExprEngine::VisitDeclStmt because ↵Ted Kremenek2011-07-291-18/+14
| | | | | | it isn't needed anymore. llvm-svn: 136522
* [analyzer] Remove recursive visitation in ↵Ted Kremenek2011-07-291-12/+9
| | | | | | ExprEngine::VisitCompoundLiteralExpr because it isn't needed anymore. llvm-svn: 136521
* [analyzer] Remove recursive visitation in ExprEngine::VisitCastExpr because ↵Ted Kremenek2011-07-291-6/+7
| | | | | | it isn't needed anymore. llvm-svn: 136520
* [analyzer] Remove recursive visitation in ↵Ted Kremenek2011-07-292-38/+23
| | | | | | ExprEngine::VisitObjCForCollectionStmt because it isn't needed anymore. llvm-svn: 136519
* [analyzer] Remove explicit argument processing from ↵Ted Kremenek2011-07-292-74/+10
| | | | | | ExprEngine::VisitObjCMessage() since it is no longer needed. llvm-svn: 136518
* [analyzer] Remove recursive visitation in ↵Ted Kremenek2011-07-291-15/+4
| | | | | | ExprEngine::VisitLValObjCIvarRefExpr because it isn't needed anymore. llvm-svn: 136517
* [analyzer] tighten up ExprEngine::VisitObjCAtSynchronizationStmt().Ted Kremenek2011-07-291-10/+3
| | | | llvm-svn: 136516
* [analyzer] Remove recursive visitation in ↵Ted Kremenek2011-07-291-19/+1
| | | | | | ExprEngine::VisitObjCPropertyRefExpr because it isn't needed anymore. llvm-svn: 136515
* [analyzer] Remove recursive visitation in ExprEngine::VisitCallExpr because ↵Ted Kremenek2011-07-291-21/+1
| | | | | | it isn't needed anymore. llvm-svn: 136514
* [analyzer] Remove recursive visitation in ExprEngine::VisitMemberExpr ↵Ted Kremenek2011-07-291-28/+22
| | | | | | because it isn't needed anymore. llvm-svn: 136513
* [analyzer] Remove recursive visitation in ↵Ted Kremenek2011-07-291-15/+9
| | | | | | ExprEngine::VisitLvalArraySubscriptExpr() because it is no longer needed. llvm-svn: 136512
* On Darwin, libc++ may be installed alongside the compiler inDouglas Gregor2011-07-291-1/+17
| | | | | | | lib/c++/v1. Look there first, before falling back to the normal /usr/include/c++/v1. <rdar://problem/9866149> llvm-svn: 136507
* Renamed Loaded member to ImportedBy, as it's easier to read. Added another ↵Jonathan D. Turner2011-07-292-7/+15
| | | | | | set to represent the modules a module imports. llvm-svn: 136476
* Add a missing \endcode for DoxygenDouglas Gregor2011-07-291-0/+1
| | | | llvm-svn: 136469
* Remove some unnecessary single element array temporaries.Jay Foad2011-07-296-38/+20
| | | | llvm-svn: 136461
* Make DiagnosticErrorTrap keep a count of the errors that occurred so multipleArgyrios Kyrtzidis2011-07-294-11/+40
| | | | | | | | DiagnosticErrorTraps can be composed (e.g. a trap inside another trap). Fixes http://llvm.org/PR10462 & rdar://9852007. llvm-svn: 136447
* This patch makes the string/character literal tests run in C,Douglas Gregor2011-07-296-40/+79
| | | | | | C++98/03, and C++0x mode, from Craig Topper! llvm-svn: 136443
* Remove unused debug functionDouglas Gregor2011-07-291-21/+0
| | | | llvm-svn: 136442
* In the ASTReader, replace the continuous range maps whose value typesDouglas Gregor2011-07-293-63/+67
| | | | | | | | | were (Module*, Offset) with equivalent maps whose value type is just a Module*. The offsets have moved into corresponding "Base" fields within the Module itself, where they will also be helpful for local->global translation (eventually). llvm-svn: 136441
* Fix assertion failure in CodeGen where the input operand to an asmPeter Collingbourne2011-07-292-1/+14
| | | | | | | instruction is tied to an output operand which is a pointer, and the input operand is narrower than the output operand. llvm-svn: 136438
* Fix an inconsistency in Sema::ConvertArgumentsForCall in thatPeter Collingbourne2011-07-296-11/+18
| | | | | | | the callee note diagnostic was not emitted in the case where there were too few arguments. llvm-svn: 136437
OpenPOWER on IntegriCloud