summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* stringref'ize a bunch of filename handling logic. MuchChris Lattner2010-01-109-108/+86
| | | | | | nicer than passing around two const char*'s. llvm-svn: 93094
* try to make this more stable?Chris Lattner2010-01-101-1/+1
| | | | llvm-svn: 93090
* Fix PR5982, a refacto in checking for '=' in a -D argument.Daniel Dunbar2010-01-102-8/+9
| | | | llvm-svn: 93088
* Fix a FIXME.Daniel Dunbar2010-01-101-2/+2
| | | | llvm-svn: 93087
* Darwin/ld: Don't pass '-weak_reference_mismatches non-weak' whenDaniel Dunbar2010-01-101-6/+0
| | | | | | -weak_reference_mismatches is not present, it is the default. llvm-svn: 93086
* add comment to test.Chris Lattner2010-01-101-1/+3
| | | | llvm-svn: 93085
* clarify comment.Chris Lattner2010-01-101-2/+2
| | | | llvm-svn: 93084
* implement rdar://7520940: published framework headers shouldChris Lattner2010-01-108-4/+33
| | | | | | | import other headers within the same framework with the full framework path, not with a relative include. llvm-svn: 93083
* Fix overzealous assertion in GRExprEngine::VisitLValue(). ATed Kremenek2010-01-092-7/+51
| | | | | | | | | CallExpr/ObjCMessageExpr can be visited in an "lvalue" context if it returns a struct temporary. Currently the analyzer doesn't reason about struct temporary returned by function calls, but we shouldn't crash here either. llvm-svn: 93081
* implement -ftabstop=width, patch by Christian AdåkerChris Lattner2010-01-096-2/+20
| | | | llvm-svn: 93078
* revert 91891, a workaround for PR5514.Chris Lattner2010-01-091-2/+1
| | | | llvm-svn: 93077
* implement codegen support for preinc as an lvalue, PR5514.Chris Lattner2010-01-092-2/+14
| | | | llvm-svn: 93076
* refactor pre/postinc logic into CGF and require the caller to pass in theChris Lattner2010-01-094-129/+139
| | | | | | lvalue to poke, no functionality change. llvm-svn: 93075
* revert r92749, which is just dead code.Chris Lattner2010-01-091-10/+0
| | | | llvm-svn: 93074
* make missing prototypes warn by default in c99 mode like GCC does,Chris Lattner2010-01-091-1/+1
| | | | | | rdar://7083878 llvm-svn: 93073
* add a bunch of missing prototypes to testsChris Lattner2010-01-0924-11/+52
| | | | llvm-svn: 93072
* Fix broken diagnostic when returning the address of a stack-allocated array.Ted Kremenek2010-01-092-3/+18
| | | | llvm-svn: 93071
* Simplify with StringSwitch.Benjamin Kramer2010-01-091-28/+12
| | | | llvm-svn: 93064
* 2010 is here.Chris Lattner2010-01-091-1/+1
| | | | llvm-svn: 93063
* Hopefully unbreak build with g++ >= 4.3.Benjamin Kramer2010-01-091-0/+1
| | | | llvm-svn: 93060
* Use MacroBuilder for TargetDefines instead of std::vector.Benjamin Kramer2010-01-093-237/+220
| | | | llvm-svn: 93058
* Move MacroBuilder into Frontend/Utils.h and clean it up a bit.Benjamin Kramer2010-01-092-131/+113
| | | | llvm-svn: 93057
* Rework InitPreprocessor to use a MacroBuilder class instead of pushing aroundBenjamin Kramer2010-01-091-248/+208
| | | | | | | | | | | | std::vectors. - MacroBuilder wraps a raw_ostream so it can easily write to any buffer supported by raw_ostream. - MacroBuilder's method take Twines for easy string concatenation (this was done with sprintf and temporary buffers before). - Targets still use std::vector as they don't have access to the builder. llvm-svn: 93051
* Switch UndefineBuiltinMacro() over to using StringRefKovarththanan Rajaratnam2010-01-091-2/+2
| | | | llvm-svn: 93049
* Switch DefineBuiltinMacro() over to using StringRefKovarththanan Rajaratnam2010-01-091-8/+12
| | | | llvm-svn: 93048
* When binding an rvalue to a reference, create a temporary object. Use Zhongxing Xu2010-01-096-13/+57
| | | | | | | | CXXObjectRegion to represent it. In Environment, lookup a literal expression before make up a value for it. llvm-svn: 93047
* improve support for dragonfly, patch by Sascha Wildner!Chris Lattner2010-01-092-3/+5
| | | | llvm-svn: 93044
* Fix indentation.Mike Stump2010-01-081-1/+1
| | | | llvm-svn: 93023
* Add in final overrider logic.Mike Stump2010-01-084-14/+72
| | | | llvm-svn: 93022
* Fix handling in GRExprEngine of 'default' branch in switch statementsTed Kremenek2010-01-082-5/+49
| | | | | | | | | when the default case is winnowed down to be infeasible. When all cases were ruled out (and the analysis state for the default case would be infeasible) we would still consider the default case possible. This fixes PR 5969. llvm-svn: 93017
* Organize testcase into namespaces.John McCall2010-01-081-46/+45
| | | | llvm-svn: 93015
* For now, add back clang_getDeclSource().Ted Kremenek2010-01-083-0/+9
| | | | llvm-svn: 93003
* Change the printing of OR_Deleted overload results to print all the candidates,John McCall2010-01-088-59/+114
| | | | | | | | | | | | | | | not just the viable ones. This is reasonable because the most common use of deleted functions is to exclude some implicit conversion during calls; users therefore will want to figure out why some other options were excluded. Started sorting overload results. Right now it just sorts by location in the translation unit (after putting viable functions first), but we can do better than that. Changed bool OnlyViable parameter to PrintOverloadCandidates to an enum for better self-documentation. llvm-svn: 92990
* Use -fno-math-errno by default, and remove the IsMathErrnoDefaultDan Gohman2010-01-0810-32/+17
| | | | | | targethook, which is no longer being used. This fixes PR5971. llvm-svn: 92987
* clang ObjC rewriter: generated code used in "for (x in y)" loop uses Fariborz Jahanian2010-01-082-2/+13
| | | | | | incorrect cast, causing compile error (fixes radar 7342867). llvm-svn: 92986
* Reorganize PrintOverloadCandidates. No functionality change.John McCall2010-01-081-113/+144
| | | | llvm-svn: 92979
* Fix for PR5967: Make const-marking for LLVM globals correct for cases requiringEli Friedman2010-01-088-25/+71
| | | | | | | run-time initialization, and emit run-time initializers aggresively to avoid ordering issues with deferred globals. llvm-svn: 92976
* Improve the fix-its for -Wparentheses to ensure that the fix-itDouglas Gregor2010-01-084-23/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | suggestions follow recovery. Additionally, add a note to these diagnostics which suggests a fix-it for changing the behavior to what the user probably meant. Examples: t.cpp:2:9: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] if (i & j == k) { ^~~~~~~~ ( ) t.cpp:2:9: note: place parentheses around the & expression to evaluate it first if (i & j == k) { ^ ( ) t.cpp:14:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (i = f()) { ~~^~~~~ ( ) t.cpp:14:9: note: use '==' to turn this assignment into an equality comparison if (i = f()) { ^ == llvm-svn: 92975
* Export a public symbol for classes with the GNU runtime. David Chisnall2010-01-081-5/+16
| | | | llvm-svn: 92973
* More crashtracer enhancements to CIndex. When "popping" a crashtracer stringTed Kremenek2010-01-071-9/+15
| | | | | | restore to the one most recently created. llvm-svn: 92959
* Add an "implicit" bit to CXXThisExpr, so that we can trackDouglas Gregor2010-01-075-13/+32
| | | | | | | implicitness without losing track of the (logical or actual) location where "this" would occur in the source. llvm-svn: 92958
* Fixes a bug where we were rewriting two definitions ofFariborz Jahanian2010-01-071-1/+2
| | | | | | _objc_method (part of radar 7490408). llvm-svn: 92957
* Add checker for type infos.Mike Stump2010-01-071-0/+20
| | | | llvm-svn: 92956
* Tidy up crashtracer logic in CIndex.Ted Kremenek2010-01-071-38/+72
| | | | llvm-svn: 92955
* Add checked for VTTs.Mike Stump2010-01-071-0/+20
| | | | llvm-svn: 92954
* Detailed vtable checker.Mike Stump2010-01-072-1/+19
| | | | llvm-svn: 92953
* Fixes a bug in my last patch (related to radar 7490331).Fariborz Jahanian2010-01-071-1/+1
| | | | llvm-svn: 92952
* 1/2 off all structs should not have any virtual functions.Mike Stump2010-01-071-8/+13
| | | | | | Replace magic numbers with uuids. llvm-svn: 92941
* Add a descriptive tag to each line to make the exact differencesMike Stump2010-01-071-12/+12
| | | | | | easier to understand. llvm-svn: 92932
* When parsing an identifier as an expression in C++, only try to annotate itJohn McCall2010-01-072-5/+14
| | | | | | | | | | as a type or scope token if the next token requires it. This eliminates a lot of redundant lookups in C++, but there's room for improvement; a better solution would do a single lookup whose kind and results would be passed through the parser. llvm-svn: 92930
OpenPOWER on IntegriCloud