- Jan 16, 2014
-
-
Alp Toker authored
Includes some style tweaks and removes the tautological observation that "Clang is still under heavy development" -- it hopefully always will be. llvm-svn: 199401
-
Jakob Stoklund Olesen authored
llvm-svn: 199399
-
Alp Toker authored
Also shuffle the Communication section so the bug tracker comes first. (The sidebar isn't scrollable at the moment so this gives a better chance of the bug tracker being seen. The links further down are basically invisible -- we should look into that.) llvm-svn: 199398
-
Aaron Ballman authored
Fixing a warning that causes the sanitizer build disliked about mixing && and ||. Since this is generated code, the && has been removed from the expression entirely. llvm-svn: 199392
-
Alexander Potapenko authored
llvm-svn: 199388
-
Aaron Ballman authored
Factored some function-like type reasoning out of SemaDeclAttr and onto Decl itself. This allows for more declarative subjects in attribute tablegen where the attribute appertains to something function-like, but not strictly a FunctionDecl. llvm-svn: 199387
-
Alexander Potapenko authored
llvm-svn: 199385
-
Alexander Potapenko authored
llvm-svn: 199383
-
Aaron Ballman authored
Giving the asm attribute some keyword spellings based off of GCC's documentation. No functional changes. llvm-svn: 199382
-
Aaron Ballman authored
Distinguish between attributes explicitly written at the request of the user, and attributes implicitly generated to assist in bookkeeping by the compiler. This is done so by table generating a CreateImplicit method for each attribute. Additionally, remove the optional nature of the spelling list index when creating attributes. This is supported by table generating a Spelling enumeration when the spellings for an attribute are distinct enough to warrant it. llvm-svn: 199378
-
David Majnemer authored
We would attempt to determine the inheritance relationship between classes 'A' and 'B' during static_cast if we tried to convert from 'int A::*' to 'int B::*'. However, the question "does A derive from B" is not meaningful when 'A' isn't defined. Handle this case by requiring that 'A' be defined. This fixes PR18506. llvm-svn: 199374
-
Evgeniy Stepanov authored
flag from clang, and disable zero-base shadow support on all platforms where it is not the default behavior. - It is completely unused, as far as we know. - It is ABI-incompatible with non-zero-base shadow, which means all objects in a process must be built with the same setting. Failing to do so results in a segmentation fault at runtime. - It introduces a backward dependency of compiler-rt on user code, which is uncommon and complicates testing. This is the Clang part of a larger change. llvm-svn: 199372
-
Daniel Jasper authored
So clang-format can now format: int c = []()->int { return 2; }(); int c = []()->vector<int> { return { 2 }; }(); llvm-svn: 199368
-
Tim Northover authored
Previously we had bodged together some hacks mapping MachO embedded targets (i.e. mainly ARM v6M and v7M) to the "*-*-darwin-eabi" triple. This is incorrect in both details (they don't run Darwin and they're not EABI in any real sense). This commit appropriates the existing "MachO" environment for the purpose instead. llvm-svn: 199367
-
Alp Toker authored
This ports the last Sema tests over to use the frontend directly, and adds a local lit substitution to disable inappropriate %clang usage under this directory. llvm-svn: 199348
-
Alp Toker authored
-verify was simply ignored by the driver. This commit fixes the RUN line and XFAILs the test, unblocking changes to ban use of the driver in Sema tests and avoid problems like this. llvm-svn: 199347
-
- Jan 15, 2014
-
-
rdar://problem/12478440Bob Wilson authored
This was never used for anything so we should just get rid of it. llvm-svn: 199336
-
Jan Wen Voung authored
Set NaCl OSTargetInfo to have LongLongAlign = 64. Otherwise, it will pick up the setting of 32 from X86_32TargetInfo. llvm-svn: 199335
-
Roman Divacky authored
marked as AlwaysInline or ForceInline. This moves us to what gcc does with -fno-inline. The attribute approach was discussed to be better than switching to InlineAlways inliner in presence of LTO. llvm-svn: 199324
-
Jordan Rose authored
Per discussion with Anna a /long/ time ago, it was way too easy to misuse BlockCall: because it inherited from AnyFunctionCall (through SimpleCall), getDecl() was constrained to return a FunctionDecl, and you had to call getBlockDecl() instead. This goes against the whole point of CallEvent (to abstract over different ways to invoke bodies of code). Now, BlockCall just inherits directly from CallEvent. There's a bit of duplication in getting things out of the origin expression (which is still known to be a CallExpr), but nothing significant. llvm-svn: 199321
-
Jordan Rose authored
This allows us to use CHECK-LABEL to ensure that we're checking the right CFG. Debugging change only. llvm-svn: 199320
-
Daniel Jasper authored
Before: var arr = [ 1, 2, 3 ]; var obj = {a : 1, b : 2, c : 3}; After: var arr = [1, 2, 3]; var obj = {a: 1, b: 2, c: 3}; llvm-svn: 199317
-
Erik Verbruggen authored
llvm-svn: 199311
-
Chandler Carruth authored
a subprocess invocation which is pretty significant on Windows. It also likely saves a bunch of thrashing the host machine needlessly. Finally it makes the tests much more predictable and less dependent on the host. For example 'header_lookup1.c' was passing '-fno-ms-extensions' just to thwart the host detection adding it into the compilation. By runnig CC1 directly we don't have to deal with such oddities. llvm-svn: 199308
-
Chandler Carruth authored
test the CC1 layer. This actually uncovered that the test semes to no longer be passing for the reasons intended. =[ The name of the test would lead me to believe that it should be testing the semantics of noreturn in the static analyzer.... but there are in fact no -verify assertions about noreturn that i can find. And the noreturn checker is no longer in 'alpha.core'. It is in 'core.builtins'. The test *does* have one assertion for a null dereference warning. This *also* isn't in 'alpha.core', but the driver inserts a pile of other checker packages, including 'core' which has this warning. So I have switch the RUN line to actually do the minimal thing that this test currently exercises, but someone who works on the static analyzer should probably look at this and either nuke it or move it to actually check the noreturn behavior. llvm-svn: 199307
-
Nick Lewycky authored
llvm-svn: 199306
-
Kostya Serebryany authored
replace LeakSanitizerIsTurnedOffForTheCurrentProcess with __lsan_is_turned_off, but this time hide it under __has_feature(address_sanitizer); also include <sanitizer/lsan_interface.h> llvm-svn: 199303
-
Justin Bogner authored
Way back in r129652 we tried to avoid emitting an empty block at -O0 for switch cases that did nothing but break. This led to a poor debugging experience as reported in PR9796, so we disabled the optimization for -O0 but left it in for higher optimization levels in r154420. Since the whole point of this was to improve -O0, it's silly to keep the complexity at all. llvm-svn: 199302
-
Nick Lewycky authored
Fix the attribute enable_if example in the docs to be 100% real-world, instead of merely being close to the real world to mislead people. This now matches the test. llvm-svn: 199298
-
Alp Toker authored
This C++ feature has been marked complete since r191549, but the documentation claimed it wasn't supported at all and the extension check misreported it as being available in C. No regression test; this was a short-lived typo. llvm-svn: 199292
-
Serge Pavlov authored
Changes made in r192200 fixed PR16992, which requested fixit suggesting parenthesis if sizeof is followed by type-id. However expression in form T() followed by ')' was incorrectly considered as a type-id if 'T' is typedef name. This change fixes this case. Differential Revision: http://llvm-reviews.chandlerc.com/D2440 llvm-svn: 199284
-
rdar://14578381Bob Wilson authored
Continue to accept the old name for a while to make it an easier transition for people who rely on this. llvm-svn: 199283
-
Hans Wennborg authored
This is a follow-up to r199260. On ARM hosts, we were attempting to run tests with triples such as armv7l-unknown-win32. This expands that fix to cover all non-x86 targets since we only support MS ABI on x86. llvm-svn: 199280
-
Fariborz Jahanian authored
llvm-svn: 199278
-
Ted Kremenek authored
llvm-svn: 199277
-
- Jan 14, 2014
-
-
Reid Kleckner authored
Long term we should make -triple arm7l-*-win32 do something sensible, but for now it's broken and untested. llvm-svn: 199260
-
Fariborz Jahanian authored
llvm-svn: 199258
-
Fariborz Jahanian authored
llvm-svn: 199257
-
Tim Northover authored
Someone recently wasted some time not realising that "-###" didn't actually execute the commands it printed, and suggested a documentation tweak. Having made the same mistake myself on at least one occasion, I sympathise. So here it is. Any kibitzing on an even better text welcome. llvm-svn: 199256
-
Fariborz Jahanian authored
-Wselector detects an unimplemented method used in an @selector expression. // rdar://15781538 llvm-svn: 199255
-