summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor whitespace fix, no functionality changeNico Weber2010-11-221-3/+3
| | | | llvm-svn: 119965
* Fix PR8419. Reviewed by kremenek and xuzhongxing.Zhanyong Wan2010-11-221-0/+17
| | | | llvm-svn: 119960
* Undo part of my previous commit to mm_malloc.h, going back to the use ofChandler Carruth2010-11-222-13/+9
| | | | | | | | | | | | | | stdlib.h. There were numerous problems with forward declaring 'malloc' and 'free', but the most important is that these are reserved by POSIX and may be implemented via a function-like macro. As suggested by Dale Johannesen, I'm instead guarding the only include of this in our builtin headers with __STDC_HOSTED__, and I've removed the include of the header from the test suite. I'll discuss with folks whether we want to have a hosted section of the test suite or not, and add it (and perhaps other tests) back there if that's the direction. llvm-svn: 119958
* Remove FIXME; we don't ever want to lay out empty bases.Anders Carlsson2010-11-221-7/+6
| | | | llvm-svn: 119957
* Rename BaseLLVMType to NonVirtualBaseLLVMType.Anders Carlsson2010-11-212-7/+8
| | | | llvm-svn: 119956
* Add getCGRecordLayout helper function. No functionality change.Anders Carlsson2010-11-211-6/+13
| | | | llvm-svn: 119955
* The 'X' printf type has a valid alternative form. Fixes PR8641.Anders Carlsson2010-11-211-1/+2
| | | | llvm-svn: 119946
* Fix a bunch of IndirectFieldDecl-related warnings.Benjamin Kramer2010-11-212-4/+5
| | | | | | - Negative ChainingSize doesn't make sense, make it unsigned. llvm-svn: 119943
* Filename.rfind("/\\") won't give us the position of the last directory ↵Benjamin Kramer2010-11-211-11/+11
| | | | | | seperator. llvm-svn: 119939
* remove old compatibility APIs, use StringRef versions instead.Chris Lattner2010-11-213-16/+10
| | | | llvm-svn: 119935
* change the various getFile routines to use StringRef as their implementation ↵Chris Lattner2010-11-211-37/+32
| | | | | | form. llvm-svn: 119934
* Fix warning: enumeration value 'IndirectField' not handled in switch.Francois Pichet2010-11-211-0/+1
| | | | llvm-svn: 119924
* Major anonymous union/struct redesign.Francois Pichet2010-11-2111-112/+198
| | | | | | | | | | | A new AST node is introduced: def IndirectField : DDecl<Value>; IndirectFields are injected into the anonymous's parent scope and chain back to the original field. Name lookup for anonymous entities now result in an IndirectFieldDecl instead of a FieldDecl. There is no functionality change, the code generated should be the same. llvm-svn: 119919
* Forward the -fno-elide-constructor argument to clang -cc1. Fixes PR8652.Anders Carlsson2010-11-211-0/+6
| | | | llvm-svn: 119915
* Add comments.Zhongxing Xu2010-11-201-1/+2
| | | | llvm-svn: 119900
* Fix a typo in EnvironmentManager::bindExprAndLocation(). Reviewed by kremenek.Zhanyong Wan2010-11-201-1/+2
| | | | llvm-svn: 119899
* Handle CFGAutomaticObjDtor. Zhongxing Xu2010-11-203-1/+38
| | | | llvm-svn: 119897
* Revert r119838 "Don't warn for empty 'if' body if there is a macro that ↵Argyrios Kyrtzidis2010-11-207-34/+21
| | | | | | | | | | expands to nothing" and use a better and more general approach, where NullStmt has a flag to indicate whether it was preceded by an empty macro. Thanks to Abramo Bagnara for the hint! llvm-svn: 119887
* A bundle of whitespace changes, separated out from the functional changes.Nick Lewycky2010-11-205-23/+21
| | | | llvm-svn: 119886
* Several PPCallbacks take an SourceLocation + IdentifierInfo, ratherCraig Silverstein2010-11-193-19/+16
| | | | | | | | | | | than a Token that holds the same information all in one easy-to-use package. There's no technical reason to prefer the former -- the information comes from a Token originally -- and it's clumsier to use, so I've changed the code to use tokens everywhere. Approved by clattner llvm-svn: 119845
* Check for gcc 4.3.4.Rafael Espindola2010-11-191-1/+1
| | | | llvm-svn: 119839
* Don't warn for empty 'if' body if there is a macro that expands to nothing, e.g:Argyrios Kyrtzidis2010-11-197-13/+36
| | | | | | | | | if (condition) CALL(0); // empty macro but don't warn for empty body. Fixes rdar://8436021. llvm-svn: 119838
* Make sure to print cvr-qualifiers on function declarationsDouglas Gregor2010-11-191-0/+10
| | | | llvm-svn: 119817
* Minor cleanup. No change otherwise.Fariborz Jahanian2010-11-191-2/+4
| | | | llvm-svn: 119814
* objc_msgSend is not a builtin type in non-objc mode.Fariborz Jahanian2010-11-191-2/+7
| | | | | | Fixes //rdar://8686888 llvm-svn: 119813
* Driver/Darwin: Don't pass -demangle to an iOS linker, which may not understandDaniel Dunbar2010-11-191-1/+7
| | | | | | it. llvm-svn: 119809
* Initialize StoredDiagnostic's members in order.Benjamin Kramer2010-11-191-1/+1
| | | | llvm-svn: 119808
* add support for the i686-pc-linux-gnu triple (used by Gentoo x86)Nuno Lopes2010-11-191-0/+2
| | | | llvm-svn: 119807
* When parsing something that looks like an ill-formedDouglas Gregor2010-11-192-8/+8
| | | | | | | | protocol-qualifier list without a leading type (e.g., <#blah#>), don't complain about it being an archaic protocol-qualifier list unless it actually parses as one. llvm-svn: 119805
* Driver: Ignore -force_cpusubtype_ALL.Daniel Dunbar2010-11-191-0/+3
| | | | llvm-svn: 119803
* Extend the libclang diagnostic API to provide information about theDouglas Gregor2010-11-191-3/+4
| | | | | | option name, category ID, and category name corresponding to a diagnostic. llvm-svn: 119802
* getNumErrors() -> hasErrorOccurred()Argyrios Kyrtzidis2010-11-191-1/+1
| | | | llvm-svn: 119765
* Refactoring. Get FunctionScopeInfo to use DiagnosticErrorTrap.Argyrios Kyrtzidis2010-11-191-9/+7
| | | | llvm-svn: 119764
* Refactoring.Argyrios Kyrtzidis2010-11-193-7/+6
| | | | | | Move ErrorTrap from clang/Sema to clang/Basic as DiagnosticErrorTrap and use it in Scope. llvm-svn: 119763
* Fix a bug where write-barriers for assignment through referenceFariborz Jahanian2010-11-181-1/+1
| | | | | | | types was not being generated for objc pointers. // rdar://8681766. llvm-svn: 119751
* Use hasErrorOccurred() instead of getNumErrors() where it makes sense.Argyrios Kyrtzidis2010-11-182-3/+3
| | | | llvm-svn: 119746
* Update CMake build.Benjamin Kramer2010-11-181-0/+1
| | | | llvm-svn: 119741
* Remove the hack where, to get the return status, we had special case for ↵Argyrios Kyrtzidis2010-11-182-18/+2
| | | | | | | | VerifyDiagnosticsClient and just check the number of errors from the DiagnosticClient. llvm-svn: 119736
* Keep track of errors/warnings in FixItRewriter.Argyrios Kyrtzidis2010-11-181-0/+3
| | | | llvm-svn: 119735
* Since multiple diagnostics can share one diagnostic client, have the client ↵Argyrios Kyrtzidis2010-11-187-12/+25
| | | | | | | | keeping track of the total number of warnings/errors reported. llvm-svn: 119731
* Refactoring of Diagnostic class.Argyrios Kyrtzidis2010-11-1820-616/+655
| | | | | | | | | | | -Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
* Add an assertion, fix a whole bunch of bugs, comment the assertionJohn McCall2010-11-187-146/+270
| | | | | | out because there are still bugs left. llvm-svn: 119722
* Remove the getDiagnosticLevel check since it doesn't buy us much.Argyrios Kyrtzidis2010-11-181-3/+1
| | | | llvm-svn: 119719
* Fix a typo in the UTF-8 BOM (PR8645). Use a StringSwitch while at it.Benjamin Kramer2010-11-181-24/+15
| | | | llvm-svn: 119698
* In some situations, TemplateArgumentLoc wasn't setting TypeSourceLoc (seeCraig Silverstein2010-11-183-4/+16
| | | | | | | | | http://llvm.org/bugs/show_bug.cgi?id=8558). This patch fixes it. Thanks to rjmccall for all the coaching! Approved by rjmccall llvm-svn: 119697
* Calculate the value kind of an expression when it's created andJohn McCall2010-11-1821-368/+624
| | | | | | | | | | | | | store it on the expression node. Also store an "object kind", which distinguishes ordinary "addressed" l-values (like variable references and pointer dereferences) and bitfield, @property, and vector-component l-values. Currently we're not using these for much, but I aim to switch pretty much everything calculating l-valueness over to them. For now they shouldn't necessarily be trusted. llvm-svn: 119685
* Added method for handling CXXOperatorCallExpr differently from CallExpr if ↵Marcin Swiderski2010-11-182-9/+43
| | | | | | | | CXXOperatorCallExpr represents method call. Also fixed returning ExpolodedNodeSet from VisitCXXMethodCallExpr. llvm-svn: 119684
* comparison of AltiVec vectors now gives bool result (fix for 7533)Anton Yartsev2010-11-182-0/+113
| | | | llvm-svn: 119678
* -Rename -Wargument-larger-than -> -Wlarge-by-value-copyArgyrios Kyrtzidis2010-11-183-8/+12
| | | | | | | | | -Improve the diagnostic message -Add some comments Suggestions by Chris. llvm-svn: 119594
* Introduce option -Wargument-larger-than[=N] which warns about function ↵Argyrios Kyrtzidis2010-11-173-1/+48
| | | | | | | | | | definitions if they take by-value or return by-value any POD that is larger than some threshold (default is 64 bytes). Implements rdar://8548050. llvm-svn: 119583
OpenPOWER on IntegriCloud