summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Enable the use of the new llvm objectsize intrinsic.Mike Stump2009-11-091-4/+2
| | | | llvm-svn: 86607
* Further change in a comment.Fariborz Jahanian2009-11-091-1/+2
| | | | llvm-svn: 86599
* Removed a FIXME on nested type specifier warning.Fariborz Jahanian2009-11-091-1/+0
| | | | llvm-svn: 86598
* Changed error for nested type qualifier mismatch toFariborz Jahanian2009-11-091-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 ofDouglas Gregor2009-11-096-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 Kremenek2009-11-091-3/+0
| | | | llvm-svn: 86595
* Make sure that we look into nested, transparent declaration contextsDouglas Gregor2009-11-091-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 fromFariborz Jahanian2009-11-091-0/+2
| | | | | | its element type. Fixes pr5432. llvm-svn: 86587
* Fix build after r86579.Benjamin Kramer2009-11-091-1/+1
| | | | llvm-svn: 86584
* Make sure that we instantiate default function arguments for anDouglas Gregor2009-11-091-1/+8
| | | | | | overloaded operator(). llvm-svn: 86581
* Add additional note to mark the cause of synthesized constructors. MarkEli Friedman2009-11-091-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 nestedDouglas Gregor2009-11-094-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 CodeGenEli Friedman2009-11-094-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 Carlsson2009-11-091-1/+1
| | | | llvm-svn: 86561
* When transforming an InitListExpr, if we already computed a non-dependent ↵Douglas Gregor2009-11-092-6/+14
| | | | | | type for the InitListExpr, keep it llvm-svn: 86559
* Add check for pointer arithmetic on non-array variables.Zhongxing Xu2009-11-094-0/+75
| | | | llvm-svn: 86538
* Add check for obsolete function call of getpw().Zhongxing Xu2009-11-091-5/+46
| | | | llvm-svn: 86537
* remove redundant file name in CMakeLists.txt.Zhongxing Xu2009-11-091-1/+0
| | | | llvm-svn: 86536
* update CMakeList.txtZhongxing Xu2009-11-091-0/+2
| | | | llvm-svn: 86535
* Update CMakeDaniel Dunbar2009-11-091-0/+1
| | | | llvm-svn: 86533
* Add comments.Zhongxing Xu2009-11-091-0/+1
| | | | llvm-svn: 86532
* Add checker for CWE-588: Attempt to Access Child of a Non-structure Pointer.Zhongxing Xu2009-11-094-6/+90
| | | | 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-094-2/+76
| | | | llvm-svn: 86523
* Add checker for CWE-469: Use of Pointer Subtraction to Determine Size. ThisZhongxing Xu2009-11-093-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 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
* Add hack to make the given testcase work. As far as I can tell, this change isEli Friedman2009-11-091-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 Xu2009-11-091-1/+1
| | | | 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-093-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 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-081-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 Xu2009-11-082-0/+63
| | | | llvm-svn: 86464
* When checking the namespace of a redeclaration or definition, look through ↵Sebastian Redl2009-11-081-11/+16
| | | | | | linkage specs. Fixes PR5430. llvm-svn: 86461
* Don't reprocess non-dependent initializers of non-dependent VarDecls. Fixes ↵Sebastian Redl2009-11-081-0/+9
| | | | | | 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
* Test commit - minor terminology change to my recent patch suggested by John ↵Alexis Hunt2009-11-082-6/+6
| | | | | | 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
* Handle member expressions where the member declaration is actually a static ↵Anders Carlsson2009-11-071-0/+3
| | | | | | 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-072-0/+27
| | | | | | | | error, rather than an error about incompatible types. Patch by Sean Hunt. llvm-svn: 86402
OpenPOWER on IntegriCloud