summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix incorrect linkage specifiers for selectors.David Chisnall2011-03-141-2/+2
| | | | llvm-svn: 127580
* Fix LIBCLANG_LINK_FLAGS for Darwin.Oscar Fuentes2011-03-141-2/+2
| | | | | | | The previous syntax created a list with the usual semicolon as separator, which breaks the link command. llvm-svn: 127579
* Get rid of the static FileManager::FixupRelativePath.Anders Carlsson2011-03-143-12/+5
| | | | llvm-svn: 127573
* Add an Objective-C checker that checks that arguments passed to some ↵Anders Carlsson2011-03-133-0/+223
| | | | | | | | variadic Objective-C methods are of Objective-C pointer types. Ted or Argiris, I'd appreciate a review! llvm-svn: 127572
* Change GetNullarySelector and GetUnarySelector to take a StringRef.Anders Carlsson2011-03-131-2/+2
| | | | llvm-svn: 127571
* Instead of storing an ASTContext* in FunctionProtoTypes with computed ↵Sebastian Redl2011-03-1313-58/+44
| | | | | | noexcept specifiers, unique FunctionProtoTypes with a ContextualFoldingSet, as suggested by John McCall. llvm-svn: 127568
* Build libclang as a static library too. Now tested on Windows!Oscar Fuentes2011-03-131-28/+36
| | | | | | | | On Windows only the shared library is created. The reason for this is that clang.lib the static library would clash with clang.lib the export library of the dll. llvm-svn: 127566
* Reverting "Build libclang as a static library too."Oscar Fuentes2011-03-131-42/+28
| | | | | | This reverts commit r127556. It breaks the build for MSVC. llvm-svn: 127564
* Fix CFG assertion failure reported in PR 9467. This was due to recent ↵Ted Kremenek2011-03-132-9/+25
| | | | | | changes in optimizing CFGs for switch statements. llvm-svn: 127563
* XFAIL this on windows where <vector> contains surprises.Jakob Stoklund Olesen2011-03-131-0/+1
| | | | llvm-svn: 127559
* Build libclang as a static library too.Oscar Fuentes2011-03-121-28/+42
| | | | llvm-svn: 127556
* Place duplicate argument declaration in inFariborz Jahanian2011-03-127-15/+25
| | | | | | | method prototypes under the -Wduplicate-method-arg and turn it off by default. llvm-svn: 127552
* Revert "Disable delegating constructors for 2.9"Sebastian Redl2011-03-121-5/+1
| | | | | | It is only meant for the release branch. llvm-svn: 127544
* Disable delegating constructors for 2.9Sebastian Redl2011-03-121-1/+5
| | | | llvm-svn: 127543
* Revert "Disable inherited constructors for 2.9."Sebastian Redl2011-03-125-18/+6
| | | | | | It is only meant for the release branch. llvm-svn: 127542
* Disable inherited constructors for 2.9.Sebastian Redl2011-03-125-6/+18
| | | | llvm-svn: 127541
* Use CharUnits for argument passed to AppendPadding() from AppendBitField().Ken Dyck2011-03-121-5/+6
| | | | | | No change in functionality intended. llvm-svn: 127538
* Propagate the new exception information to FunctionProtoType.Sebastian Redl2011-03-1233-414/+997
| | | | | | | | Change the interface to expose the new information and deal with the enormous fallout. Introduce the new ExceptionSpecificationType value EST_DynamicNone to more easily deal with empty throw specifications. Update the tests for noexcept and fix the various bugs uncovered, such as lack of tentative parsing support. llvm-svn: 127537
* Forgotten part of previous commit.Abramo Bagnara2011-03-1211-43/+51
| | | | llvm-svn: 127536
* Fixed type and declaration source range in presence of typeQuals.Abramo Bagnara2011-03-121-1/+1
| | | | llvm-svn: 127535
* Renamed OffsetOfNode::getRange to getSourceRange for uniformity.Abramo Bagnara2011-03-124-6/+6
| | | | llvm-svn: 127534
* Tweak test to hopefully appease FreeBSD buildbot.Ted Kremenek2011-03-121-1/+1
| | | | llvm-svn: 127533
* Remove stray output file.Ted Kremenek2011-03-121-7075/+0
| | | | llvm-svn: 127532
* Re-enable the IdempotentOperations checker for --analyze, and put it and the ↵Ted Kremenek2011-03-1219-49/+7130
| | | | | | DeadStores checker into the "deadcode" group. llvm-svn: 127531
* Don't have side-effects (or rather non-trivial computation) in StringSwitch ↵Ted Kremenek2011-03-121-6/+9
| | | | | | "cases." llvm-svn: 127528
* Add initial version of "IteratorsChecker", a checker to find misues uses of ↵Ted Kremenek2011-03-124-0/+689
| | | | | | | | | C++ iterators. This checker was created by Jim Goodnow II, and I migrated it to the new Checker interface (recent changes by Argiris). llvm-svn: 127525
* Fix comments, and force auto progagation in VisitAggExpr.Ted Kremenek2011-03-121-1/+4
| | | | llvm-svn: 127524
* static analyzer: Handle 'ExprWithCleanups' in ExprEngine by essentially ↵Ted Kremenek2011-03-121-1/+1
| | | | | | ignoring them. llvm-svn: 127523
* Fixes for some more expressions containing function templateids thatDouglas Gregor2011-03-126-58/+168
| | | | | | should be resolvable, from Faisal Vali! llvm-svn: 127521
* When we're determining whether to complain about a conversion from oneDouglas Gregor2011-03-122-1/+24
| | | | | | | | enumeration type to another in C, classify enumeration constants as if they had the type of their enclosing enumeration. Fixes <rdar://problem/9116337>. llvm-svn: 127514
* Change parameter to AppendPadding from bytes to CharUnits. No change inKen Dyck2011-03-111-11/+11
| | | | | | functionality intended. llvm-svn: 127513
* Don't ask if a depenendent CXXRecordDecl has any dependent basesDouglas Gregor2011-03-112-1/+15
| | | | | | | unless we already know that it has a definition. Fixes PR9449/<rdar://problem/9115785>. llvm-svn: 127512
* Implement a hack intended to allow Clang to parse libstdc++ 4.5'sDouglas Gregor2011-03-113-1/+31
| | | | | | | | | | | headers, which use C++0x generalized initializer lists. Per PR7069, it appears that the only use is as the return type of a function, so this commit enables this extension just in that narrow case. If it's enough for libstdc++ 4.5, or if it can be trivially extended to work with libstdc++ 4.5, we'll keep it. Otherwise, or if this breaks anything, we'll revert and wait for the real feature. llvm-svn: 127507
* Use a slightly more semantic interface for emitting call arguments.John McCall2011-03-116-47/+40
| | | | llvm-svn: 127494
* OpenCL: if double precision floating point constant encounteredPeter Collingbourne2011-03-113-6/+15
| | | | | | without cl_khr_fp64, warn and cast to single precision llvm-svn: 127476
* Add support for the OpenCL vec_step operator, by generalising andPeter Collingbourne2011-03-1140-228/+395
| | | | | | | extending the existing support for sizeof and alignof. Original patch by Guy Benyei. llvm-svn: 127475
* Fix PR9453 by not trying to print a warning about ignored qualifiersRafael Espindola2011-03-112-0/+5
| | | | | | in conversion functions. llvm-svn: 127460
* When comparing a null pointer and something else, always cast the nullJohn McCall2011-03-111-15/+26
| | | | | | pointer instead of the other operand. llvm-svn: 127458
* Convert the RecordSize parameter of AppendTailPadding() to CharUnits toKen Dyck2011-03-111-8/+6
| | | | | | | avoid converting to bits and back again. No change in functionality intended. llvm-svn: 127455
* Overload IntExprEvaluator::Success() with a function that takes a CharUnitsKen Dyck2011-03-111-5/+10
| | | | | | parameter to tidy up the places where the expression is a size. llvm-svn: 127454
* Tweak ccc-analyzer's 'Analyze' function to not mutate the original arguments ↵Ted Kremenek2011-03-101-21/+21
| | | | | | list. llvm-svn: 127428
* Profiling showed that 'CheckImplicitConversions' was very slow because of ↵Ted Kremenek2011-03-101-9/+43
| | | | | | | | | | | the call to getSpellingLoc(). On 'aes.c' in the LLVM test suite, this function was consuming 7.4% of -fsyntax-only time. This change fixes this issue by delaying the check that the warning would be issued within a system macro by as long as possible. The main negative of this change is now the logic for this check is done in multiple places in this function instead of just in one place up front. llvm-svn: 127425
* lib/CodeGen/CGCall.cpp: Don't invoke multiple Builder.CreateBitCast() on ↵NAKAMURA Takumi2011-03-101-2/+4
| | | | | | Builder.CreateMemCpy. Or we would see sideeffect incompatibility among gcc and clang. llvm-svn: 127405
* Avoid do drop outer template parameter lists on the floor.Abramo Bagnara2011-03-104-9/+21
| | | | llvm-svn: 127404
* Fixed class type generation for MemberPointerType.Abramo Bagnara2011-03-101-5/+6
| | | | llvm-svn: 127401
* When doing reachability analysis for warnings issued under ↵Ted Kremenek2011-03-105-19/+86
| | | | | | | | | DiagRuntimeBehavior, don't construct a ParentMap or CFGStmtMap. Instead, create a small set of Stmt* -> CFGBlock* mappings during CFG construction for only the statements we care about relating to the diagnostics we want to check for reachability. llvm-svn: 127396
* Instead of round up sizes to '8', round them up to the alignment of the charKen Dyck2011-03-101-2/+4
| | | | | | type. llvm-svn: 127391
* Round up the non-virtual size to the next char instead of rounding down.Ken Dyck2011-03-101-2/+3
| | | | llvm-svn: 127390
* Require AddStmtChoice::alwaysAdd() to take a CFGBuilder& and Stmt*. Prep ↵Ted Kremenek2011-03-101-15/+22
| | | | | | for functionality changes. llvm-svn: 127387
* Remove unused 'AddStmtChoice' argument to CFGBuilder::appendStmt().Ted Kremenek2011-03-101-25/+24
| | | | llvm-svn: 127386
OpenPOWER on IntegriCloud