summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [WebAssembly] Configure some simple include paths and runtime library settings.Dan Gohman2016-01-142-0/+31
| | | | llvm-svn: 257774
* [Hexagon] Change all builtins returning "bool" to return "int" insteadKrzysztof Parzyszek2016-01-141-92/+92
| | | | llvm-svn: 257765
* clang-format: Fix incorrectly enforced linebreak with ColumnLimit 0.Daniel Jasper2016-01-142-1/+4
| | | | | | | | | | | Before: aaaa[bbbb] .cccc(); After: aaaa[bbbb].cccc(); llvm-svn: 257763
* [mips] Added support for -Wa,-mips32 and similar.Scott Egerton2016-01-142-1/+116
| | | | | | | | | | Reviewers: vkalintiris, dsanders Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15070 llvm-svn: 257762
* Fix for armv7-a15 and thumbv7-a15 buildbot fails.Andrey Bokhanko2016-01-141-2/+2
| | | | llvm-svn: 257757
* Correct setting of UserLabelPrefix for MCU target.Andrey Bokhanko2016-01-142-0/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D16138 llvm-svn: 257756
* PR25910: clang allows two var definitions with the same mangled nameAndrey Bokhanko2016-01-143-36/+134
| | | | | | | | | | | Proper diagnostic and resolution of mangled names' conflicts in variables. When there is a declaration and a definition using the same name but different types, we emit what is in the definition. When there are two conflicting definitions, we issue an error. Differential Revision: http://reviews.llvm.org/D15686 llvm-svn: 257754
* clang-format: [JS] Fix incorrect line break leading to semicolon insertion.Daniel Jasper2016-01-142-0/+6
| | | | | | | | | | | | | | | | clang-format only works for JavaScript code, if all the semicolons are present anyway, so this linebreak can never be desired. Before (with appropriate statement lengths or column limit): return [ aaa ]; After: return [ aaaa ]; llvm-svn: 257741
* Driver: Remove SanitizerArgs::clear() function and SanitizerSet ctor,Peter Collingbourne2016-01-143-31/+9
| | | | | | replace with in-class initializers. llvm-svn: 257739
* CodeGen: Only emit CFI unrelated cast checks for bit casts.Peter Collingbourne2016-01-142-7/+17
| | | | | | | We were previously emitting them for no-op casts (e.g. implicit casts to const). llvm-svn: 257738
* [Sema] Suppress diags in overload resolution.George Burgess IV2016-01-136-101/+191
| | | | | | | | | | We were emitting diagnostics from our shiny new C-only overload resolution mode. This patch attempts to silence all such diagnostics. This fixes PR26085. Differential Revision: http://reviews.llvm.org/D16159 llvm-svn: 257710
* Update cxx_dr_status for latest issues list.Richard Smith2016-01-131-383/+1289
| | | | llvm-svn: 257698
* Update make_cxx_dr_status after the 3.8 branch.Richard Smith2016-01-131-2/+2
| | | | llvm-svn: 257695
* Update cxx_dr_status.html after the 3.8 branchHans Wennborg2016-01-131-1/+1
| | | | llvm-svn: 257652
* Update version to 3.9Hans Wennborg2016-01-132-47/+7
| | | | llvm-svn: 257628
* clang-format: [ObjC+JS] Allow bin-packing of array literals.Daniel Jasper2016-01-133-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After reading the style guides again, they don't actually say how to pack or not pack array literals. Based on some user reports, array initializers can unnecessarily get quite long if they contain many small elements. Array literals with trailing commas are still formatted one per line so that users have a way to opt out of the packing. Before: var array = [ aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa ]; After: var array = [ aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa ]; llvm-svn: 257615
* Revert r257602 because it breaks integrated-as.s on mips hosts.Scott Egerton2016-01-132-115/+1
| | | | llvm-svn: 257610
* Revert "[analyzer] Provide .def-files and visitors for SVal/SymExpr/MemRegion."Artem Dergachev2016-01-1311-806/+100
| | | | | | | | | This reverts commit r257605. The test fails on architectures that use unsigned int as size_t. SymbolManager.h fails with compile errors on some platforms. llvm-svn: 257608
* [analyzer] Provide .def-files and visitors for SVal/SymExpr/MemRegion.Artem Dergachev2016-01-1311-100/+806
| | | | | | | | | | | | | Provide separate visitor templates for the three hierarchies, and also the `FullSValVisitor' class, which is a union of all three visitors. Additionally, add a particular example visitor, `SValExplainer', in order to test the visitor templates. This visitor is capable of explaining the SVal, SymExpr, or MemRegion in a natural language. Differential Revision: http://reviews.llvm.org/D15448 llvm-svn: 257605
* [mips] Added support for -Wa,-mips32 and similar.Scott Egerton2016-01-132-1/+115
| | | | | | | | | | Reviewers: vkalintiris, dsanders Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15070 llvm-svn: 257602
* [analyzer] Fix SVal/SymExpr/MemRegion class and enum names for consistency.Artem Dergachev2016-01-1312-182/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of these changes is to simplify introduction of definition files for the three hierarchies. 1. For every sub-class C of these classes, its kind in the relevant enumeration is changed to "CKind" (or C##Kind in preprocessor-ish terms), eg: MemRegionKind -> MemRegionValKind RegionValueKind -> SymbolRegionValueKind CastSymbolKind -> SymbolCastKind SymIntKind -> SymIntExprKind 2. MemSpaceRegion used to be inconsistently used as both an abstract base and a particular region. This region class is now an abstract base and no longer occupies GenericMemSpaceRegionKind. Instead, a new class, CodeSpaceRegion, is introduced for handling the unique use case for MemSpaceRegion as "the generic memory space" (when it represents a memory space that holds all executable code). 3. BEG_ prefixes in memory region kind ranges are renamed to BEGIN_ for consisitency with symbol kind ranges. 4. FunctionTextRegion and BlockTextRegion are renamed to FunctionCodeRegion and BlockCodeRegion, respectively. The term 'code' is less jargony than 'text' and we already refer to BlockTextRegion as a 'code region' in BlockDataRegion. Differential Revision: http://reviews.llvm.org/D16062 llvm-svn: 257598
* [OPENMP] Fix for declarative/standalone directives use.Alexey Bataev2016-01-1311-48/+114
| | | | | | Fixes processing of declarative directives and standalone executable directives. Declarative directives should not be allowed as an immediate statements and standalone executable directives are allowed to be used in case-stmt constructs. llvm-svn: 257586
* Install scan-build and scan-view only if Static Analyzer was enabled.Eugene Zelenko2016-01-131-2/+2
| | | | llvm-svn: 257562
* [Bugfix] Fix ICE on constexpr vector splat.George Burgess IV2016-01-1320-58/+193
| | | | | | | | | | | | | In {CG,}ExprConstant.cpp, we weren't treating vector splats properly. This patch makes us treat splats more properly. Additionally, this patch adds a new cast kind which allows a bool->int cast to result in -1 or 0, instead of 1 or 0 (for true and false, respectively), so we can sanely model OpenCL bool->int casts in the AST. Differential Revision: http://reviews.llvm.org/D14877 llvm-svn: 257559
* [CUDA] Rename check-prefixes in cuda-options.cu and cuda-unused-arg-warning.cu.Justin Lebar2016-01-132-157/+122
| | | | | | | | | | | | | | | | Summary: Rename the args to be more human-readable. Among other things, this lets us get rid of a bunch of comments (e.g. "ensure we don't run the linker"), greatly shortening these tests. Also apply consistent formatting and fix some English nits while we're at it. Reviewers: tra Differential Revision: http://reviews.llvm.org/D15975 llvm-svn: 257557
* Generalize r256026 to apply to all MachO targets, not just Darwin targets.Bob Wilson2016-01-132-2/+5
| | | | | | | | The PIC default is set for the MachO toolchain, not just the Darwin toolchain, so this treats those the same. The behavior with -static should be the same for all MachO targets. rdar://24152327 llvm-svn: 257556
* [CUDA] Report an error if code tries to mix incompatible CUDA attributes.Justin Lebar2016-01-134-14/+90
| | | | | | | | | | | | Summary: Thanks to jhen for helping me figure this out. Reviewers: tra, echristo Subscribers: jhen Differential Revision: http://reviews.llvm.org/D16129 llvm-svn: 257554
* [Darwin] Fix deployment target detectionFrederic Riss2016-01-122-1/+2
| | | | | | | | | There was a thinko in the deployment target detection code that made the -isysroot parsing have precedence over the environment variable for tvOS. This patch makes this logic symetric for all platforms (the env variable must have precedence). llvm-svn: 257543
* Follow-up to r257537: add test that majnemer asked aboutHans Wennborg2016-01-121-1/+2
| | | | llvm-svn: 257541
* clang-cl: Support /Dfoo#bar (PR25984)Hans Wennborg2016-01-122-74/+105
| | | | | | Such flags will now be translated to -Dfoo=bar. llvm-svn: 257537
* D9600: Add scan-build python implementationLaszlo Nagy2016-01-1253-0/+5832
| | | | llvm-svn: 257533
* [CUDA] Add explicit mapping from sm_XX to compute_YY.Justin Lebar2016-01-123-16/+30
| | | | | | | | | | | | Summary: This is used by D16082 when it invokes fatbinary. Reviewers: tra Subscribers: cfe-commits, jhen, echristo Differential Revision: http://reviews.llvm.org/D16097 llvm-svn: 257530
* Improve AST dumping:Richard Smith2016-01-1212-4/+89
| | | | | | | | 1) When dumping a declaration that declares a name for a type, also dump the named type. 2) Add a #pragma clang __debug dump X, that dumps the lookup results for X in the current context. llvm-svn: 257529
* Properly track the end location of an exception specification.Aaron Ballman2016-01-122-1/+40
| | | | | | Patch by Adrian Zgorzałek llvm-svn: 257521
* Module debugging: Make the module format part of the module hash insteadAdrian Prantl2016-01-122-4/+6
| | | | | | | | | | of the file name. This is consistent with how other HeaderSearchOptions are handled. Due to the other inputs of the module hash (revision number) this is not really testable in a meaningful way. llvm-svn: 257520
* Don't store CGOpenMPRegionInfo::CodeGen as a reference (PR26078)Hans Wennborg2016-01-121-1/+1
| | | | | | | The referenced llvm::function_ref<void(CodeGenFunction &)> object can go away before CodeGen is used, resulting in a crash. llvm-svn: 257516
* [modules] Don't diagnose a conflict between two using-declarations that name ↵Richard Smith2016-01-125-4/+21
| | | | | | equivalent internal linkage entities. llvm-svn: 257512
* Add a clang test for r257376 (Ensure -mcpu=xscale works for arm targets).Dimitry Andric2016-01-121-0/+3
| | | | llvm-svn: 257509
* function names start with a lower case letter ; NFCSanjay Patel2016-01-121-1/+1
| | | | llvm-svn: 257497
* Revert r253898 and r253899, this breaks mingw compilation on openSUSE.Ismail Donmez2016-01-121-5/+11
| | | | | | | | | | | | | | | | | | Will re-apply after llvm 3.8 is branched. Original commit message: Driver: fallback to the location of clang if no sysroot, hard coding /usr makes little sense for mingw-w64. If we have portable toolchains having /usr breaks that. If the clang we use is in /usr/bin or /usr/sbin etc this will still detect as though it was hard coded to /usr This makes the most sense going forward for mingw-w64 toolchains on both linux and mac llvm-svn: 257468
* [analyzer] Fix RangeConstraintManager's pinning of single value ranges.Pierre Gousseau2016-01-122-2/+32
| | | | | | | | This fix a bug in RangeSet::pin causing single value ranges to be considered non conventionally ordered. Differential Revision: http://reviews.llvm.org/D12901 llvm-svn: 257467
* [analyzer] Evaluate integral casts as cast symbols if truncations are detected.Pierre Gousseau2016-01-124-2/+178
| | | | | | | | | | | | | The current workaround for truncations not being modelled is that the evaluation of integer to integer casts are simply bypassed and so the original symbol is used as the new casted symbol (cf SimpleSValBuilder::evalCastFromNonLoc). This lead to the issue described in PR25078, as the RangeConstraintManager associates ranges with symbols. The new evalIntegralCast method added by this patch wont bypass the cast if it finds the range of the symbol to be greater than the maximum value of the target type. The fix to RangeSet::pin mentioned in the initial review will be committed separately. Differential Revision: http://reviews.llvm.org/D12901 llvm-svn: 257464
* PR18513: make gcc compatible layout for bit-fields with explicit aligned ↵Alexey Bataev2016-01-122-3/+193
| | | | | | | | | attribute, by Dmitry Polukhin Fix binary compatibility issue with GCC. Differential Revision: http://reviews.llvm.org/D14980 llvm-svn: 257462
* Fix infinite recursion for invalid declaration, by Dmitry PolukhinAlexey Bataev2016-01-122-1/+10
| | | | | | | Fix for a case found by fuzzing PR23057 (comment #25 https://llvm.org/bugs/show_bug.cgi?id=23057#c25). Differential Revision: http://reviews.llvm.org/D16065 llvm-svn: 257461
* clang-format: [JS] Support exporting abstract classes.Daniel Jasper2016-01-122-0/+5
| | | | | | | | | | | Before: export abstract class X {y: number;} (and all sorts of other havoc in more complicated cases). After: export abstract class X { y: number; } llvm-svn: 257451
* [CUDA] Reject values for --cuda-gpu-arch that are not of the form /sm_\d+/.Justin Lebar2016-01-115-4/+56
| | | | | | | | | | Reviewers: tra Subscribers: cfe-commits, jhen, echristo Differential Revision: http://reviews.llvm.org/D16079 llvm-svn: 257413
* Add an Action* member to InputInfo.Justin Lebar2016-01-113-15/+34
| | | | | | | | | | | | | | Summary: The CUDA toolchain needs to know which Actions created which InputInfos, because it needs to attach GPU archs to the various InputInfos. Reviewers: echristo Subscribers: jfb, dschuff, jhen, tra, cfe-commits Differential Revision: http://reviews.llvm.org/D16078 llvm-svn: 257411
* Make Driver::BuildJobsForAction return an InputInfo, instead of using an ↵Justin Lebar2016-01-112-44/+31
| | | | | | | | | | | | | | outparam. Summary: Explicit is better than implicit. Reviewers: echristo Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16013 llvm-svn: 257408
* Move ownership of Action objects into Compilation.Justin Lebar2016-01-116-157/+123
| | | | | | | | | | | | | | | | Summary: This makes constructing Action graphs which are DAGs much simpler. It also just simplifies in general the ownership semantics of Actions. Depends on D15910. Reviewers: echristo Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D15911 llvm-svn: 257407
* clang-format: [JS] Teach clang-format about "export interface".Daniel Jasper2016-01-112-1/+6
| | | | llvm-svn: 257406
OpenPOWER on IntegriCloud