summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* libclang: migrate USRGenerator to ConstDeclVisitorDmitri Gribenko2013-02-031-59/+62
| | | | llvm-svn: 174281
* libclang: remove unneeded const_castsDmitri Gribenko2013-02-032-4/+3
| | | | llvm-svn: 174280
* clang/test/CodeGenCXX/debug-info-class.cpp: Tweak to unbreak test for a few ↵NAKAMURA Takumi2013-02-031-2/+6
| | | | | | | | | | targets. - Relax a expression for arm-gnueabi. - Exclude msvc to limit target triplets to add limited a few targets. Feel free to remove actions if guys thought they redundant. llvm-svn: 174278
* Revert "[analyzer] Model trivial copy/move ctors with an aggregate bind."Jordan Rose2013-02-025-183/+17
| | | | | | | | | | | ...again. The problem has not been fixed and our internal buildbot is still getting hangs. This reverts r174212, originally applied in r173951, then reverted in r174069. Will not re-apply until the entire project analyzes successfully on my local machine. llvm-svn: 174265
* libclang: introduce cxstring::{createRef,createDup} for StringRefsDmitri Gribenko2013-02-0211-90/+111
| | | | | | Also migrate all clients from the old API. llvm-svn: 174263
* PR15132: Replace "address expression must be an lvalue or a functionRichard Smith2013-02-0212-28/+53
| | | | | | | | | | | | | | designator" diagnostic with more correct and more human-friendly "cannot take address of rvalue of type 'T'". For the case of & &T::f, provide a custom diagnostic, rather than unhelpfully saying "cannot take address of rvalue of type '<overloaded function type>'". For the case of &array_temporary, treat it just like a class temporary (including allowing it as an extension); the existing diagnostic wording for the class temporary case works fine. llvm-svn: 174262
* Correctly classify T{} as an array temporary if T is an array of class type ↵Richard Smith2013-02-022-15/+21
| | | | | | with nontrivial destructor. llvm-svn: 174261
* Add some horrible Perl code to teach scan-build to recursively walk a ↵Ted Kremenek2013-02-021-9/+22
| | | | | | directory for HTML files. llvm-svn: 174260
* Don't forget to run destructors when we create an array temporary of class type.Richard Smith2013-02-024-11/+81
| | | | llvm-svn: 174257
* Revert "Update checker build to checker-271."Ted Kremenek2013-02-022-15/+1
| | | | | | Turns out we didn't update scan-build to work with HTML files in nested directories. llvm-svn: 174256
* Fixed another whitespace issue... *sigh*.Michael Gottesman2013-02-021-3/+3
| | | | llvm-svn: 174255
* Fixed whitespace.Michael Gottesman2013-02-021-1/+1
| | | | llvm-svn: 174254
* On platforms which do not support ARC natively, do not mark ↵Michael Gottesman2013-02-022-7/+37
| | | | | | | | | objc_retain/objc_release as "nonlazybind". rdar://13108298. rdar://13129783. llvm-svn: 174253
* Update checker build to checker-271.Ted Kremenek2013-02-022-1/+15
| | | | llvm-svn: 174252
* Revert r174246, accidentally committed.David Blaikie2013-02-024-20/+2
| | | | | | This reverts commit 1513eb9284c23acfd19cf742b95996fbb11ca741. llvm-svn: 174249
* Sentenc-ify comment added in r174206.David Blaikie2013-02-021-2/+2
| | | | | | Based on post-commit review by Paul Robinson. llvm-svn: 174248
* Generalize DebugInfo tests by avoiding explicit metadata numbersDavid Blaikie2013-02-0217-36/+39
| | | | | | | | | | | | | | | This addresses several (not all) debug info tests that use explicit metadata numbers. Wherever the same number appeared more than once in a test I used a named match to ensure the same number appeared in all those cases (this may still be overly constraining test cases as they may not have actually cared about that relationship). For one-off numbers I just replaced them with an unnamed regex. This may underconstrain poorly written test cases that were interested in checking that certain metadata nodes were related but didn't actually match on all the related nodes numbers. llvm-svn: 174247
* BasicsDavid Blaikie2013-02-024-2/+20
| | | | llvm-svn: 174246
* [analyzer] Always inline functions with bodies generated by BodyFarm.Anna Zaks2013-02-024-3/+68
| | | | | | | | Inlining these functions is essential for correctness. We often have cases where we do not inline calls. For example, the shallow mode and when reanalyzing previously inlined ObjC methods as top level. llvm-svn: 174245
* [analyzer] Print Inline mode with -analyzer-display-progress.Anna Zaks2013-02-021-4/+15
| | | | llvm-svn: 174244
* [analyzer] Fix typo.Anna Zaks2013-02-021-1/+1
| | | | llvm-svn: 174243
* This patch makes "&Cls::purevfn" not an odr use. This isn't what the standardNick Lewycky2013-02-026-18/+58
| | | | | | | | | says, but that's a defect (to be filed). "Cls::purevfn()" is still an odr use. Also fixes a bug that caused us to not mark the function referenced just because we didn't want to mark it odr used. llvm-svn: 174242
* libclang: introduce cxstring::{createRef,createDup} for C stringsDmitri Gribenko2013-02-028-181/+200
| | | | | | Also migrate all clients from the old API. llvm-svn: 174238
* Merge "special" types from different modules in the AST reader.Douglas Gregor2013-02-014-2/+36
| | | | | | | | | Different modules may have different views of the various "special" types in the AST, such as the redefinition type for "id". Merge those types rather than only considering the redefinition types for the first AST file loaded. llvm-svn: 174234
* clang/test/CodeGenCXX/debug-info-class.cpp: Fixup for -Asserts.NAKAMURA Takumi2013-02-011-2/+3
| | | | llvm-svn: 174229
* Const'ify Preprocessor::getPredefinesFileID.Argyrios Kyrtzidis2013-02-011-1/+1
| | | | llvm-svn: 174218
* Unbreak Makefile build after r174216Dmitri Gribenko2013-02-011-1/+2
| | | | llvm-svn: 174217
* Comment parsing: improve the fidelity of XML output for many block commandsDmitri Gribenko2013-02-0115-4/+213
| | | | | | | | | | | | | | This change introduces a 'kind' attribute for the <Para> tag, that captures the kind of the parent block command. For example: \todo Meow. used to be just <Para>Meow.</Para>, but now it is <Para kind="todo">Meow.</Para> llvm-svn: 174216
* Add some missing PPC cpusBill Schmidt2013-02-014-9/+339
| | | | llvm-svn: 174215
* objc: Provide correct fixit instruction when two mismatchedFariborz Jahanian2013-02-012-2/+25
| | | | | | nsstringis are compared without. // rdar://12716301 llvm-svn: 174214
* [analyzer] Explain why we have system-header-simulator*.h files.Jordan Rose2013-02-014-1/+20
| | | | | | Suggested by Csaba. Text based on an e-mail of mine on cfe-dev. llvm-svn: 174213
* Re-apply "[analyzer] Model trivial copy/move ctors with an aggregate bind."Jordan Rose2013-02-015-17/+183
| | | | | | | | With the optimization in the previous commit, this should be safe again. Originally applied in r173951, then reverted in r174069. llvm-svn: 174212
* [analyzer] Reuse a LazyCompoundVal if its type matches the new region.Jordan Rose2013-02-014-37/+72
| | | | | | | | | | | | | | | | | This allows us to keep from chaining LazyCompoundVals in cases like this: CGRect r = CGRectMake(0, 0, 640, 480); CGRect r2 = r; CGRect r3 = r2; Previously we only made this optimization if the struct did not begin with an aggregate member, to make sure that we weren't picking up an LCV for the first field of the struct. But since LazyCompoundVals are typed, we can make that inference directly by comparing types. This is a pure optimization; the test changes are to guard against possible future regressions. llvm-svn: 174211
* Fix exception handling line table problems introduced by r173593David Blaikie2013-02-014-17/+36
| | | | | | | | | | | | | r173593 made us a little too eager to associate all code at the end of a function with the user-written 'return' line. This caused problems with breakpoints as they'd be set in exception handling code preceeding the actual non-exception return handling code, leading to the breakpoint never being hit in non-exceptional execution. This change restores the pre-r173593 exception handling line information where the cleanup code is associated with the '}' not the return line. llvm-svn: 174206
* Add -mqpx and -mno-qpx feature flags to toggle use of the PPC QPX vector ↵Hal Finkel2013-02-014-1/+16
| | | | | | | | instruction set I've renamed the altivec test to ppc-features (because now there is more than one feature to test). llvm-svn: 174204
* [driver] Don't try to generate diagnostic information for dsymutil crashes.Chad Rosier2013-02-013-2/+5
| | | | | | Part of rdar://13134273 llvm-svn: 174203
* Micro change: moved '{' for better readability (+don't confuse ↵Alexander Kornienko2013-02-011-5/+5
| | | | | | -Wimplicit-fallthrough) llvm-svn: 174202
* Fix indentDmitri Gribenko2013-02-011-1/+1
| | | | llvm-svn: 174201
* Fix comments: these are not trailing commentsDmitri Gribenko2013-02-011-4/+4
| | | | llvm-svn: 174197
* libclang: document the purpose of createNull()Dmitri Gribenko2013-02-011-0/+2
| | | | llvm-svn: 174195
* libclang: add comments for CXStringFlagDmitri Gribenko2013-02-011-1/+12
| | | | llvm-svn: 174194
* [modules] Introduce ModuleFile::DirectImportLoc which is the source locationArgyrios Kyrtzidis2013-02-012-0/+9
| | | | | | where the module was explicitly or implicitly imported in the local translation unit. llvm-svn: 174192
* For ModuleLoader::makeModuleVisible() also pass the source location where theArgyrios Kyrtzidis2013-02-0111-15/+27
| | | | | | module import occurred. llvm-svn: 174191
* Introduce SourceManager::PredefinesFileID, to allow each checking of whetherArgyrios Kyrtzidis2013-02-012-0/+13
| | | | | | a source location came from the predefines buffer. llvm-svn: 174190
* Add check for @fooBill Schmidt2013-02-011-0/+1
| | | | llvm-svn: 174185
* Fix a string not seen without assertsBill Schmidt2013-02-011-2/+1
| | | | llvm-svn: 174183
* Fixed segmentation fault when a CFGBlock has NULL successor.Alexander Kornienko2013-02-012-1/+6
| | | | llvm-svn: 174182
* Fix PR14881 by implementing conversion rules between int and complex int.Bill Schmidt2013-02-012-54/+785
| | | | | | | | | | | | | | Prior to the patch, Clang does not properly promote types when a complex integer operand is combined with an integer via a binary operator, or when one is assigned to the other in either order. This patch detects when promotion is needed (and permissible) and generates the necessary code. The test assmes no target has the same size operands for "char" and "long long," and that no target performs arithmetic on char operands without extending them to a larger format first. If there are any targets for which this is not the case, they should be XFAILed. llvm-svn: 174181
* Revise unit testing for -fno-altivec, -mno-altivec.Bill Schmidt2013-02-012-12/+49
| | | | | | | As suggested, reverted the end-to-end test and added variations to an existing Driver test. llvm-svn: 174176
* libclang: itroduce cxstring::createEmpty()Dmitri Gribenko2013-02-0110-43/+53
| | | | llvm-svn: 174174
OpenPOWER on IntegriCloud