summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Add builtins from PR5255. Implementations coming soon.Eli Friedman2010-02-111-0/+8
| | | | llvm-svn: 95894
* Test case for warnings with carets inside macro instantiations.John McCall2010-02-111-0/+8
| | | | llvm-svn: 95893
* Add virtual operator= example.Anders Carlsson2010-02-111-1/+3
| | | | llvm-svn: 95888
* More vtable layout dumper improvements. Handle destructors, dump the ↵Anders Carlsson2010-02-117-27/+100
| | | | | | complete function type of the member functions (using PredefinedExpr::ComputeName. llvm-svn: 95887
* Add missing test cases for AST merging of structures.Douglas Gregor2010-02-113-0/+36
| | | | llvm-svn: 95886
* Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.Daniel Dunbar2010-02-111-1/+2
| | | | llvm-svn: 95876
* Keep track of, and dump, vtable address points.Anders Carlsson2010-02-112-2/+34
| | | | llvm-svn: 95874
* Remove noisy semicolon.Benjamin Kramer2010-02-111-1/+1
| | | | llvm-svn: 95872
* Suppress warnings if their instantiation location is in a system header, notJohn McCall2010-02-111-1/+1
| | | | | | | | | | | | | their spelling location. This prevents warnings from being swallowed just because the caret is on the first parenthesis in, say, NULL. This is an experiment; the risk is that there might be a substantial number of system headers which #define symbols to expressions which inherently cause warnings. My theory is that that's rare enough that it can be worked around case-by-case, and that producing useful warnings around NULL is worth it. But I'm willing to accept that I might be empirically wrong. llvm-svn: 95870
* Patch by Cristian Draghici:Ted Kremenek2010-02-114-3/+58
| | | | | | | | | | | | Enhance the printf format string checking when using the format specifier flags ' ', '0', '+' with the 'p' or 's' conversions (since they are nonsensical and undefined). This is similar to GCC's checking. Also warning when a precision is used with the 'p' conversin specifier, since it has no meaning. llvm-svn: 95869
* Check in the beginnings of my new vtable layout builder idea.Anders Carlsson2010-02-115-10/+231
| | | | | | | | Right now, it's off by default but can be tested by passing -fdump-vtable-layouts to clang -cc1. This option will cause all vtables that will normally be emitted as part of codegen to also be dumped using the new layout code. I've also added a very simple new vtable layout test case. llvm-svn: 95865
* Attempt to always dispose of the CXIndex object in c-index-test.Ted Kremenek2010-02-111-3/+12
| | | | llvm-svn: 95864
* Use the allocator associated with ASTContext to allocate the argsTed Kremenek2010-02-114-15/+21
| | | | | | | | array associated with NonNullAttr. This fixes yet another leak when ASTContext uses a BumpPtrAllocator. Fixes: <rdar://problem/7637150> llvm-svn: 95863
* Have ~ASTContext() delete StoredDeclsMap (internal to DeclContext) byTed Kremenek2010-02-113-5/+44
| | | | | | | | | storing the set of StoredDeclsMaps in an internal vector of void*. This isn't an ideal solution, but for the time being this fixes a major memory leak with these DenseMaps not being freed. Fixes: <rdar://problem/7634755> llvm-svn: 95861
* Remove use of 'std::string' from Attr objects, using instead a byteTed Kremenek2010-02-117-56/+90
| | | | | | | | | array allocated using the allocator in ASTContext. This addresses these strings getting leaked when using a BumpPtrAllocator (in ASTContext). Fixes: <rdar://problem/7636765> llvm-svn: 95853
* Driver: Add -rewrite-objc, which is an interface to clang -cc1 -rewrite-objc.Daniel Dunbar2010-02-116-3/+39
| | | | llvm-svn: 95849
* Driver: Fix infinite loop and wrong message on invalid -ccc-clang-arch argument.Daniel Dunbar2010-02-111-4/+2
| | | | llvm-svn: 95848
* Clean up ownership of 'AttributeList' objects in Parser. ApparentlyTed Kremenek2010-02-115-46/+83
| | | | | | | | | | | | | | | | | | | | | we would just leak them all over the place, with no clear ownership of these objects at all. AttributeList objects would get leaked on both error and non-error paths. Note: I introduced the usage of llvm::OwningPtr<AttributeList> to manage these objects, which is particularly useful for methods with multiple return sites. In at least one method I used them even when they weren't strictly necessary because it clarified the ownership semantics and made the code easier to read. Should the excessive 'take()' and 'reset()' calls become a performance issue we can always re-evaluate. Note+1: I believe I have not introduced any double-frees, but it would be nice for someone to review this. This fixes <rdar://problem/7635046>. llvm-svn: 95847
* Strip attributes and 'inline' off the "previous declaration" of aJohn McCall2010-02-111-15/+27
| | | | | | | template explicit specialization. Complete an apparently stalled refactor towards using CheckSpecializationInstantiationRedecl(). llvm-svn: 95845
* Remove another redundant ASTContext parameterDouglas Gregor2010-02-114-6/+6
| | | | llvm-svn: 95843
* Eliminate a bunch of unnecessary ASTContexts from members functions ofDouglas Gregor2010-02-1113-65/+54
| | | | | | Decl subclasses. No functionality change. llvm-svn: 95841
* Diagnose when user provided getter is being used as lvalueFariborz Jahanian2010-02-115-8/+39
| | | | | | using property dot-syntax. Fixes radar 7628953. llvm-svn: 95838
* Eliminate the ASTContext parameter from RecordDecl::getDefinition()Douglas Gregor2010-02-1118-34/+33
| | | | | | | and CXXRecordDecl::getDefinition(); it's totally unnecessary. No functionality change. llvm-svn: 95836
* Allocate 'ObjCMethodList' objects (owned by Sema) using Sema's ↵Ted Kremenek2010-02-112-4/+10
| | | | | | BumpPtrAllocator. Previously they were not getting freed. Fixes <rdar://problem/7635663>. llvm-svn: 95834
* Implement basic AST merging for classes, structs, and unions in C.Douglas Gregor2010-02-112-0/+232
| | | | llvm-svn: 95833
* Generate the objc_read_weak API when callingFariborz Jahanian2010-02-102-1/+45
| | | | | | a __weak block. Fixes radar 7628591. llvm-svn: 95822
* Fix a potential null-pointer use, and fix the style of my new function.Charles Davis2010-02-101-2/+2
| | | | | | Thanks, Anton! llvm-svn: 95821
* Add support for the force_align_arg_pointer attribute. This is an x86-specificCharles Davis2010-02-104-1/+65
| | | | | | | | attribute, so it uses Anton's new target-specific attribute support. It's supposed to ensure that the stack is 16-byte aligned, but since necessary support is lacking from LLVM, this is a no-op for now. llvm-svn: 95820
* hopefully silence a warning on the clang-i386-darwin9 tester.Chris Lattner2010-02-101-1/+1
| | | | llvm-svn: 95812
* Move TypedefDecl importer to match the ordering in DeclNodes. No ↵Douglas Gregor2010-02-101-56/+56
| | | | | | functionality change. llvm-svn: 95805
* c-index-test: Add "none" filter, useful for performance testing.Daniel Dunbar2010-02-101-0/+1
| | | | llvm-svn: 95800
* Patch to rewrite blocks into unique api names.Fariborz Jahanian2010-02-102-13/+47
| | | | | | Fixes radar 7630551 llvm-svn: 95796
* Implement basic support for merging function declarations acrossDouglas Gregor2010-02-106-38/+212
| | | | | | translation units. llvm-svn: 95794
* Provide rewriting suppport for use of __typeof__Fariborz Jahanian2010-02-102-1/+59
| | | | | | in a declaration statement. Fixes radar 7628153. llvm-svn: 95788
* Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixesDaniel Dunbar2010-02-109-9/+33
| | | | | | | calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787
* Refactor code that generates debug info for variables that has BlocksAttr.Devang Patel2010-02-102-245/+129
| | | | llvm-svn: 95786
* clang -cc1: Add -fsjlj-exceptions, which requires far too much button pushing.Daniel Dunbar2010-02-106-1/+13
| | | | llvm-svn: 95785
* Implement AST importing and merging for typedefs. As part of this, provide a ↵Douglas Gregor2010-02-105-14/+100
| | | | | | lame implementation for importing TypeSourceInfos. llvm-svn: 95783
* Teach AST merging that variables with incomplete array types can beDouglas Gregor2010-02-105-2/+41
| | | | | | | | merged with variables of constant array types. Also, make sure that we call DiagnosticClient's BeginSourceFile/EndSourceFile, so that it has a LangOptions to work with. llvm-svn: 95782
* Improve access control diagnostics. Perform access control on member-pointerJohn McCall2010-02-1020-376/+655
| | | | | | | conversions. Fix an access-control bug where privileges were not considered at intermediate points along the inheritance path. Prepare for friends. llvm-svn: 95775
* Don't display border around images (in Firefox).Ted Kremenek2010-02-101-2/+2
| | | | llvm-svn: 95772
* Convert tabs to spaces.Ted Kremenek2010-02-101-12/+12
| | | | llvm-svn: 95756
* Add comment.Zhongxing Xu2010-02-101-1/+2
| | | | llvm-svn: 95755
* Add missing header fileDouglas Gregor2010-02-101-0/+1
| | | | llvm-svn: 95751
* Comment out category's property decls. in rewrite.Fariborz Jahanian2010-02-102-0/+19
| | | | | | Fixes radar 7630636. llvm-svn: 95744
* Use current location as the location of compiler generated arguments, e.g. ↵Devang Patel2010-02-102-8/+24
| | | | | | self, _cmd etc. llvm-svn: 95743
* Reverse a partial fix patch for radar 7214820. It broke some code andFariborz Jahanian2010-02-103-35/+5
| | | | | | I don't have time to refix it for now. llvm-svn: 95733
* Implement basic support for importing source locations from one ASTDouglas Gregor2010-02-106-12/+99
| | | | | | | | | | | | | | | | | | | | | | | | | into another AST, including their include history. Here's an example error that involves a conflict merging a variable with different types in two translation units (diagnosed in the third AST context into which everything is merged). /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var2.c:3:5: error: external variable 'x2' declared with incompatible types in different translation units ('int' vs. 'double') int x2; ^ In file included from /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var1.c:3: /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var1.h:1:8: note: declared here with type 'double' double x2; ^ Although we maintain include history, we do not maintain macro instantiation history across a merge. Instead, we map down to the spelling location (for now!). llvm-svn: 95732
* Pull header into side column.Ted Kremenek2010-02-091-1/+3
| | | | llvm-svn: 95726
* Increase page width for more modern displays.Ted Kremenek2010-02-091-1/+1
| | | | llvm-svn: 95725
OpenPOWER on IntegriCloud