summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Provide fixit for static use of objective-c typeFariborz Jahanian2011-07-262-9/+33
| | | | | | | in few more places and in each instance, fix up the type to the expected type. // rdar://9603056 llvm-svn: 136103
* Eliminate a bunch of temporary strings.Benjamin Kramer2011-07-262-5/+5
| | | | llvm-svn: 136092
* Add new libclang API, clang_codeCompleteGetObjCSelector(), whichDouglas Gregor2011-07-268-7/+82
| | | | | | | provides the partial Objective-C selector used in a code completion. From Connor Wakamo! llvm-svn: 136084
* When we decide not to rebuild an instantiated C++ 'new' expressionDouglas Gregor2011-07-262-0/+30
| | | | | | | | that allocates an array of objects with a non-trivial destructor, be sure to mark the destructor is "used". Fixes PR10480 / <rdar://problem/9834317>. llvm-svn: 136081
* Objective-C++ ARC: When performing template argument deduction for aDouglas Gregor2011-07-262-0/+25
| | | | | | | lifetime-qualified template parameter, ensure that the deduced template argument is a lifetime type. Fixes <rdar://problem/9828157>. llvm-svn: 136078
* After further discussion it has been determined that alignof should report Chad Rosier2011-07-268-56/+11
| | | | | | the preferred alignment. Thus, revert r135934, r135935, and r135940. llvm-svn: 136062
* Cleanup the stray comments and variables I could dig out of Sema toChandler Carruth2011-07-263-13/+13
| | | | | | refer to 'expansion' instead of 'instantiation'. llvm-svn: 136060
* Fix a stray instantiation comment in Parse.Chandler Carruth2011-07-261-3/+3
| | | | llvm-svn: 136059
* Clean up as many of the comments in Basic I can find to talk in terms ofChandler Carruth2011-07-265-64/+61
| | | | | | 'expansion' rather than 'instantiation' for macro source locations. llvm-svn: 136058
* Migrate 'Instantiation' data and API bits of SLocEntry to 'Expansion'Chandler Carruth2011-07-264-28/+25
| | | | | | | | etc. With this I think essentially all of the SourceManager APIs are converted. Comments and random other bits of cleanup should be all thats left. llvm-svn: 136057
* Convert InstantiationInfo and much of the related code to ExpansionInfoChandler Carruth2011-07-264-77/+75
| | | | | | | | | and various other 'expansion' based terms. I've tried to reformat where appropriate and catch as many references in comments but I'm going to do several more passes. Also I've tried to expand parameter names to be more clear where appropriate. llvm-svn: 136056
* Rename create(MacroArg)InstantiationLoc to create(MacroArg)ExpansionLoc.Chandler Carruth2011-07-267-72/+72
| | | | llvm-svn: 136054
* Rename SourceManager (and InstantiationInfo) isMacroArgInstantiation APIChandler Carruth2011-07-263-12/+12
| | | | | | to isMacroArgExpansion. llvm-svn: 136053
* Expand array bounds checking to work in the presence of unary & and *,Kaelyn Uhrain2011-07-266-28/+134
| | | | | | | | | and to work with pointer arithmetic in addition to array indexing. The new pointer arithmetic porition of the array bounds checking can be turned on by -Warray-bounds-pointer-arithmetic (and is off by default). llvm-svn: 136046
* Assembler really doesn't need to create TargetMachine anymore.Evan Cheng2011-07-261-24/+6
| | | | llvm-svn: 136045
* Test commitKaelyn Uhrain2011-07-261-1/+0
| | | | llvm-svn: 136044
* test/CodeGen/2003-08-18-SigSetJmp.c: XFAIL: mingw, too!NAKAMURA Takumi2011-07-261-1/+1
| | | | llvm-svn: 136043
* win32 doesn't have sigsetjmp, just xfail this test there.Eric Christopher2011-07-261-1/+1
| | | | llvm-svn: 136041
* Rework this slightly to work for optimized compilers and remove theEric Christopher2011-07-261-2/+2
| | | | | | optimization from the test. llvm-svn: 136039
* These tests use standard headers and so need ms extensions with MSVC headers.Eric Christopher2011-07-262-15/+15
| | | | | | Use the driver instead of just clang -cc1. llvm-svn: 136037
* Remove this test, it's more properly an optimizer test.Eric Christopher2011-07-261-23/+0
| | | | llvm-svn: 136036
* Migrate and FileCheck-ize some of:Eric Christopher2011-07-2627-0/+585
| | | | | | | | 2003-09-18-BitfieldTests.c 2007-04-11-PR1321.c 2003-11-13-TypeSafety.c 2003-08-29-StructLayoutBug.c 2010-05-14-Optimized-VarType.c 2003-10-06-NegateExprType.c 2007-06-05-NoInlineAttribute.c 2011-03-31-ArrayRefFolding.c 2010-07-14-ref-off-end.c Atomics-no64bit.c 2007-05-11-str-const.c 2004-11-27-InvalidConstantExpr.c 2007-04-05-UnPackedStruct.c 2004-03-15-SimpleIndirectGoto.c 2004-01-08-ExternInlineRedefine.c sret2.c 2007-02-07-AddrLabel.c 2002-09-19-StarInLabel.c 2003-11-16-StaticArrayInit.c 2003-08-18-SigSetJmp.c 2007-04-24-VolatileStructCopy.c 2002-07-29-Casts.c 2005-06-15-ExpandGotoInternalProblem.c 2007-09-17-WeakRef.c 2007-04-24-str-const.c 2003-08-30-LargeIntegerBitfieldMember.c inline-asm-mrv.c from llvm/test/FrontendC. llvm-svn: 136035
* Migrate over 2009-04-22-UnknownSize.c, 2009-07-17-VoidParameter.c,Eric Christopher2011-07-264-0/+46
| | | | | | | 2009-03-09-WeakDeclarations-1.c, and 2010-05-31-palignr.c from llvm/test/FrontendC. llvm-svn: 136033
* Rename createCodeEmitter to createMCCodeEmitter; createObjectStreamer to ↵Evan Cheng2011-07-261-6/+6
| | | | | | createMCObjectStreamer. llvm-svn: 136032
* Rename createAsmParser to createMCAsmParser.Evan Cheng2011-07-261-3/+4
| | | | llvm-svn: 136029
* Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to ↵Evan Cheng2011-07-251-7/+6
| | | | | | createMCAsmBackend. llvm-svn: 136011
* Fix the MSVC build. 2 problems:Francois Pichet2011-07-252-41/+43
| | | | | | | - buildPieces was return a C++ object from inside an extern "C". (MSVC didn't like that) - clang_getCursorReferenceNameRange was missing a CINDEX_LINKAGE causing a link error. llvm-svn: 135983
* objective-c: Provide a 'fixit' when class was usedFariborz Jahanian2011-07-252-1/+20
| | | | | | to declare a static object. // rdar://9603056 llvm-svn: 135970
* Rename getInstantiationLineNumber to getExpansionLineNumber in bothChandler Carruth2011-07-2517-39/+37
| | | | | | SourceManager and FullSourceLoc. llvm-svn: 135969
* Repair some indentation I missed in my previous commit.Chandler Carruth2011-07-251-1/+1
| | | | llvm-svn: 135967
* Rename getInstantiationColumnNumber to getExpansionColumnNumber in bothChandler Carruth2011-07-2512-20/+20
| | | | | | SourceManager and FullSourceLoc. llvm-svn: 135965
* Assembler doesn't need to initialize TargetMachine's anymore.Evan Cheng2011-07-251-2/+0
| | | | llvm-svn: 135964
* Rename getDecomposedInstantiationLoc to getDecomposedExpansionLoc.Chandler Carruth2011-07-257-22/+21
| | | | llvm-svn: 135962
* getInstantiationLocSlowCase -> getExpansionLocSlowCaseChandler Carruth2011-07-252-4/+4
| | | | llvm-svn: 135961
* Rename SourceManager::getImmediateInstantiationRange toChandler Carruth2011-07-254-11/+11
| | | | | | getImmediateExpansionRange. llvm-svn: 135960
* Refactor of how modules are handled in ASTReader to remove explicit uses of ↵Jonathan D. Turner2011-07-252-40/+89
| | | | | | a chain of AST files, instead redirect calls through a module manager. This should help move toward a DAG and the potential of loading multiple, unrelated PCH files. It's still early in development. llvm-svn: 135957
* Allow target to specify about using minimum alignment vs preferred. Takes ↵Chad Rosier2011-07-256-7/+39
| | | | | | | | | care of FIXME: Override "preferred align" for double and long long for ARM apcs-gnu ABI. Also part of rdar://9802874 llvm-svn: 135940
* Pick up expected diagnostics not only in the main file but also in the file ↵Axel Naumann2011-07-252-9/+22
| | | | | | | | | where the first diagnostic occurred. Useful if the main file is not relevant (like with cling). By Vassil Vassilev. llvm-svn: 135936
* Fix r135934. Rename was intended, but without additional tests for double.Chad Rosier2011-07-251-13/+1
| | | | llvm-svn: 135935
* Rename an alignment test to be more precise and add another test for the defaultChad Rosier2011-07-253-4/+29
| | | | | | ABI. llvm-svn: 135934
* Update C++0x status for explicit override controls and explicitDouglas Gregor2011-07-251-14/+14
| | | | | | conversion operators, from Jonathan Sauer. llvm-svn: 135932
* http://llvm.org/bugs/show_bug.cgi?id=10472Howard Hinnant2011-07-251-4/+3
| | | | llvm-svn: 135927
* Added clang_getCursorReferenceNameRange to libclang to to retrieve parts ofDouglas Gregor2011-07-2511-228/+439
| | | | | | a cursor reference, from Erik Verbruggen! llvm-svn: 135920
* Rename SourceManager::getInstantiationRange to getExpansionRange.Chandler Carruth2011-07-259-14/+14
| | | | llvm-svn: 135915
* Mechanically rename SourceManager::getInstantiationLoc andChandler Carruth2011-07-2524-67/+67
| | | | | | | | FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part of the API and documentation update from 'instantiation' as the term for macros to 'expansion'. llvm-svn: 135914
* Shorten some expressions by using ArrayRef::slice().Frits van Bommel2011-07-251-6/+3
| | | | llvm-svn: 135910
* www/get_started.html: Fix a phrase, "in the *build* directory* in the ↵NAKAMURA Takumi2011-07-251-1/+1
| | | | | | instructions of Visual Studio. Thanks to Andreas Bittel to point it out. llvm-svn: 135907
* add link to 2010 dev mtgChris Lattner2011-07-241-2/+3
| | | | llvm-svn: 135892
* objc: clang should warn if redeclaration of methodsFariborz Jahanian2011-07-246-21/+182
| | | | | | | | | declared in protocol in the class qualified by the protocol have type conflicts. To reduce amount of noise, this is done when class is implemented. // rdar://9352731 llvm-svn: 135890
* lib/AST/CMakeLists.txt: Update LLVM_USED_LIBS, not to miss symbols with ↵NAKAMURA Takumi2011-07-231-1/+1
| | | | | | building shared lib. Thanks to Ryuta Suzuki. llvm-svn: 135864
OpenPOWER on IntegriCloud