summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use precompiled preambles for in-process code completion.Douglas Gregor2010-08-092-14/+107
| | | | llvm-svn: 110596
* Allow EvalBinOpNN to handle expressions of the form $a+$b if $b can be ↵Jordy Rose2010-08-091-4/+19
| | | | | | reduced to a constant. llvm-svn: 110592
* Warn if class object does not implement qualifiedFariborz Jahanian2010-08-091-4/+4
| | | | | | id's protocols. Fixes radar 8154220. llvm-svn: 110583
* Complete PCH support for ObjCPropertyImplDecl.Argyrios Kyrtzidis2010-08-092-4/+8
| | | | llvm-svn: 110570
* Revert the dump functions to send output to llvm::errs(), matching the LLVM ↵Argyrios Kyrtzidis2010-08-092-10/+14
| | | | | | | | convention; suggestion by Daniel. '-ast-print' / '-ast-dump' command line options still send output to llvm::outs(). llvm-svn: 110569
* Replace a parser assertion with a warning, suggestion by Doug.Argyrios Kyrtzidis2010-08-091-3/+8
| | | | llvm-svn: 110568
* Support ObjC implementation decls for PCH.Argyrios Kyrtzidis2010-08-093-9/+27
| | | | | | Strictly speaking, implementations don't go in headers but there's no law against it. llvm-svn: 110567
* Refactor into functions PCH reading/writing the CXXBaseOrMemberInitializers. ↵Argyrios Kyrtzidis2010-08-094-83/+98
| | | | | | No functionality change. llvm-svn: 110566
* Fix a few more typos. Amusingly, GCC made the same mistake around version 3.2.Chandler Carruth2010-08-081-4/+4
| | | | llvm-svn: 110546
* Fix some typos I made when adding alternate intrinsic names.Chandler Carruth2010-08-081-2/+2
| | | | llvm-svn: 110545
* Revert r110440, the fix for PR4897. Chris claims to have a better way.Douglas Gregor2010-08-082-50/+28
| | | | llvm-svn: 110544
* Fix a crash on template delete operators.Chandler Carruth2010-08-081-2/+8
| | | | llvm-svn: 110542
* Silence GCC warning about && and || without explicit grouping.Chandler Carruth2010-08-081-2/+2
| | | | llvm-svn: 110537
* Thread local variables aren't considered common linkage.Eric Christopher2010-08-081-1/+2
| | | | llvm-svn: 110530
* PR7800: both virtual and non-virtual bases must be marked as used for VTTs.Eli Friedman2010-08-071-2/+0
| | | | llvm-svn: 110526
* Make -funroll-loops turn on loop unrolling in the optimizer insteadEric Christopher2010-08-072-3/+8
| | | | | | of just ignoring it. llvm-svn: 110525
* Push location through the MacroUndefined PPCallback and use it to print ↵Benjamin Kramer2010-08-073-2/+17
| | | | | | #undefs in -dD mode. (PR7818) llvm-svn: 110523
* Integral-to-pointer conversions are not always null -> member pointerDouglas Gregor2010-08-071-2/+8
| | | | | | conversions. Fixes PR7443. llvm-svn: 110519
* Fix an Objective-C crasher, PR7839.Douglas Gregor2010-08-071-1/+2
| | | | llvm-svn: 110515
* Allow reference binding of a reference of Objective-C object type toDouglas Gregor2010-08-0710-18/+99
| | | | | | | | an lvalue of another, compatible Objective-C object type (e.g., a subclass). Introduce a new initialization sequence step kind to describe this binding, along with a new cast kind. Fixes PR7741. llvm-svn: 110513
* Inline a special case of EmitAggregateCopy into EmitNullInitializationJohn McCall2010-08-071-27/+41
| | | | | | | | | to avoid the awesome-but-wrong-in-this-case assertion in the canon EAC. Fixes PR7834. Also fix a subtle address-space bug in the memset path. llvm-svn: 110511
* Note that a CXXConstructExpr is zeroing when dumping it.John McCall2010-08-071-0/+2
| | | | llvm-svn: 110510
* Store inheritance paths after CastExprs instead of inside them.John McCall2010-08-0725-175/+363
| | | | | | | | | | | | | | | This takes some trickery since CastExpr has subclasses (and indeed, is abstract). Also, smoosh the CastKind into the bitfield from Expr. Drops two words of storage from Expr in the common case of expressions which don't need inheritance paths. Avoids a separate allocation and another word of overhead in cases needing inheritance paths. Also has the advantage of not leaking memory, since destructors for AST nodes are never run. llvm-svn: 110507
* Correct -ftrapv to trap on errors, instead of calling theChris Lattner2010-08-071-43/+10
| | | | | | | | | | | | | | | | __overflow_handler entrypoint that David Chisnall made up. Calling __overflow_handler is not part of the contract of -ftrapv provided by GCC, and should never have been checked in in the first place. According to: http://permalink.gmane.org/gmane.comp.compilers.clang.devel/8699 David is using this for some of arbitrary precision integer stuff or something, which is not an appropriate thing to implement on this. llvm-svn: 110490
* PR7837: For qualified id's, make sure the decl context is complete if notEli Friedman2010-08-061-20/+18
| | | | | | | dependent in ActOnIdExpression. (This issue only shows up with member operators because an operator is never a type.) llvm-svn: 110486
* Removed IdempotentOperationChecker from default analysis and returned back ↵Tom Care2010-08-066-3/+12
| | | | | | | | | to a flag (-analyzer-check-idempotent-operations) - Added IdempotentOperationChecker to experimental analyses for testing purposes - Updated test cases to explictly call the checker llvm-svn: 110482
* Fix 80 col. violations.Ted Kremenek2010-08-061-6/+14
| | | | llvm-svn: 110473
* Nest variable declaration into into 'if' condition, thus restricting the ↵Ted Kremenek2010-08-061-7/+3
| | | | | | scope of the variable and condensing the code. llvm-svn: 110472
* Use 'GenerateNode()' instead of 'GenerateSink()' when reporting a leak. A ↵Ted Kremenek2010-08-061-3/+3
| | | | | | leak is not a hard enough bug to stop analyzing a path. llvm-svn: 110471
* Initialize variable to work around warning; unfortunately, there isn't anyEli Friedman2010-08-061-3/+3
| | | | | | way to tell gcc "really, values outside the enum aren't valid". llvm-svn: 110450
* Finishing up block variable layout API by supporting Fariborz Jahanian2010-08-061-8/+10
| | | | | | | union type variables and their nesting inside other aggregate types. llvm-svn: 110448
* The pre-increment/pre-decrement grammar in C++ differs from that in C,Douglas Gregor2010-08-061-4/+8
| | | | | | | but we were parsing the C grammar. Handle the C++ grammar appropriately. Fixes PR7794. llvm-svn: 110445
* Remove some incorrect assertions when deduction template arguments inDouglas Gregor2010-08-061-2/+0
| | | | | | | | a template-argument-list. When template template parameters are involved, we won't already have checked the template-argument-list (it may not be known yet!). Fixes PR7807. llvm-svn: 110444
* Make sure that we diagnose attribute((overloadable)) functions withoutDouglas Gregor2010-08-061-19/+15
| | | | | | prototypes. Fixes PR7738. llvm-svn: 110443
* Define _INTEGRAL_MAX_BITS for the win32 and win64 targets, from Per Lindén!Douglas Gregor2010-08-061-0/+2
| | | | llvm-svn: 110442
* Template keyword should not be ignored building a QualifiedTemplateName.Abramo Bagnara2010-08-066-12/+23
| | | | llvm-svn: 110441
* Fix the #include search path when reading from stdin, from Jon Simons!Douglas Gregor2010-08-062-28/+50
| | | | | | Fixes PR4897. llvm-svn: 110440
* Diagnose the use of "inline" on block-scope function declarations inDouglas Gregor2010-08-061-0/+11
| | | | | | C++, from Andrea Nall! llvm-svn: 110439
* Introduce implicit conversions between AltiVec vectors and GCCDouglas Gregor2010-08-063-19/+54
| | | | | | vectors, from Anton Yartsev! llvm-svn: 110437
* Introduce a new token kind 'cxx_defaultarg_end' to mark the end of C++ ↵Argyrios Kyrtzidis2010-08-062-2/+14
| | | | | | | | | | | | | | | | default arguments that were part of lexed method declarations. This avoid interference with tokens coming after the point where the default arg tokens were 'injected', e.g. for typedef struct Inst { void m(int x=0); } *InstPtr; when parsing '0' the next token would be '*' and things would be messed up. llvm-svn: 110436
* Remove ElseScope which is also dead code now.Nick Lewycky2010-08-061-6/+0
| | | | llvm-svn: 110433
* Remove the DeclaredInCondition bit now that it's no longer used.Nick Lewycky2010-08-064-7/+0
| | | | llvm-svn: 110432
* If all nodes are sunk, bail out early. This make the later check for ↵Zhongxing Xu2010-08-061-1/+4
| | | | | | checkersEvaluated really meaningful. llvm-svn: 110430
* vdup_lane was missingNate Begeman2010-08-062-2/+11
| | | | | | <rdar://problem/8278732> llvm-svn: 110420
* Attempt to fix uninitialized value warning reported on cfe-commits.Eli Friedman2010-08-061-2/+1
| | | | llvm-svn: 110418
* Properly pop out of Objective-C method declarations when they are (ill-formedly)John McCall2010-08-061-1/+3
| | | | | | found within contexts other than the translation unit. llvm-svn: 110417
* Add an environment variable that makes libclang use chaining for PCH.Sebastian Redl2010-08-061-1/+3
| | | | llvm-svn: 110414
* Don't assert on a file stream if its state is not tracked. Fix pr7831.Zhongxing Xu2010-08-051-1/+4
| | | | llvm-svn: 110392
* When checking if a buffer access is valid, first make sure the buffer has a ↵Jordy Rose2010-08-051-11/+15
| | | | | | valid Loc. Fixes PR7830. llvm-svn: 110390
* Fix AVX 256-bit intrinsics headers by using the right cast type while ↵Bruno Cardoso Lopes2010-08-051-8/+8
| | | | | | dealing with logical ops llvm-svn: 110389
OpenPOWER on IntegriCloud