Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Enable the use of the new llvm objectsize intrinsic. | Mike Stump | 2009-11-09 | 1 | -4/+2 | |
| | | | | llvm-svn: 86607 | |||||
* | Further change in a comment. | Fariborz Jahanian | 2009-11-09 | 1 | -1/+2 | |
| | | | | llvm-svn: 86599 | |||||
* | Removed a FIXME on nested type specifier warning. | Fariborz Jahanian | 2009-11-09 | 1 | -1/+0 | |
| | | | | llvm-svn: 86598 | |||||
* | Changed error for nested type qualifier mismatch to | Fariborz Jahanian | 2009-11-09 | 1 | -1/+1 | |
| | | | | | | | warning, to match gcc. It used to be warning, so better keep it a warning (it broke a certain project). llvm-svn: 86597 | |||||
* | Make sure that Type::getAs<ArrayType>() (or Type::getAs<subclass of | Douglas Gregor | 2009-11-09 | 6 | -6/+7 | |
| | | | | | | | ArrayType>()) does not instantiate. Update all callers that used this unsafe feature to use the appropriate ASTContext::getAs*ArrayType method. llvm-svn: 86596 | |||||
* | Remove stale FIXME. | Ted Kremenek | 2009-11-09 | 1 | -3/+0 | |
| | | | | llvm-svn: 86595 | |||||
* | Make sure that we look into nested, transparent declaration contexts | Douglas Gregor | 2009-11-09 | 1 | -2/+9 | |
| | | | | | | | when looking for a name within a given DeclContext. Now enumerators will show up in code-completion results. llvm-svn: 86591 | |||||
* | For array pointee type, get its cvr qualifier from | Fariborz Jahanian | 2009-11-09 | 1 | -0/+2 | |
| | | | | | | its element type. Fixes pr5432. llvm-svn: 86587 | |||||
* | Fix build after r86579. | Benjamin Kramer | 2009-11-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 86584 | |||||
* | Make sure that we instantiate default function arguments for an | Douglas Gregor | 2009-11-09 | 1 | -1/+8 | |
| | | | | | | overloaded operator(). llvm-svn: 86581 | |||||
* | Add additional note to mark the cause of synthesized constructors. Mark | Eli Friedman | 2009-11-09 | 1 | -3/+20 | |
| | | | | | | | declaration invalid if the constructor can't be properly built. Addresses remaining review comments from Fariborz for r86500. llvm-svn: 86579 | |||||
* | Improve instantiation of default template arguments for nested | Douglas Gregor | 2009-11-09 | 4 | -45/+124 | |
| | | | | | | | | | templates. The instantiation of these default arguments must be (and now, is) delayed until the template argument is actually used, at which point we substitute all levels of template arguments concurrently. llvm-svn: 86578 | |||||
* | Add support for cdecl attribute. (As far as I know, it doesn't affect CodeGen | Eli Friedman | 2009-11-09 | 4 | -0/+39 | |
| | | | | | | | | unless we start implementing command-line switches which override the default calling convention, so the effect is mostly to silence unknown attribute warnings.) llvm-svn: 86571 | |||||
* | __uint128_t is indeed an unsigned integer type. Fixes PR5435. | Anders Carlsson | 2009-11-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 86561 | |||||
* | When transforming an InitListExpr, if we already computed a non-dependent ↵ | Douglas Gregor | 2009-11-09 | 2 | -6/+14 | |
| | | | | | | type for the InitListExpr, keep it llvm-svn: 86559 | |||||
* | Add check for pointer arithmetic on non-array variables. | Zhongxing Xu | 2009-11-09 | 4 | -0/+75 | |
| | | | | llvm-svn: 86538 | |||||
* | Add check for obsolete function call of getpw(). | Zhongxing Xu | 2009-11-09 | 1 | -5/+46 | |
| | | | | llvm-svn: 86537 | |||||
* | remove redundant file name in CMakeLists.txt. | Zhongxing Xu | 2009-11-09 | 1 | -1/+0 | |
| | | | | llvm-svn: 86536 | |||||
* | update CMakeList.txt | Zhongxing Xu | 2009-11-09 | 1 | -0/+2 | |
| | | | | llvm-svn: 86535 | |||||
* | Update CMake | Daniel Dunbar | 2009-11-09 | 1 | -0/+1 | |
| | | | | llvm-svn: 86533 | |||||
* | Add comments. | Zhongxing Xu | 2009-11-09 | 1 | -0/+1 | |
| | | | | llvm-svn: 86532 | |||||
* | Add checker for CWE-588: Attempt to Access Child of a Non-structure Pointer. | Zhongxing Xu | 2009-11-09 | 4 | -6/+90 | |
| | | | | llvm-svn: 86529 | |||||
* | Update CMake | Daniel Dunbar | 2009-11-09 | 1 | -0/+2 | |
| | | | | llvm-svn: 86528 | |||||
* | Put all long strings in 80-col. | Zhongxing Xu | 2009-11-09 | 3 | -3/+7 | |
| | | | | llvm-svn: 86527 | |||||
* | Add checker for CWE-587: Assignment of a Fixed Address to a Pointer. | Zhongxing Xu | 2009-11-09 | 4 | -2/+76 | |
| | | | | llvm-svn: 86523 | |||||
* | Add checker for CWE-469: Use of Pointer Subtraction to Determine Size. This | Zhongxing Xu | 2009-11-09 | 3 | -1/+73 | |
| | | | | | | | checker does not build sink nodes. Because svaluator computes an unknown value for the subtraction now. llvm-svn: 86517 | |||||
* | Rearrange function to avoid recursive use-after-free. | Eli Friedman | 2009-11-09 | 1 | -17/+18 | |
| | | | | llvm-svn: 86516 | |||||
* | Explicitly note that pre-inc/dec lvalues are not supported yet, so that it | Eli Friedman | 2009-11-09 | 1 | -1/+5 | |
| | | | | | | doesn't crash. (Such expressions are valid in C++, but not in C.) llvm-svn: 86513 | |||||
* | Add hack to make the given testcase work. As far as I can tell, this change is | Eli Friedman | 2009-11-09 | 1 | -1/+3 | |
| | | | | | | reasonably safe, but it doesn't seem like the right solution. llvm-svn: 86508 | |||||
* | Add a test case for CWE-467, and simplify the wording of the warning. | Zhongxing Xu | 2009-11-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 86504 | |||||
* | Rename areAllFields32Or64BitBasicType to canExpandIndirectArgument to closer ↵ | Daniel Dunbar | 2009-11-09 | 1 | -10/+29 | |
| | | | | | | | | match what it is semantically used for. Also, fix a major bug where fields from a C++ struct might be dropped -- the expand action doesn't handle them correctly yet. llvm-svn: 86502 | |||||
* | Remove a useless variable that got left behind. | Eli Friedman | 2009-11-09 | 1 | -4/+0 | |
| | | | | llvm-svn: 86501 | |||||
* | Unify the codepaths used to verify base and member initializers for explicitly | Eli Friedman | 2009-11-09 | 3 | -169/+36 | |
| | | | | | | | | | | | | | | | | and implicitly defined constructors. This has a number of benefits: 1. Less code. 2. Explicit and implicit constructors get the same diagnostics. 3. The AST explicitly contains constructor calls from implicit default constructors. This allows handing some cases that previously weren't handled correctly in IRGen without any additional code. Specifically, implicit default constructors containing calls to constructors with default arguments are now handled correctly. llvm-svn: 86500 | |||||
* | Fix use-after-free bug. | Eli Friedman | 2009-11-08 | 1 | -3/+2 | |
| | | | | llvm-svn: 86485 | |||||
* | Update CMake file. | Benjamin Kramer | 2009-11-08 | 1 | -0/+1 | |
| | | | | llvm-svn: 86479 | |||||
* | Special-case default argument expression in instantiation. This should fix ↵ | Sebastian Redl | 2009-11-08 | 1 | -0/+12 | |
| | | | | | | PR4301. Doug, please double-check my assumptions. Read the PR for more details. llvm-svn: 86465 | |||||
* | Add a checker for CWE-467: Use of sizeof() on a Pointer Type. | Zhongxing Xu | 2009-11-08 | 2 | -0/+63 | |
| | | | | llvm-svn: 86464 | |||||
* | When checking the namespace of a redeclaration or definition, look through ↵ | Sebastian Redl | 2009-11-08 | 1 | -11/+16 | |
| | | | | | | linkage specs. Fixes PR5430. llvm-svn: 86461 | |||||
* | Don't reprocess non-dependent initializers of non-dependent VarDecls. Fixes ↵ | Sebastian Redl | 2009-11-08 | 1 | -0/+9 | |
| | | | | | | PR5426. llvm-svn: 86460 | |||||
* | Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky. | Edward O'Callaghan | 2009-11-08 | 1 | -0/+4 | |
| | | | | llvm-svn: 86459 | |||||
* | Add clarifying parens. | Daniel Dunbar | 2009-11-08 | 1 | -1/+1 | |
| | | | | llvm-svn: 86457 | |||||
* | Test commit - minor terminology change to my recent patch suggested by John ↵ | Alexis Hunt | 2009-11-08 | 2 | -6/+6 | |
| | | | | | | McCall llvm-svn: 86442 | |||||
* | Always make sure we're using an unqualified type when building a | Douglas Gregor | 2009-11-08 | 1 | -2/+2 | |
| | | | | | | constructor name. Fixes PR5418. llvm-svn: 86441 | |||||
* | Handle member expressions where the member declaration is actually a static ↵ | Anders Carlsson | 2009-11-07 | 1 | -0/+3 | |
| | | | | | | variable. Fixes PR5392. llvm-svn: 86414 | |||||
* | More LValue related code cleanup. | Anders Carlsson | 2009-11-07 | 1 | -18/+27 | |
| | | | | llvm-svn: 86413 | |||||
* | More cleanup, the code is much easier to follow now. | Anders Carlsson | 2009-11-07 | 1 | -24/+11 | |
| | | | | llvm-svn: 86412 | |||||
* | Reduce nesting, no functionality change. | Anders Carlsson | 2009-11-07 | 1 | -18/+20 | |
| | | | | llvm-svn: 86411 | |||||
* | We only need to call SetObjCNonGC for local variables. No functionality change. | Anders Carlsson | 2009-11-07 | 1 | -3/+3 | |
| | | | | llvm-svn: 86410 | |||||
* | Change EmitPointerToDataMemberLValue to take a FieldDecl. No intended ↵ | Anders Carlsson | 2009-11-07 | 2 | -5/+5 | |
| | | | | | | functionality change. llvm-svn: 86407 | |||||
* | Patch to gives an error that at least points users in the direction of the ↵ | Fariborz Jahanian | 2009-11-07 | 2 | -0/+27 | |
| | | | | | | | | error, rather than an error about incompatible types. Patch by Sean Hunt. llvm-svn: 86402 |