summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [C++11] Use 'nullptr'. Frontend edition.Craig Topper2014-05-2219-160/+165
| | | | llvm-svn: 209389
* Add hasSameType overload to ASTContext for Type pointers. Switch a typeRichard Trieu2014-05-222-2/+5
| | | | | | comparison check to use this instead of calling Type::getCanonicalTypeInternal llvm-svn: 209378
* VirtualFileSystem: Fix a few directory traversal bugs in VFSWriterJustin Bogner2014-05-213-97/+168
| | | | | | | | | | | There are a couple of issues with writing VFS maps that are awkward to fix within the current mutually recursive approach. Instead, replace the algorithm with an iterative version that uses an explicit stack of directories. Includes tests for cases the old approach was tripping on. llvm-svn: 209332
* Provide an aka for the C++ operator name macro diagnosticAlp Toker2014-05-213-5/+5
| | | | llvm-svn: 209322
* Sema: Implement DR244David Majnemer2014-05-214-22/+21
| | | | | | | | | | | | | | | | Summary: Naming the destructor using a typedef-name for the class-name is well-formed. This fixes PR19620. Reviewers: rsmith, doug.gregor Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3583 llvm-svn: 209319
* cindex/test_cursor.py: no need to skip implicit decls in testsAlp Toker2014-05-211-8/+1
| | | | | | | | | clang was fixed some time ago to always skip "builtins and other cruft" so tools no longer need hacks like this. Passes nosetests. llvm-svn: 209316
* Remove outdated diagnostic.Benjamin Kramer2014-05-211-2/+0
| | | | llvm-svn: 209304
* Improved recovery of switch statementSerge Pavlov2014-05-214-30/+89
| | | | | | | | | Make better diagnostic produced by erroneous switch statement. It fixes PR19022. Differential Revision: http://reviews.llvm.org/D3137 llvm-svn: 209302
* Move virtual methods out of line.Rafael Espindola2014-05-212-21/+44
| | | | | | | This is generally a good thing and in this case should also fix the BUILD_SHARED_LIBS=ON build (see pr19774). llvm-svn: 209300
* Make the parent-map use significantly less memory.Manuel Klimek2014-05-212-4/+41
| | | | | | | | | | | On test files I ran this on, memory consumption overall went down from 2.5G to 2G, without performance regressions. I also investigated making DynTypedNode by itself smaller (by pulling out pointers for everything that doesn't fit in 8 bytes). This led to another 200-300MB saved, but also introduced a significant regression in performance due to the memory management overhead. llvm-svn: 209297
* clang-format: Fix corner case working around one-per-line dict literals.Daniel Jasper2014-05-212-2/+9
| | | | | | | | | | | | | | | Before: var object_literal_with_long_name = { a: 'aaaaaaaaaaaaaaaaaa', b: 'bbbbbbbbbbbbbbbbbb' }; After: var object_literal_with_long_name = { a: 'aaaaaaaaaaaaaaaaaa', b: 'bbbbbbbbbbbbbbbbbb' }; llvm-svn: 209296
* clang-format: Fix incorrect macro call detection.Daniel Jasper2014-05-212-1/+5
| | | | | | | | | | | | | In: struct A { A() noexcept(....) {} }; 'A()' is not a macro call. This fixes llvm.org/PR19814. llvm-svn: 209294
* clang-format: [JS] Support different function literal style.Daniel Jasper2014-05-214-5/+60
| | | | | | | | | | | | | | | | | Before: goog.array.forEach(array, function() { doSomething(); doSomething(); }, this); After: goog.array.forEach(array, function() { doSomething(); doSomething(); }, this); llvm-svn: 209291
* Make global named registers internal variablesRenato Golin2014-05-212-0/+4
| | | | llvm-svn: 209289
* DeclVisitor is not used here.Yaron Keren2014-05-211-1/+0
| | | | llvm-svn: 209285
* Preprocessor: support defined() with operator names for MS compatibilityAlp Toker2014-05-219-59/+94
| | | | | | | | | Also flesh out missing tests, improve diagnostic QOI and fix a couple of corner cases found in the process. Fixes PR10606. llvm-svn: 209276
* [C++11] Use 'nullptr'. Parser edition.Craig Topper2014-05-2113-314/+329
| | | | llvm-svn: 209275
* [C++11] Use 'nullptr'. CodeGen edition.Craig Topper2014-05-2146-854/+895
| | | | llvm-svn: 209272
* utils/CmpDriver: add brief documentation to indicate what this doesAlp Toker2014-05-211-0/+5
| | | | llvm-svn: 209268
* SourceManager: Use setMainFileID() consistentlyAlp Toker2014-05-216-31/+16
| | | | | | | | | | | Eliminate createMainFileID() / createMainFileIDForMemBuffer() utility functions. These didn't add much convenience and conflated two distinct operations. This change makes things easier to follow by providing a consistent interface and getting rid of a bunch of cast-to-voids. llvm-svn: 209266
* [objcmt] Make sure we don't edit the return type to add 'instancetype' if ↵Argyrios Kyrtzidis2014-05-212-4/+18
| | | | | | | | the return type is already that. rdar://16961577 llvm-svn: 209264
* Update for paired llvm commit with AsmVerbose.Eric Christopher2014-05-211-6/+1
| | | | llvm-svn: 209261
* Remove test. Replacing it with a backend test with the optimized IR.Eric Christopher2014-05-211-15/+0
| | | | llvm-svn: 209260
* libclang: Give each VirtualFileOverlay unit test its own nameJustin Bogner2014-05-201-173/+176
| | | | llvm-svn: 209257
* Make this test emit llvm IR rather than assembly.Eric Christopher2014-05-201-1/+1
| | | | llvm-svn: 209255
* VirtualFileSystem: Fix false positives in YAMLVFSWriter::containedInJustin Bogner2014-05-202-1/+61
| | | | | | | | Checking if a path starts with another path isn't sufficient for determining if one is contained within the heirarchy of the other. We need to ensure that the substring ends at a directory boundary. llvm-svn: 209250
* Reduce string duplicationAlp Toker2014-05-201-7/+2
| | | | | | | If we're so keen on saving a dynamic allocation to add the trailing space, we might as well do it in style. llvm-svn: 209247
* RAV reunification: merge Lambda body visitation to DRAVAlp Toker2014-05-202-10/+28
| | | | llvm-svn: 209246
* RAV reunification: merge DISPATCH_STMT() macro back to standard RAVAlp Toker2014-05-202-4/+10
| | | | | | Also add the missing undef in both files. llvm-svn: 209245
* RAV reunification: merge r190728Alp Toker2014-05-201-1/+1
| | | | llvm-svn: 209244
* VirtualFileSystem: Add YAMLVFSWriter to generate VFS mapping filesJustin Bogner2014-05-203-141/+155
| | | | | | | | | This moves the logic to write a JSON VFS mapping from the C api into VirtualFileSystem, so that we can use it internally. No functional change. llvm-svn: 209241
* Update for llvm change to avoid having global flag setting in TargetMachine.Eric Christopher2014-05-201-3/+2
| | | | llvm-svn: 209239
* Cleaning up some range-based for loops so that the automatic type deduction ↵Aaron Ballman2014-05-201-74/+75
| | | | | | is more explicit about pointers and const. Did some minor drive-by const correctness fixes and identifier updates as well. No functional changes. llvm-svn: 209233
* Revert r209231, "Update AttributeReference.rst."Peter Collingbourne2014-05-201-76/+2
| | | | | | According to Aaron, this is being generated on the server now. llvm-svn: 209232
* Update AttributeReference.rst.Peter Collingbourne2014-05-201-2/+76
| | | | llvm-svn: 209231
* Fix testcase from r209228Duncan P. N. Exon Smith2014-05-201-1/+1
| | | | llvm-svn: 209229
* GlobalValue: Testcase for hidden visibility and local linkageDuncan P. N. Exon Smith2014-05-201-0/+8
| | | | | | | | | | | | | | This is a testcase for r209227, a change in LLVM that automatically sets visibility to default when the linkage is changed to local (rather than asserting). What this testcase triggers is hard to reproduce otherwise: the `GlobalValue` is created (with non-local linkage), the visibility is set to hidden, and then the linkage is set to local. PR19760 llvm-svn: 209228
* Fixed spelling.Yaron Keren2014-05-201-1/+1
| | | | llvm-svn: 209224
* Add a check for tautological bitwise comparisons to -Wtautological-compare.Jordan Rose2014-05-205-8/+77
| | | | | | | | | | | This catches issues like: if ((x & 8) == 4) { ... } if ((x | 4) != 3) { ... } Patch by Anders Rönnholm! llvm-svn: 209221
* Make the wording for the flatten docs a little clearer.Peter Collingbourne2014-05-201-2/+3
| | | | llvm-svn: 209220
* Fix testcase for case.Eric Christopher2014-05-201-1/+1
| | | | llvm-svn: 209218
* Implement the flatten attribute.Peter Collingbourne2014-05-207-0/+86
| | | | | | | | | | This is a GNU attribute that causes calls within the attributed function to be inlined where possible. It is implemented by giving such calls the alwaysinline attribute. Differential Revision: http://reviews.llvm.org/D3816 llvm-svn: 209217
* Clean up language and grammar.Eric Christopher2014-05-209-10/+10
| | | | | | | Based on a patch by jfcaron3@gmail.com! PR19806 llvm-svn: 209215
* clang/test/SemaCXX/err_init_conversion_failed.cpp: Tweak for i686-msvc.NAKAMURA Takumi2014-05-201-1/+1
| | | | | | | | | | | For targeting i686-msvc, declarations are seen as thiscall like; void (template_test::S::*)(const int &) __attribute__((thiscall)) void (template_test::S::*)(int) __attribute__((thiscall)) It didn't affect x86_64-msvc. llvm-svn: 209212
* None of these attributes require FunctionTemplate to be explicitly listed as ↵Aaron Ballman2014-05-206-86/+83
| | | | | | | | part of their subject definition. FunctionTemplateDecls are not what the attribute appertains to in the first place -- it attaches to the underlying FunctionDecl. The attribute emitter was using FunctionTemplate to map the diagnostic to "functions or methods", but that isn't a particularly clear diagnostic in these cases anyway (since they do not apply to ObjC methods). Updated the attribute emitter to remove custom logic for FunctionTemplateDecl, and updated the test cases for the change in diagnostic wording. llvm-svn: 209209
* clang-format: [JS] Understand top-level function literals properly.Daniel Jasper2014-05-202-1/+9
| | | | llvm-svn: 209205
* XCore target: sort typestring enum fields alphabeticallyRobert Lytton2014-05-202-18/+25
| | | | llvm-svn: 209196
* Speculative fix for Windows buildbot after r209138Ben Langmuir2014-05-201-0/+5
| | | | | | | | | It appears that Windows doesn't like renaming over open files, which we do in clearOutputFiles. The file being compiled should be safe to removed, but this isn't very satisfying - we don't want to manually manage the lifetime of files we cannot prove have no references. llvm-svn: 209195
* [C++11] Use 'nullptr'. Tooling edition.Craig Topper2014-05-204-29/+30
| | | | llvm-svn: 209192
* [C++11] Use 'nullptr'. Analysis edition.Craig Topper2014-05-2016-305/+311
| | | | llvm-svn: 209191
OpenPOWER on IntegriCloud