| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Handle layout of vtables for virtual bases. | Anders Carlsson | 2010-02-16 | 2 | -1/+68 | |
| | | | | | llvm-svn: 96355 | |||||
| * | Move some code around in preparation for virtual base vtables. | Anders Carlsson | 2010-02-16 | 1 | -9/+18 | |
| | | | | | llvm-svn: 96354 | |||||
| * | Fix rewriter bug when function call inside block with block parameter | Fariborz Jahanian | 2010-02-16 | 1 | -4/+41 | |
| | | | | | | | causes C++ compile error (radar 7651312). llvm-svn: 96352 | |||||
| * | Fix a bug where we would not emit secondary vtables for bases of a primary base. | Anders Carlsson | 2010-02-16 | 2 | -12/+59 | |
| | | | | | llvm-svn: 96351 | |||||
| * | Rename argument so the name reflects what it's doing. | Benjamin Kramer | 2010-02-16 | 2 | -9/+10 | |
| | | | | | llvm-svn: 96342 | |||||
| * | Add simpler checker to check if variables captured by a block are uninitialized. | Ted Kremenek | 2010-02-16 | 7 | -3/+144 | |
| | | | | | llvm-svn: 96341 | |||||
| * | Support local namespace aliases and permit them to be instantiated. | John McCall | 2010-02-16 | 4 | -1/+48 | |
| | | | | | llvm-svn: 96335 | |||||
| * | Emit vbase offsets. | Anders Carlsson | 2010-02-16 | 2 | -4/+63 | |
| | | | | | llvm-svn: 96329 | |||||
| * | More work on the new layout code. | Anders Carlsson | 2010-02-16 | 1 | -11/+66 | |
| | | | | | llvm-svn: 96328 | |||||
| * | When emitting complete destructors for classes with virtual bases, compute | John McCall | 2010-02-16 | 2 | -36/+64 | |
| | | | | | | | | | | | | | the offset to the virtual bases statically inside of relying on the virtual base offsets in the object's vtable(s). This is both more efficient and sound against the destructor's manipulation of the vtables. Also extract a few helper routines. Oh and we seem to pass all tests with an optimized clang now. llvm-svn: 96327 | |||||
| * | White-list comma expressions with the literal 0 as their RHS against | John McCall | 2010-02-16 | 1 | -1/+9 | |
| | | | | | | | unused-value warnings. This is a common macro idiom. llvm-svn: 96326 | |||||
| * | Make the various type-decl Types (and their associated ASTContext routines) | John McCall | 2010-02-16 | 4 | -21/+25 | |
| | | | | | | | accept const decls. llvm-svn: 96325 | |||||
| * | Re-applying 96173. Looks like finally I got the test case right. | Sanjiv Gupta | 2010-02-16 | 2 | -9/+14 | |
| | | | | | llvm-svn: 96321 | |||||
| * | Add test case to show that Clang now checks the format string | Ted Kremenek | 2010-02-16 | 1 | -1/+4 | |
| | | | | | | | arguments of asprintf (<rdar://problem/6657191>). llvm-svn: 96319 | |||||
| * | c-index-test: Pass appropriate client data. | Daniel Dunbar | 2010-02-16 | 1 | -1/+1 | |
| | | | | | llvm-svn: 96317 | |||||
| * | ASTUnit: Constant fold UseBumpAllocator to true, we don't care to support ↵ | Daniel Dunbar | 2010-02-16 | 4 | -12/+5 | |
| | | | | | | | this as an argument. llvm-svn: 96316 | |||||
| * | ASTUnit::LoadFromCompilerInvocation - Take ownership of the provided invocation. | Daniel Dunbar | 2010-02-16 | 2 | -10/+6 | |
| | | | | | llvm-svn: 96315 | |||||
| * | CompilerInstance: Move LLVMContext member out of constructor. | Daniel Dunbar | 2010-02-16 | 3 | -18/+16 | |
| | | | | | llvm-svn: 96314 | |||||
| * | Switch clang to use its own LLVMContext (not the global one). | Daniel Dunbar | 2010-02-16 | 1 | -1/+1 | |
| | | | | | llvm-svn: 96313 | |||||
| * | Fix test case. | Ted Kremenek | 2010-02-16 | 1 | -1/+1 | |
| | | | | | llvm-svn: 96311 | |||||
| * | Refactor the logic for printf argument type-checking into ↵ | Ted Kremenek | 2010-02-16 | 5 | -179/+263 | |
| | | | | | | | | | | | analyze_printf::ArgTypeResult. Implement printf argument type checking for '%s'. Fixes <rdar://problem/3065808>. llvm-svn: 96310 | |||||
| * | Added 'AsWideChar' flag to LengthModifier. | Ted Kremenek | 2010-02-16 | 1 | -1/+2 | |
| | | | | | llvm-svn: 96309 | |||||
| * | Skeleton for importing Objective-C classes | Douglas Gregor | 2010-02-16 | 4 | -1/+117 | |
| | | | | | llvm-svn: 96306 | |||||
| * | mark __builtin_longjmp noreturn, PR6312 | Chris Lattner | 2010-02-16 | 1 | -1/+1 | |
| | | | | | llvm-svn: 96302 | |||||
| * | Don't import __va_list_tag or __builtin_va_list when merging | Douglas Gregor | 2010-02-16 | 1 | -0/+6 | |
| | | | | | llvm-svn: 96299 | |||||
| * | Cope with anonymous tags defined within declarators by structurally | Douglas Gregor | 2010-02-15 | 9 | -83/+195 | |
| | | | | | | | | | | | | | | | | | | | | | comparing their types under the assumption that they are equivalent, rather than importing the types and then checking for compatibility. A few minor tweaks here: - Teach structural matching to handle compatibility between function types with prototypes and those without prototypes. - Teach structural matching that an incomplete record decl is the same as any other record decl with the same name. - Keep track of pairs of declarations that we have already checked (but failed to find as structurally matching), so we don't emit diagnostics repeatedly. - When importing a typedef of an anonymous tag, be sure to link the imported tag type to its typedef. With these changes, we survive a repeated import of <stdlib.h> and <stdio.h>. Alas, the ASTNodeImporter is getting a little grotty. llvm-svn: 96298 | |||||
| * | Convert GRExprEngine's handling of ObjCMessageExprs to use a worklist | Ted Kremenek | 2010-02-15 | 2 | -213/+208 | |
| | | | | | | | to evaluate arguments. llvm-svn: 96293 | |||||
| * | Add Sema support for __builtin_fpclassify by extending the existing check ↵ | Benjamin Kramer | 2010-02-15 | 4 | -12/+20 | |
| | | | | | | | for __builtin_isinf and friends. Part of PR6083. llvm-svn: 96291 | |||||
| * | Issue a bettter diagnostics for incorrect property setter name. | Fariborz Jahanian | 2010-02-15 | 3 | -1/+7 | |
| | | | | | | | (radar 7647953). llvm-svn: 96284 | |||||
| * | Fix instantiation of template functions with local classes that contain virtual | Chandler Carruth | 2010-02-15 | 2 | -1/+28 | |
| | | | | | | | methods. llvm-svn: 96283 | |||||
| * | Tell ASTMerge to merge every declaration it sees, rather than cherry-picking ↵ | Douglas Gregor | 2010-02-15 | 1 | -15/+1 | |
| | | | | | | | those declarations that we know will work. llvm-svn: 96280 | |||||
| * | Reimplement the structural-equality checks used to determine whether | Douglas Gregor | 2010-02-15 | 6 | -277/+910 | |
| | | | | | | | | | | | | | | | two types in different AST contexts are equivalent. Rather than transforming the type from one context into the other context, we perform a deep structural comparison of the types. This change addresses a serious problem with recursive data types like struct ListNode { int value; struct ListNode *Next; } xList; llvm-svn: 96278 | |||||
| * | Class continuation now has its own property ast for | Fariborz Jahanian | 2010-02-15 | 4 | -59/+110 | |
| | | | | | | | | | those declared in it. This is to allow duplicate property diagnostics for properties declared in class extensions multiple times (radar 7629420) and for future use. llvm-svn: 96276 | |||||
| * | Test to compile the rewritten file for my last patch. | Fariborz Jahanian | 2010-02-15 | 1 | -0/+13 | |
| | | | | | | | (radar 7649577 related). llvm-svn: 96274 | |||||
| * | Fix a broken rewritin of @implementation keyword. | Fariborz Jahanian | 2010-02-15 | 1 | -1/+1 | |
| | | | | | | | (fixes radar 7649577). llvm-svn: 96270 | |||||
| * | Optimize the implementation of IdDeclInfo pooling in the IdentifierResolver. | John McCall | 2010-02-15 | 1 | -13/+25 | |
| | | | | | llvm-svn: 96253 | |||||
| * | Use getLocStart(), instead of getLocEnd(), to record starting location of ↵ | Devang Patel | 2010-02-15 | 2 | -1/+16 | |
| | | | | | | | objc method. :) llvm-svn: 96245 | |||||
| * | reverting back 96242 as it still causes a test failure. | Sanjiv Gupta | 2010-02-15 | 2 | -12/+9 | |
| | | | | | llvm-svn: 96244 | |||||
| * | Re-applying 96173 with corresponding changes in test. | Sanjiv Gupta | 2010-02-15 | 2 | -9/+12 | |
| | | | | | llvm-svn: 96242 | |||||
| * | Uniformize the names of type predicates: rather than having isFloatTy and | Duncan Sands | 2010-02-15 | 4 | -19/+19 | |
| | | | | | | | isInteger, we now have isFloatTy and isIntegerTy. Requested by Chris! llvm-svn: 96224 | |||||
| * | Defer covariance checks for dependent types. Add test cases that also ensure | Chandler Carruth | 2010-02-15 | 2 | -1/+25 | |
| | | | | | | | they are re-checked on instantiation. llvm-svn: 96217 | |||||
| * | Simplify code. If we can reach here, the base must be virtual. | Zhongxing Xu | 2010-02-15 | 1 | -5/+4 | |
| | | | | | llvm-svn: 96211 | |||||
| * | When emitting an aggregate into a temporary, make sure we set the alignment | John McCall | 2010-02-15 | 1 | -1/+1 | |
| | | | | | | | | | | on the alloca. The fact that codegen makes this class of bug so wonderfully easy to make is embarrassing. llvm-svn: 96204 | |||||
| * | clang::Attr objects should be treated as AST nodes as well by | Ted Kremenek | 2010-02-14 | 1 | -1/+5 | |
| | | | | | | | the LLVMConventionsChecker. llvm-svn: 96202 | |||||
| * | Add LLVM conventions check that scans for AST elements (types, stmts, decls) | Ted Kremenek | 2010-02-14 | 1 | -13/+194 | |
| | | | | | | | that allocate heap memory. llvm-svn: 96184 | |||||
| * | Change LLVMConventionsChecker to accept an entire translation unit instead | Ted Kremenek | 2010-02-14 | 4 | -9/+25 | |
| | | | | | | | | | | | | | | | | | of operating on each code decl. This exposes two flaws in AnalysisConsumer that should eventually be fixed: (1) It is not possible to associate multiple "actions" with a single command line argument. This will require the notion of an "analysis" group, and possibly tablegen support. (although eventually we want to support dynamically loading analyses as well) (2) AnalysisConsumer may not actually be scanning the declarations in namespaces. We'll experiment first in LLVMConventionsChecker before changing the behavior in AnalysisConsumer. llvm-svn: 96183 | |||||
| * | Rework translation unit actions to actually take an entire translation unit | Ted Kremenek | 2010-02-14 | 1 | -43/+50 | |
| | | | | | | | as imput. llvm-svn: 96182 | |||||
| * | For the StringRef check, also visit the children of DeclStmts. | Ted Kremenek | 2010-02-14 | 1 | -0/+3 | |
| | | | | | llvm-svn: 96181 | |||||
| * | Place type-checking static methods at type of file (where they will congregate). | Ted Kremenek | 2010-02-14 | 1 | -33/+37 | |
| | | | | | | | No functionality change. llvm-svn: 96180 | |||||
| * | temporarily revert 96173, it is causing test failures. | Chris Lattner | 2010-02-14 | 1 | -7/+5 | |
| | | | | | llvm-svn: 96176 | |||||

