summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Speculatively revert r110610 " Make ObjCInterfaceDecl redeclarable,Douglas Gregor2010-08-1120-274/+148
| | | | | | | | and create separate decl nodes for forward declarations and the definition," which appears to be causing significant Objective-C breakage. llvm-svn: 110803
* MemRegion can refer to ASTContext without external help.Zhongxing Xu2010-08-1118-85/+72
| | | | llvm-svn: 110784
* tests: Add a missing -Xclang.Daniel Dunbar2010-08-111-1/+1
| | | | llvm-svn: 110776
* ARM: Recognize single precision float register names.Daniel Dunbar2010-08-112-1/+25
| | | | | | | - We don't recognize double or NEON register names yet -- we don't have the infrastructure to generate the right clobbers for them. llvm-svn: 110775
* ARM: Swap which registers we consider real / aliases to match LLVM and llvm-gcc.Daniel Dunbar2010-08-112-6/+13
| | | | llvm-svn: 110774
* Improve our handling of user-defined conversions when computingDouglas Gregor2010-08-115-79/+150
| | | | | | | | | | | | | | | | | | | | | | implicit conversion sequences. In particular, model the "standard conversion" from a class to its own type (or a base type) directly as a standard conversion in the normal path *without* trying to determine if there is a valid copy constructor. This appears to match the intent of C++ [over.best.ics]p6 and more closely matches GCC and EDG. As part of this, model non-lvalue reference initialization via user-defined conversion in overloading the same way we handle it in InitializationSequence, separating the "general user-defined conversion" and "conversion to compatible class type" cases. The churn in the overload-call-copycon.cpp test case is because the test case was originally wrong; it assumed that we should do more checking for copy constructors that we actually should, which affected overload resolution. Fixes PR7055. Bootstrapped okay. llvm-svn: 110773
* Remove 256-bit cast built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-113-18/+9
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110771
* Make this test a little less dependent on exact optimizer results.John McCall2010-08-111-6/+6
| | | | llvm-svn: 110770
* Remove 256-bit unpack built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-113-12/+4
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110768
* Remove 256-bit shuffle built-ins and make the AVX intrinsic call llvm ↵Bruno Cardoso Lopes2010-08-113-15/+13
| | | | | | __builtin_shufflevector with the appropriate arguments llvm-svn: 110766
* Fix for pr7869, inline asm mult-alt constraints.John Thompson2010-08-112-5/+48
| | | | llvm-svn: 110764
* Fix a bug in @finally emission in both the fragile and non-fragile EH schemesJohn McCall2010-08-113-5/+77
| | | | | | | | | where we weren't accounting for the possibility that a @finally block might have internal cleanups and therefore might write to the cleanup destination slot. Fixes <rdar://problem/8293901>. llvm-svn: 110760
* Have GRCoreEngine record the blocks where analysis was aborted because we ↵Ted Kremenek2010-08-112-12/+22
| | | | | | visited a block too many times along a given path. This is to support the unreachable code analysis. llvm-svn: 110755
* Add test case for <rdar://problem/8288645>. While this is fixed in trunk, ↵Ted Kremenek2010-08-101-0/+8
| | | | | | | | we previously were getting the following assertion failure not too long ago: Assertion failed: (getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one.") llvm-svn: 110740
* Something's wrong with this test on other platforms. I'll probably need to ↵John Thompson2010-08-101-23/+0
| | | | | | simplify it later. For now revert. llvm-svn: 110738
* Fix test to not depend on objc.h header.Fariborz Jahanian2010-08-101-2/+0
| | | | llvm-svn: 110729
* SimplifyDevang Patel2010-08-101-2/+1
| | | | llvm-svn: 110716
* Test case for llvm r110712.Devang Patel2010-08-101-0/+8
| | | | llvm-svn: 110713
* tests: Avoid unnecessary redirection.Daniel Dunbar2010-08-101-2/+2
| | | | llvm-svn: 110709
* tests: Tests which include system headers must use the driver, not -cc1.Daniel Dunbar2010-08-101-3/+3
| | | | llvm-svn: 110708
* Slightly revised handling of mult-alt constraints, to avoid an assert, until ↵John Thompson2010-08-103-5/+48
| | | | | | we have the full fix. llvm-svn: 110706
* When initializing a static local, pop the guard-abort EH cleanup afterJohn McCall2010-08-102-1/+5
| | | | | | the variable is fully initialized. llvm-svn: 110704
* an objective-c++ test for -Wstrict-selector-matchFariborz Jahanian2010-08-101-0/+20
| | | | | | (radar 8127244). llvm-svn: 110702
* Do not use DIGlobalVariable to emit debugging information for enums.Devang Patel2010-08-102-0/+12
| | | | llvm-svn: 110697
* Fix a spurious warning when message sent to qualified-idFariborz Jahanian2010-08-102-2/+6
| | | | | | type receiver (pr7861). llvm-svn: 110696
* Turn on idempotent operations checker when using --analyze.Ted Kremenek2010-08-101-0/+1
| | | | llvm-svn: 110695
* Simplify code and add comments, in code that generate debug info for ↵Devang Patel2010-08-105-18/+15
| | | | | | constant integer globals, based on Chris's feedback. llvm-svn: 110694
* Driver/FreeBSD: Infer the right arch name in the presence of -m32,-m64, for theDaniel Dunbar2010-08-102-6/+32
| | | | | | | cases we care about. - This is eventually going to be unified outside the host specific code. llvm-svn: 110693
* Teach the libclang cursor visitor to walk into the type informationDouglas Gregor2010-08-102-1/+33
| | | | | | | | provided by __builtin_types_compatible_p and __builtin_va_arg expressions, now that Abramo has added proper type-source information to those expressions. llvm-svn: 110681
* Eliminate unnecessary uses of TemporaryBase in TreeTransform;Douglas Gregor2010-08-101-19/+10
| | | | | | | transforming TypeSourceInfos already gives us proper (and better) source-location information. llvm-svn: 110678
* Fixed redundant NNS loading.Abramo Bagnara2010-08-103-7/+10
| | | | llvm-svn: 110677
* Added TypeLocs to VAArgExpr node.Abramo Bagnara2010-08-107-18/+37
| | | | llvm-svn: 110666
* Added TypeLocs to TypesCompatibleExpr node.Abramo Bagnara2010-08-107-30/+50
| | | | llvm-svn: 110663
* Even if a constant's evaluated value is used, emit debug info for the ↵Devang Patel2010-08-106-1/+37
| | | | | | constant variable. llvm-svn: 110660
* Fix redefinition of typedefs of fixable variably-modified array types; shouldEli Friedman2010-08-102-9/+16
| | | | | | fix an issue compiling <windows.h>. llvm-svn: 110651
* Make replicate intrinsics use shufflevector instead of dup builtins, also ↵Bruno Cardoso Lopes2010-08-103-9/+3
| | | | | | remove the dup builtins llvm-svn: 110646
* Use i32 instead of i8 for AVX dot product intrinsicBruno Cardoso Lopes2010-08-101-1/+1
| | | | llvm-svn: 110644
* There is no need to pubish file static variable's name. Do not rely on this ↵Devang Patel2010-08-101-1/+1
| | | | | | code gen bug to check whether debug info is generated for such variables or not. llvm-svn: 110640
* Run the assembler instead of gcc on Linux.Rafael Espindola2010-08-105-0/+76
| | | | llvm-svn: 110635
* Consider the last argument of vblend builtin to be i32 instead of i8Bruno Cardoso Lopes2010-08-101-2/+2
| | | | llvm-svn: 110629
* Implements gcc's -Wstrict-selector-match.Fariborz Jahanian2010-08-096-21/+126
| | | | | | (radar 8127244). llvm-svn: 110622
* When attempting to recover from a failed unqualified name lookup, makeDouglas Gregor2010-08-092-0/+8
| | | | | | sure to clear out the LookupResult structure after looking into each class. llvm-svn: 110615
* Instead of having a specific CXTranslationUnit_* option flag forDouglas Gregor2010-08-096-25/+32
| | | | | | | | "editing" mode, introduce a separate function clang_defaultEditingTranslationUnitOptions() that retrieves the set of options. No functionality change. llvm-svn: 110613
* - Make ObjCInterfaceDecl redeclarable, and create separate decl nodes for ↵Sebastian Redl2010-08-0920-148/+274
| | | | | | | | | | forward declarations and the definition. - Eagerly create ObjCInterfaceTypes for declarations. - The two above changes lead to a 0.5% increase in memory use and no speed regression when parsing Cocoa.h. On the other hand, now chained PCH works when there's a forward declaration in one PCH and the interface definition in another. - Add HandleInterestingDecl to ASTConsumer. PCHReader passes the "interesting" decls it finds to this function instead of HandleTopLevelDecl. The default implementation forwards to HandleTopLevelDecl, but ASTUnit's handler for example ignores them. This fixes a potential crash when lazy loading of PCH data would cause ASTUnit's "top level" declaration collection to change while being iterated. llvm-svn: 110610
* Added vecreturn attribute parsing.John Thompson2010-08-096-0/+84
| | | | llvm-svn: 110609
* Change warning about incomplete parsing of C++ default arg to error and ↵Argyrios Kyrtzidis2010-08-093-8/+8
| | | | | | provide a test case; thanks Doug! llvm-svn: 110603
* Fix mixed declarations and code warning.Daniel Dunbar2010-08-091-1/+1
| | | | llvm-svn: 110602
* Minor libclang tweaksDouglas Gregor2010-08-092-2/+5
| | | | llvm-svn: 110599
* Use precompiled preambles for in-process code completion.Douglas Gregor2010-08-099-39/+188
| | | | llvm-svn: 110596
* Allow EvalBinOpNN to handle expressions of the form $a+$b if $b can be ↵Jordy Rose2010-08-092-4/+37
| | | | | | reduced to a constant. llvm-svn: 110592
OpenPOWER on IntegriCloud