summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove warning on future change in ivar lookup ruleFariborz Jahanian2011-02-211-14/+0
| | | | | | | when doing the property default synthesis. // rdar://9027673. llvm-svn: 126128
* Reorganize subelement initialization checking, no functionality change.John McCall2011-02-211-70/+82
| | | | llvm-svn: 126116
* Small optimization: avoid redundant checks of whether a type is an arrayJohn McCall2011-02-211-21/+25
| | | | | | when checking an initialization. llvm-svn: 126115
* Pseudo-revirtualize CallExpr::getSourceRange by making it follow theJohn McCall2011-02-212-7/+16
| | | | | | | | logic from CXXMemberCallExpr and by making it check for CXXOperatorCallExpr in order to defer. This is not really an awesome solution, but I don't have a better idea. llvm-svn: 126114
* Bind references to opaque r-values correctly. Add a few test casesJohn McCall2011-02-211-0/+4
| | | | | | for ?: on record types. llvm-svn: 126113
* Clean up the tests for warning about unused function results given theChandler Carruth2011-02-211-0/+2
| | | | | | | | appropriate attribute. Add a bit more testing that finds a pretty bad regression (since ~forever) in this warning. Fix it with a nice 2 line change. =] llvm-svn: 126098
* Put targets on folders, if the IDE supports the feature.Oscar Fuentes2011-02-201-0/+1
| | | | | | Requires CMake 2.8.3 or newer. llvm-svn: 126094
* New function for tablegenning: clang_tablegen.Oscar Fuentes2011-02-202-8/+6
| | | | llvm-svn: 126093
* Correct name of dependent target.Oscar Fuentes2011-02-201-1/+1
| | | | | | | CMake complained about this while generating VS project files but was okay with it while generating makefiles on Linux. llvm-svn: 126090
* Remove unused function.Benjamin Kramer2011-02-201-10/+0
| | | | llvm-svn: 126084
* Turn on __has_feature(cxx_auto_type). The feature is now fully implemented.Richard Smith2011-02-201-1/+1
| | | | llvm-svn: 126078
* Remove a dead variable.Daniel Dunbar2011-02-201-1/+0
| | | | llvm-svn: 126073
* Implement the C++0x deduced 'auto' feature.Richard Smith2011-02-2026-159/+567
| | | | | | This fixes PR 8738, 9060 and 9132. llvm-svn: 126069
* Expand use of CharUnits in LayoutField(). No change in functionalityKen Dyck2011-02-201-29/+34
| | | | | | intended. llvm-svn: 126066
* Add const qualifier to getTypeInfoInChars().Ken Dyck2011-02-201-2/+2
| | | | llvm-svn: 126064
* Test commit.Richard Smith2011-02-201-1/+0
| | | | llvm-svn: 126063
* Add a LangOptions::areExceptionsEnabled and start using it.Anders Carlsson2011-02-206-10/+9
| | | | llvm-svn: 126062
* Add a new ObjCExceptions member variable to LangOptions. This controls ↵Anders Carlsson2011-02-195-2/+18
| | | | | | whether Objective-C exceptions are enabled or not (they are by default). llvm-svn: 126061
* Re-instate r125819 and r125820 with no functionality changePeter Collingbourne2011-02-196-33/+64
| | | | llvm-svn: 126060
* Fix PR9253, allowing attribute(aligned) to reduce the alignment ofChris Lattner2011-02-191-1/+7
| | | | | | a typedef. llvm-svn: 126059
* Don't produce "comparison is always (true|false)" warnings when theDouglas Gregor2011-02-191-1/+5
| | | | | | comparison itself is a constant expression. Fixes PR7536. llvm-svn: 126057
* implement a tiny amount of codegen support for gnu array range Chris Lattner2011-02-191-2/+7
| | | | | | | | designators: allowing codegen when the element initializer is a constant or something else without a side effect. This unblocks enough to let process.c in the linux kernel build, PR9257. llvm-svn: 126056
* In addition to in-class member functions marked with the "used"Douglas Gregor2011-02-191-1/+2
| | | | | | | attribute, we also care about those with the "constructor" attribute. Fixes PR6521. llvm-svn: 126055
* There's no need to return early if we encounter a try/throw and exceptions ↵Anders Carlsson2011-02-192-2/+2
| | | | | | are disabled. llvm-svn: 126053
* Revert 125820 and 125819 to fix PR9266.Rafael Espindola2011-02-196-64/+33
| | | | llvm-svn: 126050
* Fix some add_dependencies.Oscar Fuentes2011-02-192-4/+16
| | | | | | The syntax is (add_dependencies target-name depend-target1 ...). llvm-svn: 126049
* Handle the resolution of a reference to a function template (whichDouglas Gregor2011-02-195-248/+466
| | | | | | | | includes explicitly-specified template arguments) to a function template specialization in cases where no deduction is performed or deduction fails. Patch by Faisal Vali, fixes PR7505! llvm-svn: 126048
* Disallow try/catch/throw when exceptions are disabled.Anders Carlsson2011-02-192-0/+6
| | | | llvm-svn: 126039
* The member classes of a current instantiation aren't necessarily aDouglas Gregor2011-02-191-8/+21
| | | | | | | | | | | current instantiation, even though we have a RecordDecl describing them. Fixes PR9255. Amusingly, I've had this patch sitting around for a month or two because it was "obviously" wrong, but hadn't gotten around to writing a test case to submit the fix :) llvm-svn: 126038
* Teach the virtual-functions-without-virtual-destructor warning to onlyDouglas Gregor2011-02-191-1/+1
| | | | | | | warn about polymorphic classes (which have virtual functions) rather than dynamic classes (which are polymorphic or have virtual bases). llvm-svn: 126036
* Remove the Fix-It for "main must return 'int'", which is not alwaysDouglas Gregor2011-02-191-8/+1
| | | | | | correct and is not worth fixing. Fixes PR8396. llvm-svn: 126035
* Expand use of CharUnits for alignments further. No change in functionalityKen Dyck2011-02-191-30/+30
| | | | | | intended. llvm-svn: 126034
* Revert all of my commits that devirtualized the Decl hierarchy, whichDouglas Gregor2011-02-194-219/+58
| | | | | | | | lead to a serious slowdown (4%) on parsing of Cocoa.h. This memory optimization should be revisited later, when we have time to look at the generated code. llvm-svn: 126033
* [analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase ↵Argyrios Kyrtzidis2011-02-191-7/+4
| | | | | | without crashing; enable it for C++. llvm-svn: 126026
* [analyzer] Fix crash when analyzing C++ code.Argyrios Kyrtzidis2011-02-192-2/+2
| | | | llvm-svn: 126025
* Driver/Darwin: Support -Wl, with -Xarch_. This doesn't work naturally because ofDaniel Dunbar2011-02-192-0/+19
| | | | | | the special way we model "linker input" arguments. llvm-svn: 126023
* Use PointerUnion::getAddrOf instead of messing with PointerUnion & ↵Argyrios Kyrtzidis2011-02-191-3/+3
| | | | | | reinterpret_cast. llvm-svn: 126021
* Change 'StoreRef' back to 'Store' in GRState, shrinking the size of GRState ↵Ted Kremenek2011-02-192-4/+38
| | | | | | back by one pointer. llvm-svn: 126020
* Fix a -Wuninitialized warning; it's actually a false positive,John McCall2011-02-191-2/+10
| | | | | | | | | but it's not reasonable for the diagnostic to figure that out. Pointed out by Benjamin Kramer. Also clarify the logic here. llvm-svn: 126017
* Warn about code that uses variables and functions with internal linkageJohn McCall2011-02-194-10/+95
| | | | | | | | | | | | | | without defining them. This should be an error, but I'm paranoid about "uses" that end up not actually requiring a definition. I'll revisit later. Also, teach IR generation to not set internal linkage on variable declarations, just for safety's sake. Doing so produces an invalid module if the variable is not ultimately defined. Also, fix several places in the test suite where we were using internal functions without definitions. llvm-svn: 126016
* [analyzer] Fix crash when analyzing C++ code.Argyrios Kyrtzidis2011-02-191-1/+1
| | | | llvm-svn: 126013
* Add 'StoreRef' smart pointer to allow more fine-grain memory lifetime ↵Ted Kremenek2011-02-195-228/+258
| | | | | | | | | | | | control of Store objects. This yields a minor memory reduction (for larger functions) on Sqlite at the cost of slightly higher memory usage on some functions because of the increased size of GRState (which can be optimized). I expect the real memory savings from this enhancement will come when we aggressively canabilize more of the ExplodedGraph. llvm-svn: 126012
* [analyzer] Fix crash when analyzing C++ code.Argyrios Kyrtzidis2011-02-191-3/+1
| | | | llvm-svn: 126007
* Improve bool and char integral template argument printing inChandler Carruth2011-02-191-1/+34
| | | | | | | | | diagnostics, resolving PR9227. Patch originally by Mihai Rusu and Stephen Hines with some minimal style tweaks from me. llvm-svn: 125999
* Fix a missed case in the NULL operand to conditional operatorChandler Carruth2011-02-191-0/+4
| | | | | | | | diagnostics. Patch by Stephen Hines. llvm-svn: 125998
* Fix PR8767, improve diagnostic wording when allocating an object of anChandler Carruth2011-02-181-1/+1
| | | | | | | | abstract class type. Patch by Stephen Hines, with a wording tweak from Doug applied by me. llvm-svn: 125996
* Initial steps to improve diagnostics when there is a NULL andChandler Carruth2011-02-183-17/+79
| | | | | | | | a non-pointer on the two sides of a conditional expression. Patch by Stephen Hines and Mihai Rusu. llvm-svn: 125995
* When code-completing a case statement for a switch on a value ofDouglas Gregor2011-02-183-5/+8
| | | | | | | enumeration type, prioritize the enumeration constants and don't provide completions for any other expressions. Fixes <rdar://problem/7283668>. llvm-svn: 125991
* Start using enums from DIBuilder.Devang Patel2011-02-181-9/+9
| | | | llvm-svn: 125990
* If -fno-builtin is passed, tell TargetLibraryInfo toChris Lattner2011-02-181-2/+9
| | | | | | turn off all builtin optimizations. llvm-svn: 125979
OpenPOWER on IntegriCloud