Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add checker for CWE-588: Attempt to Access Child of a Non-structure Pointer. | Zhongxing Xu | 2009-11-09 | 8 | -8/+102 | |
| | | | | 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 | 6 | -2/+83 | |
| | | | | llvm-svn: 86523 | |||||
* | Add checker for CWE-469: Use of Pointer Subtraction to Determine Size. This | Zhongxing Xu | 2009-11-09 | 4 | -1/+78 | |
| | | | | | | | 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 | |||||
* | Remove dead code. | Zhongxing Xu | 2009-11-09 | 1 | -3/+0 | |
| | | | | llvm-svn: 86512 | |||||
* | fix thinko | Chris Lattner | 2009-11-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 86509 | |||||
* | Add hack to make the given testcase work. As far as I can tell, this change is | Eli Friedman | 2009-11-09 | 2 | -1/+16 | |
| | | | | | | reasonably safe, but it doesn't seem like the right solution. llvm-svn: 86508 | |||||
* | mention that clang defaults to C99 mode, PR5388 | Chris Lattner | 2009-11-09 | 1 | -0/+6 | |
| | | | | llvm-svn: 86507 | |||||
* | remove a mostly obsolete "word of warning" | Chris Lattner | 2009-11-09 | 1 | -18/+1 | |
| | | | | llvm-svn: 86506 | |||||
* | Add a test case for CWE-467, and simplify the wording of the warning. | Zhongxing Xu | 2009-11-09 | 2 | -1/+9 | |
| | | | | 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 | 9 | -200/+65 | |
| | | | | | | | | | | | | | | | | 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 | 2 | -0/+35 | |
| | | | | | | 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 | 4 | -1/+67 | |
| | | | | llvm-svn: 86464 | |||||
* | When checking the namespace of a redeclaration or definition, look through ↵ | Sebastian Redl | 2009-11-08 | 2 | -11/+23 | |
| | | | | | | linkage specs. Fixes PR5430. llvm-svn: 86461 | |||||
* | Don't reprocess non-dependent initializers of non-dependent VarDecls. Fixes ↵ | Sebastian Redl | 2009-11-08 | 2 | -0/+31 | |
| | | | | | | 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 | |||||
* | Simplify. | Daniel Dunbar | 2009-11-08 | 1 | -5/+2 | |
| | | | | llvm-svn: 86456 | |||||
* | Revert unintentional change to this file. | Daniel Dunbar | 2009-11-08 | 1 | -2/+1 | |
| | | | | llvm-svn: 86455 | |||||
* | Test commit - minor terminology change to my recent patch suggested by John ↵ | Alexis Hunt | 2009-11-08 | 3 | -8/+8 | |
| | | | | | | 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 | |||||
* | Move a function which returns a class outside of extern C scope. | Daniel Dunbar | 2009-11-08 | 1 | -65/+64 | |
| | | | | llvm-svn: 86439 | |||||
* | CIndex: Add temporary hack to leak memory instead of returning invalid pointers. | Daniel Dunbar | 2009-11-08 | 2 | -3/+6 | |
| | | | | llvm-svn: 86438 | |||||
* | Drop require_and_and argument. | Daniel Dunbar | 2009-11-08 | 1 | -2/+1 | |
| | | | | llvm-svn: 86433 | |||||
* | Remove RUN: true lines. | Daniel Dunbar | 2009-11-08 | 99 | -100/+3 | |
| | | | | llvm-svn: 86432 | |||||
* | Move test/Index input files into a sub directory (not scanned as tests). | Daniel Dunbar | 2009-11-08 | 14 | -51/+40 | |
| | | | | llvm-svn: 86431 | |||||
* | Eliminate &&s in tests. | Daniel Dunbar | 2009-11-08 | 416 | -1591/+1591 | |
| | | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430 | |||||
* | Rework site config for cmake to be generated at configure time, and only pass | Daniel Dunbar | 2009-11-07 | 2 | -30/+26 | |
| | | | | | | | | | the 'build_config' value in at runtime using the new lit runtime user parameter feature. This simplifies things and drops a dependency on 'sed', FWIW. llvm-svn: 86421 | |||||
* | Tweak a FIXME. | Daniel Dunbar | 2009-11-07 | 1 | -2/+3 | |
| | | | | llvm-svn: 86420 | |||||
* | Handle member expressions where the member declaration is actually a static ↵ | Anders Carlsson | 2009-11-07 | 2 | -0/+22 | |
| | | | | | | 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 | 3 | -0/+29 | |
| | | | | | | | | error, rather than an error about incompatible types. Patch by Sean Hunt. llvm-svn: 86402 | |||||
* | commit test update | Chris Lattner | 2009-11-07 | 1 | -3/+3 | |
| | | | | llvm-svn: 86396 | |||||
* | teach the various targets what native integer types they have. | Chris Lattner | 2009-11-07 | 2 | -18/+19 | |
| | | | | llvm-svn: 86395 | |||||
* | Fix some build warnings. | Daniel Dunbar | 2009-11-07 | 1 | -2/+5 | |
| | | | | llvm-svn: 86393 | |||||
* | Add some missing libraries for CMake as well. | Daniel Dunbar | 2009-11-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 86390 | |||||
* | Add some missing libraries. | Daniel Dunbar | 2009-11-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 86389 | |||||
* | Cope with calls to operator() templates. Fixes PR5419. | Douglas Gregor | 2009-11-07 | 2 | -1/+20 | |
| | | | | llvm-svn: 86387 | |||||
* | add missing #include | Chris Lattner | 2009-11-07 | 1 | -0/+1 | |
| | | | | llvm-svn: 86368 |