- Jan 15, 2013
-
-
David Greene authored
Some versions of gcc accept unsupported -W flags and run just fine if there are no warnings, but die with an unsupported flag error if a warning is encountered. gcc 4.3 and gcc 4.4 both exhibit this behavior for -Wno-maybe-uninitialized. Therefore, if the flag check for -Wno-maybe-uninitialized succeeds, only use -Wno-maybe-uninitialized if we are using gcc version 4.7 or greater. Use -Wno-uninitialized otherwise. llvm-svn: 172543
-
Howard Hinnant authored
llvm-svn: 172542
-
Evgeniy Stepanov authored
They are failing on the bots. llvm-svn: 172540
-
Evgeniy Stepanov authored
Also improve test coveration of the handling of relational comparisons. llvm-svn: 172539
-
Evgeniy Stepanov authored
Both underlying IR operations support vectors of pointers already. llvm-svn: 172538
-
Manuel Klimek authored
This is an optimization that djasper spottet. For now, we do not format anything after the first token that belongs to such an implicit string literal. All our state is not made for handling that anyway, so we'll revisit this if we find a problem. llvm-svn: 172537
-
Manuel Klimek authored
Treat tokens inside <> for includes and everything from the second token of a warning / error on as an implicit string literal, e.g. do not change its whitespace at all. Now correctly formats: #include < path with space > #error Leave all white!!!!! space* alone! Note that for #error and #warning we still format the space up to the first token of the text, so: # error Text will become #error Text llvm-svn: 172536
-
Evgeniy Stepanov authored
It was out of sync with the conditions in the other two constructors. llvm-svn: 172535
-
Renato Golin authored
Test was failing for clang-native-arm-cortex-a9 build-bot configuration. The reason for the failure was the test was using hardcoded names. The attached patch fixes this failure by replacing the hard-coded variables names with pattern-matched variable names. Patch by Manish Verma, ARM llvm-svn: 172534
-
Daniel Jasper authored
We used to incorrectly identify some operators (*, &, +, -, etc.) if there were comments around them. Example: Before: int a = /**/ - 1; After: int a = /**/ -1; llvm-svn: 172533
-
Kostya Serebryany authored
[asan] enable asan_allocator2 by default on Linux. Will enable it on other platforms and remove the old one later, after additional testing. The new allocator is much faster and uses less memory llvm-svn: 172531
-
Manuel Klimek authored
This switches to parsing record definitions only if we can clearly identify them. We're specifically allowing common patterns for visibility control through macros and attributes, but we cannot currently fix all instances. This fixes all known bugs we have though. Before: static class A f() { return g(); } int x; After: static class A f() { return g(); } int x; llvm-svn: 172530
-
Dmitry Vyukov authored
llvm-svn: 172529
-
Alexander Kornienko authored
llvm-svn: 172528
-
Dmitry Vyukov authored
llvm-svn: 172526
-
Michael J. Spencer authored
llvm-svn: 172525
-
Kostya Serebryany authored
llvm-svn: 172523
-
Dmitry Vyukov authored
llvm-svn: 172522
-
Dmitry Vyukov authored
llvm-svn: 172521
-
Dmitry Vyukov authored
llvm-svn: 172520
-
Dmitry Vyukov authored
llvm-svn: 172519
-
Dmitry Vyukov authored
llvm-svn: 172518
-
Richard Smith authored
resolving an overloaded function reference within an initializer list. Previously we would try to resolve the overloaded function reference without first stripping off the InitListExpr wrapper. llvm-svn: 172517
-
Michael J. Spencer authored
llvm-svn: 172516
-
Michael J. Spencer authored
This simplifies the usage and implementation of ELFObjectFile by using ELFType to replace: <endianness target_endianness, std::size_t max_alignment, bool is64Bits> This does complicate the base ELF types as they must now use template template parameters to partially specialize for the 32 and 64bit cases. However these are only defined once. llvm-svn: 172515
-
Richard Smith authored
llvm-svn: 172514
-
Michael J. Spencer authored
llvm-svn: 172513
-
Michael J. Spencer authored
This is based on code by Jeffrey Yasskin. It has been modified to compile with MSVC and reformated to LLVM style. llvm-svn: 172512
-
Michael J. Spencer authored
llvm-svn: 172511
-
Richard Smith authored
with function definitions. We really should remove Parser::isDeclarationAfterDeclarator entirely, since it's meaningless in C++11 (an open brace could be either a function definition or an initializer, which is what it's trying to differentiate between). The other caller of it happens to be correct right now... llvm-svn: 172510
-
Douglas Gregor authored
llvm-svn: 172509
-
Michael J. Spencer authored
Marks a decl as constexpr if the compiler supports it. llvm-svn: 172508
-
Shankar Easwaran authored
llvm-svn: 172507
-
rdar://problem/13010909Greg Clayton authored
Don't accidentally sign extend unsigned bitfields. llvm-svn: 172506
-
Jim Ingham authored
llvm-svn: 172505
-
Richard Smith authored
attributes appertain to a declaration, even though they would be much more naturally modelled as appertaining to a function type. Previously, we would try to distribute them from the declarator to the function type, then reject them for being at an incorrect location. Now, we just distribute them as far as the declarator; the existing attribute handling code can actually apply them there just fine. llvm-svn: 172504
-
Jim Ingham authored
Separated the "expr --unwind-on-error" behavior into two parts, actual errors (i.e. crashes) which continue to be controlled by the --unwind-on-error flag, and --ignore-breakpoint which separately controls behavior when a called function hits a breakpoint. For breakpoints, we don't unwind, we either stop, or ignore the breakpoint, which makes more sense. Also make both these behaviors globally settable through "settings set". Also handle the case where a breakpoint command calls code that ends up re-hitting the breakpoint. We were recursing and crashing. Now we just stop without calling the second command. <rdar://problem/12986644> <rdar://problem/9119325> llvm-svn: 172503
-
Michael J. Spencer authored
This gives an overview of the driver and explains how to add options and driver flavors. llvm-svn: 172502
-
Michael J. Spencer authored
llvm-svn: 172501
-
Argyrios Kyrtzidis authored
previously it was calling the "StringMapImpl(unsigned itemSize)" constructor. llvm-svn: 172500
-