| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Devirtualize Decl::getCanonicalDecl(). | Douglas Gregor | 2011-02-17 | 5 | -9/+32 |
| | | | | | llvm-svn: 125735 | ||||
| * | Step #1/N of implementing support for __label__: split labels into | Chris Lattner | 2011-02-17 | 39 | -384/+294 |
| | | | | | | | | | | | | | | | | | | | | LabelDecl and LabelStmt. There is a 1-1 correspondence between the two, but this simplifies a bunch of code by itself. This is because labels are the only place where we previously had references to random other statements, causing grief for AST serialization and other stuff. This does cause one regression (attr(unused) doesn't silence unused label warnings) which I'll address next. This does fix some minor bugs: 1. "The only valid attribute " diagnostic was capitalized. 2. Various diagnostics printed as ''labelname'' instead of 'labelname' 3. This reduces duplication of label checking between functions and blocks. Review appreciated, particularly for the cindex and template bits. llvm-svn: 125733 | ||||
| * | Devirtualize Decl::getBody() and Decl::hasBody(). | Douglas Gregor | 2011-02-17 | 4 | -5/+23 |
| | | | | | llvm-svn: 125731 | ||||
| * | De-virtualize Decl::isOutOfLine(). | Douglas Gregor | 2011-02-17 | 4 | -7/+17 |
| | | | | | llvm-svn: 125730 | ||||
| * | When printing a qualified type, look through a substituted template | Douglas Gregor | 2011-02-17 | 7 | -13/+73 |
| | | | | | | | | | | | parameter type to see what's behind it, so that we don't end up printing silly things like "float const *" when "const float *" would make more sense. Also, replace the pile of "isa" tests with a simple switch enumerating all of the cases, making a few more obvious cases use prefix qualifiers. llvm-svn: 125729 | ||||
| * | simplify a bit. | Chris Lattner | 2011-02-17 | 2 | -4/+2 |
| | | | | | llvm-svn: 125724 | ||||
| * | tidy up | Chris Lattner | 2011-02-17 | 1 | -2/+2 |
| | | | | | llvm-svn: 125723 | ||||
| * | Improve parser recovery in "for" statements, from Richard Smith! | Douglas Gregor | 2011-02-17 | 2 | -7/+38 |
| | | | | | llvm-svn: 125722 | ||||
| * | I will not hold on to temporary StringRefs. | Douglas Gregor | 2011-02-17 | 1 | -50/+51 |
| | | | | | | | | | | | | | | | | I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. llvm-svn: 125718 | ||||
| * | When Parser::ParseExpressionList isn't given a completer, fall back to | Douglas Gregor | 2011-02-17 | 2 | -0/+16 |
| | | | | | | | | normal "expression" completion. Fixes the most annoying code-completion bug I've found. llvm-svn: 125715 | ||||
| * | Fix PR9025 and add a diagnostic (and sometimes a fixit) for an overloaded | Matt Beaumont-Gay | 2011-02-17 | 3 | -6/+77 |
| | | | | | | | | function name used as the base of a member expression. Early feedback from Chandler Carruth, and code review from Nick Lewycky. llvm-svn: 125714 | ||||
| * | Bump up IdentifierInfo::ObjCOrBuiltinID to use 11 bits instead of 10. Fixes ↵ | Ted Kremenek | 2011-02-17 | 1 | -2/+2 |
| | | | | | | | | | PR 9231. Apparently we can blow out the number of builtin IDs on FreeBSD with only 10 bits. llvm-svn: 125713 | ||||
| * | Begin overhaul of scan-build/ccc-analyzer's handling of checker options. | Ted Kremenek | 2011-02-17 | 2 | -119/+61 |
| | | | | | | | | | We now rely on 'clang --analyze' to provide the default set of checkers. We're still working on the new '-analyzer-checker <checker>' interface, and once that's ready we'll wire it up to scan-build. llvm-svn: 125712 | ||||
| * | Disable default synthesized properties until we can properly re-evaluate the ↵ | Ted Kremenek | 2011-02-17 | 1 | -2/+1 |
| | | | | | | | feature. llvm-svn: 125708 | ||||
| * | fix clang -MM output to escape spaces in filenames. This seems to be | Chris Lattner | 2011-02-17 | 1 | -7/+18 |
| | | | | | | | the only character that GCC escapes. PR9224. llvm-svn: 125707 | ||||
| * | update this test now that reassociate isn't stripping nsw's pointlessly. | Chris Lattner | 2011-02-17 | 1 | -2/+2 |
| | | | | | llvm-svn: 125705 | ||||
| * | Convert MaxFieldAlignment to CharUnits from bits. No change in functionality | Ken Dyck | 2011-02-17 | 1 | -18/+23 |
| | | | | | | | intended. llvm-svn: 125704 | ||||
| * | Improve diagnostics when property names an object type of | Fariborz Jahanian | 2011-02-17 | 3 | -0/+30 |
| | | | | | | | a forward class. // rdar://8851803 llvm-svn: 125699 | ||||
| * | Implement code completion results for the Objective-C Key-Value Coding | Douglas Gregor | 2011-02-17 | 4 | -21/+772 |
| | | | | | | | (KVC) and Key-Value Observing (KVO) protocols. llvm-svn: 125696 | ||||
| * | Ensure that the NRVO flag has some block to insert into. Fixes PR9178! | Nick Lewycky | 2011-02-16 | 2 | -1/+19 |
| | | | | | llvm-svn: 125694 | ||||
| * | Fix assertion failure in -Warray-bounds on template parameters used as arrays. | Ted Kremenek | 2011-02-16 | 2 | -1/+8 |
| | | | | | llvm-svn: 125693 | ||||
| * | Block rewriting bug. Don't take address of captured | Fariborz Jahanian | 2011-02-16 | 2 | -1/+52 |
| | | | | | | | | byref variables again when passing them to inner blocks. // rdar://9006279 llvm-svn: 125690 | ||||
| * | Placate Doug and change capitalization of diagnostic note. | Ted Kremenek | 2011-02-16 | 2 | -3/+3 |
| | | | | | llvm-svn: 125688 | ||||
| * | Makes most methods in SVals.h conform to the naming guide. Reviewed | Zhanyong Wan | 2011-02-16 | 18 | -47/+46 |
| | | | | | | | by kremenek. llvm-svn: 125687 | ||||
| * | 3000 Sema diagnostics should be enough for anyone. | Chandler Carruth | 2011-02-16 | 1 | -1/+1 |
| | | | | | llvm-svn: 125684 | ||||
| * | Fix a thinko with llvm::Optional, which is clearly the most dangerous class ↵ | Douglas Gregor | 2011-02-16 | 1 | -4/+8 |
| | | | | | | | template in the universe llvm-svn: 125679 | ||||
| * | Teach the CXCodeCompleteResults results structure, which stores | Douglas Gregor | 2011-02-16 | 3 | -7/+33 |
| | | | | | | | | | | code-completion results accessed via libclang, to extend the lifetime of the allocator used for cached global code-completion results at least until these completion results are destroyed. Fixes <rdar://problem/8997369>. llvm-svn: 125678 | ||||
| * | If preprocessed token introduced empty filename then use main translation ↵ | Devang Patel | 2011-02-16 | 2 | -1/+10 |
| | | | | | | | unit's filename for debug info entries. llvm-svn: 125672 | ||||
| * | Improve the invalidation logic for the cache of global code | Douglas Gregor | 2011-02-16 | 2 | -31/+117 |
| | | | | | | | | | completions. We now compute a hash of the names of all top-level declarations and macro definitions, and invalidate the cache when the hash value changes. llvm-svn: 125670 | ||||
| * | Teach PPChainedCallbacks to forward the InclusionDirective() callback. | Douglas Gregor | 2011-02-16 | 1 | -0/+12 |
| | | | | | llvm-svn: 125669 | ||||
| * | Warning -> ExtWarn | Argyrios Kyrtzidis | 2011-02-16 | 1 | -2/+2 |
| | | | | | llvm-svn: 125664 | ||||
| * | Remove this FIXME; clear up an unused variable; style. | John McCall | 2011-02-16 | 1 | -8/+6 |
| | | | | | llvm-svn: 125662 | ||||
| * | Save a copy expression for non-trivial copy constructions of catch variables. | John McCall | 2011-02-16 | 10 | -31/+162 |
| | | | | | llvm-svn: 125661 | ||||
| * | Adds a CMake target for the Basic lib's unit tests. Reviewed by | Zhanyong Wan | 2011-02-16 | 1 | -0/+6 |
| | | | | | | | jyasskin and chapuni. llvm-svn: 125657 | ||||
| * | Improves CMakeLists.txt for Clang's unit tests: make "linked | Zhanyong Wan | 2011-02-16 | 1 | -11/+7 |
| | | | | | | | | components" and "used libs" arguments of add_clang_unittest(). Reviewed by jyasskin and chapuni. llvm-svn: 125652 | ||||
| * | Tweak -Warray-bounds diagnostics based on feedback from Chandler. | Ted Kremenek | 2011-02-16 | 3 | -18/+29 |
| | | | | | llvm-svn: 125649 | ||||
| * | CMake: Tweak for Visual Studio 10 quirk at clang-standalone build. | NAKAMURA Takumi | 2011-02-16 | 1 | -0/+9 |
| | | | | | llvm-svn: 125647 | ||||
| * | test/CMakeLists.txt: Don't depend on llvm toolchain at clang-standalone build. | NAKAMURA Takumi | 2011-02-16 | 1 | -3/+7 |
| | | | | | llvm-svn: 125646 | ||||
| * | Revert r125642. This broke the build? It should be a no-op. | Nick Lewycky | 2011-02-16 | 1 | -1/+1 |
| | | | | | llvm-svn: 125645 | ||||
| * | test/PCH/headersearch.cpp fails on Win32. Not trivial to fix. | Francois Pichet | 2011-02-16 | 1 | -0/+1 |
| | | | | | llvm-svn: 125644 | ||||
| * | Convert the UnpackedAlignment field to CharUnits from bits. No change in | Ken Dyck | 2011-02-16 | 1 | -6/+9 |
| | | | | | | | functionality intended. llvm-svn: 125643 | ||||
| * | Don't use "../foo" to return to the current directory. | Nick Lewycky | 2011-02-16 | 1 | -1/+1 |
| | | | | | llvm-svn: 125642 | ||||
| * | Convert Alignment member to CharUnits from bits. No change in functionality | Ken Dyck | 2011-02-16 | 1 | -15/+16 |
| | | | | | | | intended. llvm-svn: 125641 | ||||
| * | Add trivial buffer overflow checking in Sema. | Ted Kremenek | 2011-02-16 | 6 | -2/+61 |
| | | | | | llvm-svn: 125640 | ||||
| * | Convert NonVirtualSize to CharUnits from bits. No change in functionality | Ken Dyck | 2011-02-16 | 1 | -7/+9 |
| | | | | | | | intended. llvm-svn: 125639 | ||||
| * | Convert NonVirtualAlignment to CharUnits. No change in functionality | Ken Dyck | 2011-02-16 | 1 | -6/+5 |
| | | | | | | | intended. llvm-svn: 125638 | ||||
| * | [analyzer] AnalyzerFrontend is dependent on AnalyzerCheckers. | Argyrios Kyrtzidis | 2011-02-16 | 1 | -1/+2 |
| | | | | | llvm-svn: 125637 | ||||
| * | [analyzer] Use the new registration mechanism on the apple checkers: | Argyrios Kyrtzidis | 2011-02-16 | 10 | -25/+54 |
| | | | | | | | | | | | NilArgChecker CFNumberCreateChecker NSAutoreleasePoolChecker CFRetainReleaseChecker ClassReleaseChecker llvm-svn: 125636 | ||||
| * | When searching for visible declarations (e.g., for code completion), | Douglas Gregor | 2011-02-16 | 2 | -1/+14 |
| | | | | | | | | be sure to look at all of the Objective-C class declarations within a @class. Fixes <rdar://problem/8876207>. llvm-svn: 125635 | ||||
| * | Simplify test to check an aggregate argument that has non trivial ↵ | Devang Patel | 2011-02-16 | 5 | -23/+20 |
| | | | | | | | | | constructor or destructor. This patch rewrites r125142. llvm-svn: 125632 | ||||

