summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Add an AST matcher for narrowing when a type is volatile-qualified.Aaron Ballman2015-11-234-0/+46
| | | | llvm-svn: 253882
* Revert part of r253813Martell Malone2015-11-231-7/+0
| | | | | | The new lld gnu frontend does not support the -target option llvm-svn: 253874
* clang-format: Signficantly refactor the cast detection.Daniel Jasper2015-11-231-49/+60
| | | | | | No functional changes intended. llvm-svn: 253873
* clang-format: Fix incorrect cast detection.Daniel Jasper2015-11-232-17/+16
| | | | | | | | | | Before: bool b = f(g<int>)&&c; After: bool b = f(g<int>) && c; llvm-svn: 253872
* clang-format: If the template list of a variable declaration spansDaniel Jasper2015-11-232-1/+3
| | | | | | | | | | | | | | | multiple lines, also break before the variable name. Before: std::vector<aaaaaa, // wrap aa> aaa; After: std::vector<aaaaaa, // wrap aa> aaa; llvm-svn: 253871
* [OPENMP] 'out' dependency for 'task' directives must be the same as 'inout'.Alexey Bataev2015-11-232-5/+4
| | | | | | Runtime library requires, that codegen for 'depend' clause for 'out' dependency kind must be the same as codegen for 'depend' clause with 'inout' dependency. llvm-svn: 253866
* [OpenCL 2.0] Apply default address space (AS).Anastasia Stulova2015-11-233-31/+83
| | | | | | | | | | | | If AS of a variable/parameter declaration is not set by the source, OpenCL v2.0 s6.5 defines explicit rules for default ASes: - The AS of global and local static variables defaults to global; - All pointers point to generic AS. http://reviews.llvm.org/D13168 llvm-svn: 253863
* Fix clang-format test. I believe that the new behavior is better.Daniel Jasper2015-11-231-1/+1
| | | | llvm-svn: 253861
* clang-format: Make moving of the Cursor work properly when sorting #includes.Daniel Jasper2015-11-234-43/+75
| | | | llvm-svn: 253860
* Fix calculation of shifted cursor/code positions. Specifically supportDaniel Jasper2015-11-232-27/+34
| | | | | | | | | the case where a specific range is replaced by new text. Previously, the calculation would shift any position from within a replaced region to the first character after the region. This is undersirable, e.g. for clang-format's include sorting. llvm-svn: 253859
* OpenMPClause.h: Fix typos. [-Wdocumentation]NAKAMURA Takumi2015-11-231-3/+3
| | | | llvm-svn: 253854
* [Driver] Mark isForDiagnostics as const. NFC.Vedant Kumar2015-11-231-1/+1
| | | | llvm-svn: 253853
* Revert r253846 (build bot failure))Xinliang David Li2015-11-233-19/+1
| | | | llvm-svn: 253851
* [OpenMP] Parsing and sema support for map clause - add test caseKelvin Li2015-11-231-0/+207
| | | | | | http://reviews.llvm.org/D14134 llvm-svn: 253850
* [OpenMP] Parsing and sema support for map clauseKelvin Li2015-11-2321-17/+811
| | | | | | http://reviews.llvm.org/D14134 llvm-svn: 253849
* Disable frame pointer elimination when using -pgXinliang David Li2015-11-233-1/+19
| | | | | | | | | | | | | | This diff makes sure that the driver does not pass -fomit-frame-pointer or -momit-leaf-frame-pointer to the frontend when -pg is used. Currently, clang gives an error if -fomit-frame-pointer is used in combination with -pg, but -momit-leaf-frame-pointer was forgotten. Also, disable frame pointer elimination in the frontend when -pg is set. Patch by Stefan Kempf. llvm-svn: 253846
* [MS ABI] Tolerate invokes of __RTDynamicCastDavid Majnemer2015-11-232-1/+21
| | | | | | | | | | | | The pointer returned by __RTDynamicCast must be bitcasted. However, it was not expected that __RTDynamicCast would be invoked, resulting in the bitcast occuring in a different BasicBlock than the invoke. This caused a down-stream PHI to get confused about which BasicBlock the incomming value was from. This fixes PR25606. llvm-svn: 253843
* [coroutines] Check for overload sets in co_yield / co_return operands being ↵Richard Smith2015-11-222-19/+36
| | | | | | resolved by a call to yield_value / return_value before rejecting them. llvm-svn: 253817
* [coroutines] Build implicit return_value / return_void calls for co_return.Richard Smith2015-11-223-25/+51
| | | | llvm-svn: 253816
* Test: Update mingw-useld.c to reflect r253813Martell Malone2015-11-221-4/+4
| | | | llvm-svn: 253815
* Driver: Specifically tell the linker the target for mingw-w64Martell Malone2015-11-221-1/+8
| | | | | | | | | Cross compiling from linux and OSX results in Error: Exec format. This is because the linker is expecting ELF formated objects. By passing the target we can explicitly tell the linker that it should be linking COFF objects regardless of the host. llvm-svn: 253813
* [coroutines] Materialize the awaitable before generating the await_* calls.Richard Smith2015-11-221-5/+9
| | | | llvm-svn: 253812
* [coroutines] Factor out co_await representation into common base class for ↵Richard Smith2015-11-227-109/+129
| | | | | | co_await and co_yield, and use it to hold await_* calls. llvm-svn: 253811
* clang-format: Make sorting includes respect // clang-format offDaniel Jasper2015-11-212-1/+29
| | | | llvm-svn: 253772
* Let's try to fix this test again with a fixed target tripleMatthias Braun2015-11-211-3/+4
| | | | llvm-svn: 253760
* Fix c-unicode.c testcase again.Matthias Braun2015-11-211-3/+3
| | | | | | | | Specifying a fixed triple is not possible because that target may not even be compiler. Go for a simpler fix by using a _? regex for the prefix. llvm-svn: 253758
* Fix testcase when building on darwinMatthias Braun2015-11-211-2/+2
| | | | | | Explicitely specify a target to avoid "_" prefixes on the names. llvm-svn: 253741
* [clang] Disable Unicode in asm filesVinicius Tinti2015-11-203-2/+25
| | | | | | | | | Clang should not convert tokens to Unicode when preprocessing assembly files. Fixes PR25558. llvm-svn: 253738
* [coroutines] Better handling of placeholder types.Richard Smith2015-11-202-6/+45
| | | | llvm-svn: 253731
* [coroutines] Support braced-init-list as operand of co_yield expression.Richard Smith2015-11-202-3/+7
| | | | llvm-svn: 253726
* [coroutines] Synthesize yield_value call for co_yield.Richard Smith2015-11-202-17/+69
| | | | llvm-svn: 253725
* [CMake] Add support for specifying arguments to the bootstrap build.Chris Bieneman2015-11-201-0/+31
| | | | | | | | | | This adds support for three types of argument specifications for bootstrap builds: (1) Arguments prefixed with BOOTSTRAP_* will be passed through with the leading BOOTSTRAP_ removed. (2) CLANG_BOOTSTRAP_PASSTHROUGH can specify a list of variables to be passed through as they are set. (3) BOOTSTRAP_DEFAULT_PASSTHROUGH is a list of some default passthrough variables that are always passed through. Those variables include the version string and should only specify variables that are always expected to be the same between the stage1 and stage2 llvm-svn: 253721
* [CMake] Fix handling of passing through semi-colon separated lists.Chris Bieneman2015-11-201-1/+2
| | | | | | When passing around CMake arguments as lists of arguments any arguments containing lists need to have their semi-colons escaped otherwise CMake will split the arguments in the middle. llvm-svn: 253720
* Driver: Defer computation of linker path until it is needed.Peter Collingbourne2015-11-206-15/+12
| | | | | | | This allows us to construct Linux toolchains without a valid linker. This is needed for example to build a CUDA device toolchain after r253385. llvm-svn: 253707
* Fix test case function name checksBill Seurer2015-11-201-3/+3
| | | | | | | | | This is similar to the earlier fix I did, r253702, expect that here it is function names that are being searched for. If the function name matches part of the directory name it can cause an apparent test case failure. llvm-svn: 253706
* Thread Safety Analysis: Fix DenseMap iterator invalidation UAFReid Kleckner2015-11-201-39/+36
| | | | | | | | | | | Rather than storing BeforeInfo in the DenseMap by value, this stores a unique_ptr to it, so that we can keep a pointer to it live across subsequent DenseMap insertions. This change also removes the unique_ptr wrapper around BeforeVect because now we're indirecting at a higher level. llvm-svn: 253694
* Honor system specific paths of MAN pagesChris Bieneman2015-11-202-8/+8
| | | | | | | | | | | | | | Summary: Caught on NetBSD. Patch by: Kamil Rytarowski (krytarowski) Reviewers: beanz, jroelofs Subscribers: cfe-commits, joerg Differential Revision: http://reviews.llvm.org/D14800 llvm-svn: 253693
* Add -disable-llvm-passes for frontend debug info tests.Dehao Chen2015-11-202-11/+6
| | | | | | | | | | | | Summary: The frontend debuginfo tests should not invoke llvm passes which includes add-discriminators that will change the debug info generated by FE. Reviewers: dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D14848 llvm-svn: 253686
* [DebugInfo] Look through type sugar on union types when castingReid Kleckner2015-11-202-1/+18
| | | | | | Fixes PR25584. llvm-svn: 253680
* Revert r253582: "clang-cl: Make /W4 imply -Wall -Wextra (PR25563)"Hans Wennborg2015-11-204-33/+8
| | | | | | | | | | The patch expanded the flag *at the end*, breaking invocations like: clang-cl /W4 -Wno-unused-parameter Reverting for now. llvm-svn: 253678
* Handle ARMv6-J as an alias, instead of fake architectureArtyom Skrobov2015-11-201-2/+2
| | | | | | | | | | | | Summary: Clang-side update, corresponding to D14755 Reviewers: rengolin, bogden, compnerd Subscribers: aemerson, rengolin, cfe-commits Differential Revision: http://reviews.llvm.org/D14756 llvm-svn: 253677
* clang-format: [JS] Make AllowShortFunctionsOnASingle line value "Empty"Daniel Jasper2015-11-202-0/+7
| | | | | | work properly. llvm-svn: 253674
* clang-format: [JS] Properly add a space after "in" in for loops.Daniel Jasper2015-11-202-1/+7
| | | | llvm-svn: 253672
* clang-format: [JS] struct and union aren't keywords / reserved words.Daniel Jasper2015-11-202-0/+6
| | | | llvm-svn: 253671
* clang-format: Don't use incorrect space in macro calls with operators.Daniel Jasper2015-11-202-1/+4
| | | | | | | | | | | | Before: MACRO(> ); After: MACRO(>); Not overly important, but easy and good for symmetry reasons :-). llvm-svn: 253669
* clang-format: [Proto] Support extending message.Daniel Jasper2015-11-203-1/+8
| | | | | | | | | | | | Before: extend.foo.Bar { } After: extend .foo.Bar { } llvm-svn: 253667
* Regenerate ASTMatchersReference without CRLF.Benjamin Kramer2015-11-201-139/+139
| | | | llvm-svn: 253654
* Fix ASTMatcher reference newlines and make the generator script windows-proof.Benjamin Kramer2015-11-203-4690/+4690
| | | | llvm-svn: 253653
* [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by ↵Alexey Bataev2015-11-205-3/+293
| | | | | | | | | Denis Zobnin. This patch adds support of #pragma vtordisp inside functions in attempt to improve compatibility. Microsoft compiler appears to save the stack of vtordisp modes on entry of struct methods' bodies and restore it on exit (method-local vtordisp). Differential Revision: http://reviews.llvm.org/D14467 llvm-svn: 253650
* [Myriad]: handle Preprocess job action (-E)Douglas Katzman2015-11-203-11/+19
| | | | llvm-svn: 253647
OpenPOWER on IntegriCloud