summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a typo pointed about by gabor.Chandler Carruth2010-01-201-1/+1
| | | | llvm-svn: 93997
* Move the MacroBuilder utilitiy to its own header. Update references.Chandler Carruth2010-01-204-24/+49
| | | | | | Comments and/or improvements to the documentation are welcome. llvm-svn: 93982
* Fix an invalid Twine use spotty by abbeyj, it isn't safe to use TwineDaniel Dunbar2010-01-201-1/+4
| | | | | | | temporaries (this is one reason I'm nervous about propagating their use beyond particularly performance critical places). llvm-svn: 93981
* Actually remove the include that r93974 made unnecessary.Chandler Carruth2010-01-201-1/+0
| | | | llvm-svn: 93975
* Fix a layering issue between Basic and FE by moving a utility class into Basic.Chandler Carruth2010-01-202-24/+24
| | | | | | | | This isn't entirely satisfactory, as it seems an implementation detail, and with nothing to do with TargetInfo. Suggestions on where to put this are welcome. llvm-svn: 93974
* Add a missing case for DeclContext printer.Zhongxing Xu2010-01-201-0/+5
| | | | llvm-svn: 93973
* Driver: Lift clang resource directory computation to the Driver object.Daniel Dunbar2010-01-203-9/+12
| | | | llvm-svn: 93971
* clang/Darwin: Update for rename of 10.4 static runtime library.Daniel Dunbar2010-01-201-1/+1
| | | | llvm-svn: 93970
* Also handle CXXConstructor, CXXDestructor and CXXConversion in CFGMike Stump2010-01-201-2/+4
| | | | | | printing. llvm-svn: 93968
* Use the llvm coding convention for indentation for switch.Mike Stump2010-01-209-148/+148
| | | | llvm-svn: 93966
* Patch to implement required warnings for unimplementedFariborz Jahanian2010-01-204-41/+103
| | | | | | properties imported frfom protocol. Fixes radar 7544809. llvm-svn: 93965
* Make UnresolvedSet.h standalone.John McCall2010-01-201-0/+2
| | | | llvm-svn: 93964
* Wire up the EH context for the catch clauses to the outer EH context. WIP.Mike Stump2010-01-201-9/+9
| | | | llvm-svn: 93963
* Add an exceptional edge from the try terminated block to the outer EHMike Stump2010-01-201-2/+16
| | | | | | | | context (try or the Exit block) when there isn't a catch (...). Improve CFG printing for catch (...). llvm-svn: 93962
* Attempt to improve CIndex Doxygen organization, although I can't actually ↵Douglas Gregor2010-01-201-9/+18
| | | | | | test this locally llvm-svn: 93961
* Give UnresolvedSet the ability to store access specifiers for each declaration.John McCall2010-01-2015-115/+449
| | | | | | | Change LookupResult to use UnresolvedSet. Also extract UnresolvedSet into its own header and make it templated over an inline capacity. llvm-svn: 93959
* Remove some #if 0'd code that's never going to get used.Douglas Gregor2010-01-201-61/+0
| | | | llvm-svn: 93957
* Improve CheckFallThrough analysis in the presense of the new C++ EHMike Stump2010-01-201-1/+10
| | | | | | support. WIP. llvm-svn: 93956
* Kill off clang_getDeclColumn, clang_getDeclExtent, clang_getDeclLine,Douglas Gregor2010-01-203-59/+0
| | | | | | | clang_getDeclSource, and clang_getDeclSourceFile; the cursor equivalents are the way of the future. llvm-svn: 93955
* Introduce a special cursor kind for the translation unit, to serve asDouglas Gregor2010-01-204-2/+38
| | | | | | | | | the root of the conceptual cursor hierarchy (just like we do with declarations). This will be used when we get to unify clang_loadTranslationUnit() and clang_loadDeclaration() into something more generally useful. llvm-svn: 93954
* CXCursor_UnexposedDecl to the first declaration kindDouglas Gregor2010-01-201-12/+12
| | | | llvm-svn: 93952
* add support for Fedora 10 x86_64, there really should be a better way to ↵Chris Lattner2010-01-191-0/+4
| | | | | | | | handle this. patch by Dmitry llvm-svn: 93948
* Kill CXCursor_ObjCSelectorRef, CXCursor_VarRef, CXCursor_FunctionRef,Douglas Gregor2010-01-193-54/+1
| | | | | | | and CXCursor_EnumConstantRef; they've been subsumed by expression references, which do a much nicer job. llvm-svn: 93947
* Extend the CIndex API with direct support for expressions andDouglas Gregor2010-01-199-210/+436
| | | | | | | | | | statements, moving some of the more unnatural kinds of references (VarRef, EnumConstantRef, etc.) over to the expressions. We can now poke at arbitrary expressions and statements with, e.g., clang_getCursor() and get back useful information (e.g., source ranges). llvm-svn: 93946
* Implement goto inside of blocks.Mike Stump2010-01-196-15/+28
| | | | llvm-svn: 93945
* Update and move around comments.Eric Christopher2010-01-191-1/+4
| | | | llvm-svn: 93942
* The type of a compound literal expression is not necessarily the same as theJohn McCall2010-01-195-8/+18
| | | | | | type which was syntactically written. Fixes PR 6080. llvm-svn: 93933
* Kill the unused and unnecessary CXCursor_MemberRef, twin to theDouglas Gregor2010-01-193-12/+6
| | | | | | now-dead CXCursor_ObjCIvarRef. llvm-svn: 93928
* Kill CXCursor_ObjCIvarRef. Such cursors could never be created, andDouglas Gregor2010-01-193-6/+0
| | | | | | have been marked for death for a while. llvm-svn: 93927
* Introduce the notion of an "unexposed" declaration into the CIndexDouglas Gregor2010-01-195-7/+46
| | | | | | | | API. This is a catch-all for any declaration known to Clang but not specifically part of the CIndex API. We'll use the same approach with expressions, statements, references, etc., as needed. llvm-svn: 93924
* Add CFG support for the start and end of scopes and infrastructure forMike Stump2010-01-192-20/+109
| | | | | | implicit destructor calls. WIP. llvm-svn: 93922
* Rewriteing of gnu extension __typeof in objective-c rewriter.Fariborz Jahanian2010-01-192-1/+33
| | | | | | Fixes radar 6358225. llvm-svn: 93917
* Rework the CXSourceLocation and CXSourceRange APIs. They are nowDouglas Gregor2010-01-194-41/+185
| | | | | | | | | | opaque data structures accessed through the new functions clang_getInstantiationLocation(), clang_getRangeStart(), and clang_getRangeEnd(). The new API permits later extensions to introduce new functions to allow CIndex clients to walk macro instantiations, if we ever care. llvm-svn: 93915
* Don't try to build/install/clean compiler-rt stuff if it isn't in the ↵Daniel Dunbar2010-01-191-2/+2
| | | | | | projects directory. llvm-svn: 93914
* Initial cut at integrating compiler-rt (on Darwin) w/ clang build.Daniel Dunbar2010-01-192-2/+101
| | | | | | | | | | | | | | | - compiler-rt should be checked out into $LLVM_SRC_ROOT/projects/compiler-rt. - On Darwin, this will automatically build the runtime libraries clang needs into $OBJROOT/lib/clang/<version>/darwin/... - The mechanism can easily support other platforms, and can eventually support multiple platforms once clang has some kind of configure process (for specifying the desired targets). - Feedback on the approach is welcome. llvm-svn: 93910
* Tighten code and rework indentation of some if() branches (for readability). ↵Ted Kremenek2010-01-191-16/+15
| | | | | | No functionality change. llvm-svn: 93904
* Remove extra space in uses of 'assert()'.Ted Kremenek2010-01-191-7/+7
| | | | llvm-svn: 93903
* Re-alphabetize cases in switch statement.Ted Kremenek2010-01-191-9/+9
| | | | llvm-svn: 93902
* Eliminate cursor kinds used to express definitions. Instead, provideDouglas Gregor2010-01-1911-94/+347
| | | | | | | | | | | | CIndex functions that (1) map from a reference or declaration to the corresponding definition, if available, and (2) determine whether a given declaration cursor is also a definition. This eliminates a lot of duplication in the cursor kinds, and maps more closely to the Clang ASTs. This is another API + ABI breaker with no deprecation. Yay, progress. llvm-svn: 93893
* objective-c test case for __attribute__((unused)) on method arguments.Fariborz Jahanian2010-01-191-0/+15
| | | | llvm-svn: 93887
* Issue diagnostics (instead of crashing in code gen) when usingFariborz Jahanian2010-01-192-9/+16
| | | | | | | property dot-syntax notation to use setter/getters in objective-c. Fixes radar 7553050. llvm-svn: 93883
* Avoid an instantiation of std::sort.Benjamin Kramer2010-01-191-14/+10
| | | | llvm-svn: 93882
* Teach Sema::ActOnDependentTemplateName that a dependent template nameDouglas Gregor2010-01-194-28/+37
| | | | | | | | in a member access expression referring into the current instantiation need not be resolved at template definition *if* the current instantiation has any dependent base classes. Fixes PR6081. llvm-svn: 93877
* Add test case.Zhongxing Xu2010-01-191-0/+26
| | | | llvm-svn: 93874
* Fix a serious bug: Tmp3 is the wrong destination set. We should create a newZhongxing Xu2010-01-192-6/+11
| | | | | | intermediate destination set Tmp4. llvm-svn: 93873
* Another test case for PR6062Douglas Gregor2010-01-191-0/+5
| | | | llvm-svn: 93872
* In a mem-initializer, a nested-name-specifier followed by anDouglas Gregor2010-01-192-8/+43
| | | | | | | | | identifier always names a type. In the case of a dependent nested-name-specifier, build a TypenameType to describe the dependent base type. I'd like to move more of this behavior up into the parser, but this fixes PR6062. llvm-svn: 93871
* When looking up enumerator names for redeclaration, use theDouglas Gregor2010-01-192-1/+13
| | | | | | | ForRedeclaration flag so that we don't look into base classes. Fixes PR6061. llvm-svn: 93862
* Update Xcode project.Anders Carlsson2010-01-191-8/+36
| | | | llvm-svn: 93861
* Add try/catch CFG support. Also improve throw CFG support. WIP.Mike Stump2010-01-191-10/+100
| | | | llvm-svn: 93840
OpenPOWER on IntegriCloud