summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve template argument deduction from a call. In particular,Douglas Gregor2009-07-072-77/+172
| | | | | | | | implement C++ [temp.deduct.call]p3b3, which allows a template-id parameter to match a derived class of the argument, while deducing template arguments. llvm-svn: 74965
* Extra vector element initializers in OpenCL is an error, not a warning.Nate Begeman2009-07-071-0/+4
| | | | llvm-svn: 74951
* Implement checking of exception spec compatibility for overriding virtual ↵Sebastian Redl2009-07-074-6/+115
| | | | | | functions. llvm-svn: 74943
* Some (most) type trait expressions require that the argument passed in is a ↵Anders Carlsson2009-07-071-7/+13
| | | | | | complete type. llvm-svn: 74937
* Diagnose, and not crash, when taking address of property expression.Fariborz Jahanian2009-07-071-0/+5
| | | | llvm-svn: 74935
* Convert the CharInfo table to be statically initialized, instead of ↵Chris Lattner2009-07-071-15/+86
| | | | | | dynamically initialized. Patch by Ryan Flynn! llvm-svn: 74919
* Tighten up the conditions under which we build an implicit functionDouglas Gregor2009-07-071-3/+6
| | | | | | declaration for a builtin. llvm-svn: 74917
* Make ASTContext explicitly keep track of the declaration for the CDouglas Gregor2009-07-074-9/+33
| | | | | | | | | | | | | | | | | FILE type, rather than using name lookup to find FILE within the translation unit. Within precompiled headers, FILE is treated as yet another "special type" (like __builtin_va_list). This change should provide a performance improvement (not verified), since the lookup into the translation unit declaration forces the (otherwise unneeded) construction of a large hash table. More importantly, with precompiled headers, the construction of that table requires deserializing most of the top-level declarations from the precompiled header, which are then unused. Fixes PR 4509. llvm-svn: 74911
* A few change per Doug's feedback.Fariborz Jahanian2009-07-071-3/+2
| | | | | | - Fariborz llvm-svn: 74909
* fix an out-of-date comment.Chris Lattner2009-07-071-5/+3
| | | | llvm-svn: 74894
* pic16 preproc defs.Sanjiv Gupta2009-07-071-0/+5
| | | | llvm-svn: 74893
* fix comment.Zhongxing Xu2009-07-071-2/+2
| | | | llvm-svn: 74890
* Refactor DeclLocResolver/StmtLocResolver into a more functional style by ↵Argyrios Kyrtzidis2009-07-071-187/+117
| | | | | | | | removing the search state and by having their Visit* methods return the ASTLocation directly. llvm-svn: 74887
* Introduce the notion of "Relocatable" precompiled headers, which are builtDouglas Gregor2009-07-074-54/+159
| | | | | | | | | | | | with a particular system root directory and can be used with a different system root directory when the headers it depends on have been installed. Relocatable precompiled headers rewrite the file names of the headers used when generating the PCH file into the corresponding file names of the headers available when using the PCH file. Addresses <rdar://problem/7001604>. llvm-svn: 74885
* NewCastRegion: Handle casts *from* pointers to incomplete structs to other ↵Ted Kremenek2009-07-061-9/+19
| | | | | | types. llvm-svn: 74884
* Fix 80 col violation.Ted Kremenek2009-07-061-4/+4
| | | | llvm-svn: 74877
* Restructure NewCastRegion to use a switch statement that dispatches off theTed Kremenek2009-07-061-51/+62
| | | | | | | region type. This better shows the logic of the method and allows the compiler to check if we didn't handle a specific region kind. llvm-svn: 74876
* Fix 80 col violation.Ted Kremenek2009-07-061-2/+2
| | | | llvm-svn: 74875
* NewCastRegion: Handle casts to any Objective-C pointer, not just qualified ids.Ted Kremenek2009-07-061-2/+2
| | | | llvm-svn: 74874
* Implement FIXME.Ted Kremenek2009-07-061-1/+1
| | | | llvm-svn: 74872
* StoreManager::NewCastRegion:Ted Kremenek2009-07-061-10/+22
| | | | | | | | - Refactor logic that creates ElementRegions into a help method 'MakeElementRegion'. - Fix crash due to not handling StringRegions. Casts of StringRegions now result in a new ElementRegion layered on the original StringRegion. llvm-svn: 74867
* Make 'BasicStoreManager' + 'NewCastRegion' testable from the command line ↵Ted Kremenek2009-07-061-2/+6
| | | | | | using '-analyzer-store=basic-new-cast'. llvm-svn: 74865
* Update CMake files.Argyrios Kyrtzidis2009-07-063-3/+3
| | | | llvm-svn: 74864
* Some changes to ASTLocation's methodsArgyrios Kyrtzidis2009-07-061-2/+5
| | | | | | | | -Change hasStmt() to isStmt() -Add isDecl() -Add getSourceRange() llvm-svn: 74862
* Move the 'ResolveLocationInAST' function from the Frontend library to the ↵Argyrios Kyrtzidis2009-07-061-3/+3
| | | | | | | | Index library. Also, cut down its comments; more comments will be added to ASTLocation. llvm-svn: 74860
* Move ASTLocation and DeclReferenceMap from the AST library to the Index library.Argyrios Kyrtzidis2009-07-063-6/+9
| | | | llvm-svn: 74859
* Rename 'ASTNode' -> 'ASTLocation'.Argyrios Kyrtzidis2009-07-064-19/+19
| | | | | | ASTLocation is a much better name for its intended purpose which to represent a "point" into the AST. llvm-svn: 74858
* NewCastRegion:Ted Kremenek2009-07-061-12/+10
| | | | | | | - Have test for 'CodeTextRegion' dominate other region tests. - Use 'getAsRecordType' instead of isa<RecordType> llvm-svn: 74853
* Fix loop so that 'continue' statements actually cause the loop to iterate.Ted Kremenek2009-07-061-2/+1
| | | | llvm-svn: 74852
* Move the new 'CastRegion' implementation from RegionStoreManager to StoreManagerTed Kremenek2009-07-062-83/+83
| | | | | | | (its superclass). This will allow us to experiment with using the new CastRegion with BasicStoreManager, and gradually phase out the old implementation. llvm-svn: 74851
* Fix a problem with false diagnostics when comparing distinct NULL pointer ↵Douglas Gregor2009-07-061-7/+13
| | | | | | types, from David Majnemer llvm-svn: 74850
* Fix PR 4489, a crash in PCH loading that occurs when loading the nameDouglas Gregor2009-07-062-20/+81
| | | | | | | | | | of a top-level declaration loads another top-level declaration of the same name whose type depends on the first declaration having been completed. This commit breaks the circular dependency by delaying loads of top-level declarations triggered by loading a name until we are no longer recursively loading types or declarations. llvm-svn: 74847
* Fix <rdar://problem/7033733>. The CF_RETURNS_RETAINED attribute should work ↵Ted Kremenek2009-07-061-3/+11
| | | | | | if the return type on an Objective-C method is a CF type reference, not just an Objective-C object reference. llvm-svn: 74841
* Parsing fix for out-of-line constructors, from Piotr RakDouglas Gregor2009-07-061-2/+4
| | | | llvm-svn: 74833
* Keep track of the Expr used to describe the size of an array type,Douglas Gregor2009-07-0613-43/+226
| | | | | | from Enea Zaffanella! llvm-svn: 74831
* Fix bitfield promotion in the presence of explicit casts, from Abrama Bagnara.Douglas Gregor2009-07-061-1/+1
| | | | llvm-svn: 74830
* Further cleanup of region invalidation code. No functionality change.Zhongxing Xu2009-07-062-54/+57
| | | | llvm-svn: 74816
* Start to gradually move region invalidation code into store manager.Zhongxing Xu2009-07-062-66/+60
| | | | | | No functionality change. llvm-svn: 74812
* Fix for PR4502: add calculation of the integer conversion rank for Eli Friedman2009-07-051-0/+3
| | | | | | wchar_t. llvm-svn: 74808
* More tweaks to types for OpenBSD. Patch by Jonathan Gray.Eli Friedman2009-07-051-1/+14
| | | | llvm-svn: 74805
* Introduce the 'Index' library.Argyrios Kyrtzidis2009-07-058-1/+338
| | | | | | | | | Its purpose is to provide the basic infrastructure for cross-translation-unit analysis like indexing, refactoring, etc. Currently it is very "primitive" and with no type-names support. It can provide functionality like "show me all references of this function from these translation units". llvm-svn: 74802
* Introduce the DeclReferenceMap class inside the AST library.Argyrios Kyrtzidis2009-07-052-0/+132
| | | | | | | | | DeclReferenceMap (similar to ParentMap) is a helper class for mapping Decls to the AST nodes that reference them. A client will initialize it by passing an ASTContext to its constructor and later use it to iterate over the references of a Decl. References are mapped and retrieved using the primary declaration (Decl::getPrimaryDecl()) of a particular Decl. llvm-svn: 74801
* Introduce the virtual method Decl::getPrimaryDecl().Argyrios Kyrtzidis2009-07-051-0/+16
| | | | | | | When a Decl subclass can have multiple re-declarations in the same declaration context (like FunctionDecl), getPrimaryDecl() will return a particular Decl that all of them will point to as the "primary" declaration. llvm-svn: 74800
* Avoid re-checking the parameters of a function, when trying to resolve a ↵Argyrios Kyrtzidis2009-07-051-5/+12
| | | | | | location. llvm-svn: 74799
* Make use of ASTNode for return value of clang::ResolveLocationInAST() and in ↵Argyrios Kyrtzidis2009-07-051-4/+4
| | | | | | the index-test tool. llvm-svn: 74798
* Introduce ASTNode class into the AST library.Argyrios Kyrtzidis2009-07-052-0/+91
| | | | | | ASTNode is an immutable pair of a Decl and Stmt. If Stmt is not null, Decl should be its immediate parent. llvm-svn: 74797
* Do an early check for function definition.Argyrios Kyrtzidis2009-07-051-10/+12
| | | | llvm-svn: 74796
* Per PR4506, fix the type of size_t on OpenBSD.Eli Friedman2009-07-051-1/+12
| | | | llvm-svn: 74795
* Catch function redeclarations with incompatible exception specifications.Sebastian Redl2009-07-043-0/+57
| | | | llvm-svn: 74787
* This fixes the case where the wrong symbol is emitted leading to linking ↵Fariborz Jahanian2009-07-031-4/+9
| | | | | | | | errors when you reference a class before defining it (GNU runtime). Patch by David Chisnall. llvm-svn: 74772
OpenPOWER on IntegriCloud