summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Add checker for CWE-588: Attempt to Access Child of a Non-structure Pointer.Zhongxing Xu2009-11-098-8/+102
| | | | llvm-svn: 86529
* Update CMakeDaniel Dunbar2009-11-091-0/+2
| | | | llvm-svn: 86528
* Put all long strings in 80-col.Zhongxing Xu2009-11-093-3/+7
| | | | llvm-svn: 86527
* Add checker for CWE-587: Assignment of a Fixed Address to a Pointer.Zhongxing Xu2009-11-096-2/+83
| | | | llvm-svn: 86523
* Add checker for CWE-469: Use of Pointer Subtraction to Determine Size. ThisZhongxing Xu2009-11-094-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 Friedman2009-11-091-17/+18
| | | | llvm-svn: 86516
* Explicitly note that pre-inc/dec lvalues are not supported yet, so that itEli Friedman2009-11-091-1/+5
| | | | | | doesn't crash. (Such expressions are valid in C++, but not in C.) llvm-svn: 86513
* Remove dead code.Zhongxing Xu2009-11-091-3/+0
| | | | llvm-svn: 86512
* fix thinkoChris Lattner2009-11-091-1/+1
| | | | llvm-svn: 86509
* Add hack to make the given testcase work. As far as I can tell, this change isEli Friedman2009-11-092-1/+16
| | | | | | reasonably safe, but it doesn't seem like the right solution. llvm-svn: 86508
* mention that clang defaults to C99 mode, PR5388Chris Lattner2009-11-091-0/+6
| | | | llvm-svn: 86507
* remove a mostly obsolete "word of warning"Chris Lattner2009-11-091-18/+1
| | | | llvm-svn: 86506
* Add a test case for CWE-467, and simplify the wording of the warning.Zhongxing Xu2009-11-092-1/+9
| | | | llvm-svn: 86504
* Rename areAllFields32Or64BitBasicType to canExpandIndirectArgument to closer ↵Daniel Dunbar2009-11-091-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 Friedman2009-11-091-4/+0
| | | | llvm-svn: 86501
* Unify the codepaths used to verify base and member initializers for explicitlyEli Friedman2009-11-099-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 Friedman2009-11-081-3/+2
| | | | llvm-svn: 86485
* Update CMake file.Benjamin Kramer2009-11-081-0/+1
| | | | llvm-svn: 86479
* Special-case default argument expression in instantiation. This should fix ↵Sebastian Redl2009-11-082-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 Xu2009-11-084-1/+67
| | | | llvm-svn: 86464
* When checking the namespace of a redeclaration or definition, look through ↵Sebastian Redl2009-11-082-11/+23
| | | | | | linkage specs. Fixes PR5430. llvm-svn: 86461
* Don't reprocess non-dependent initializers of non-dependent VarDecls. Fixes ↵Sebastian Redl2009-11-082-0/+31
| | | | | | PR5426. llvm-svn: 86460
* Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky.Edward O'Callaghan2009-11-081-0/+4
| | | | llvm-svn: 86459
* Add clarifying parens.Daniel Dunbar2009-11-081-1/+1
| | | | llvm-svn: 86457
* Simplify.Daniel Dunbar2009-11-081-5/+2
| | | | llvm-svn: 86456
* Revert unintentional change to this file.Daniel Dunbar2009-11-081-2/+1
| | | | llvm-svn: 86455
* Test commit - minor terminology change to my recent patch suggested by John ↵Alexis Hunt2009-11-083-8/+8
| | | | | | McCall llvm-svn: 86442
* Always make sure we're using an unqualified type when building aDouglas Gregor2009-11-081-2/+2
| | | | | | constructor name. Fixes PR5418. llvm-svn: 86441
* Move a function which returns a class outside of extern C scope.Daniel Dunbar2009-11-081-65/+64
| | | | llvm-svn: 86439
* CIndex: Add temporary hack to leak memory instead of returning invalid pointers.Daniel Dunbar2009-11-082-3/+6
| | | | llvm-svn: 86438
* Drop require_and_and argument.Daniel Dunbar2009-11-081-2/+1
| | | | llvm-svn: 86433
* Remove RUN: true lines.Daniel Dunbar2009-11-0899-100/+3
| | | | llvm-svn: 86432
* Move test/Index input files into a sub directory (not scanned as tests).Daniel Dunbar2009-11-0814-51/+40
| | | | llvm-svn: 86431
* Eliminate &&s in tests.Daniel Dunbar2009-11-08416-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 passDaniel Dunbar2009-11-072-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 Dunbar2009-11-071-2/+3
| | | | llvm-svn: 86420
* Handle member expressions where the member declaration is actually a static ↵Anders Carlsson2009-11-072-0/+22
| | | | | | variable. Fixes PR5392. llvm-svn: 86414
* More LValue related code cleanup.Anders Carlsson2009-11-071-18/+27
| | | | llvm-svn: 86413
* More cleanup, the code is much easier to follow now.Anders Carlsson2009-11-071-24/+11
| | | | llvm-svn: 86412
* Reduce nesting, no functionality change.Anders Carlsson2009-11-071-18/+20
| | | | llvm-svn: 86411
* We only need to call SetObjCNonGC for local variables. No functionality change.Anders Carlsson2009-11-071-3/+3
| | | | llvm-svn: 86410
* Change EmitPointerToDataMemberLValue to take a FieldDecl. No intended ↵Anders Carlsson2009-11-072-5/+5
| | | | | | functionality change. llvm-svn: 86407
* Patch to gives an error that at least points users in the direction of the ↵Fariborz Jahanian2009-11-073-0/+29
| | | | | | | | error, rather than an error about incompatible types. Patch by Sean Hunt. llvm-svn: 86402
* commit test updateChris Lattner2009-11-071-3/+3
| | | | llvm-svn: 86396
* teach the various targets what native integer types they have.Chris Lattner2009-11-072-18/+19
| | | | llvm-svn: 86395
* Fix some build warnings.Daniel Dunbar2009-11-071-2/+5
| | | | llvm-svn: 86393
* Add some missing libraries for CMake as well.Daniel Dunbar2009-11-071-1/+1
| | | | llvm-svn: 86390
* Add some missing libraries.Daniel Dunbar2009-11-071-1/+1
| | | | llvm-svn: 86389
* Cope with calls to operator() templates. Fixes PR5419.Douglas Gregor2009-11-072-1/+20
| | | | llvm-svn: 86387
* add missing #includeChris Lattner2009-11-071-0/+1
| | | | llvm-svn: 86368
OpenPOWER on IntegriCloud