| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clang-format should not change whether or not there is a line break
before a line comment as this strongly influences the percieved binding.
User input: void f(int a,
// b is awesome
int b);
void g(int a, // a is awesome
int b);
Before: void f(int a, // b is awesome
int b);
void g(int a, // a is awesome
int b);
After: <unchanged from input>
llvm-svn: 172361
|
| |
|
|
| |
llvm-svn: 172360
|
| |
|
|
| |
llvm-svn: 172359
|
| |
|
|
| |
llvm-svn: 172358
|
| |
|
|
| |
llvm-svn: 172357
|
| |
|
|
| |
llvm-svn: 172356
|
| |
|
|
|
|
|
|
|
|
|
| |
Note that I don't know whether we should put {} on a single line in this
case, but it is probably a theoretical issue as in practice such
structs, classes or unions won't be empty.
Before: union A {}
a;
After: union A {} a;
llvm-svn: 172355
|
| |
|
|
|
|
|
|
|
|
| |
flag information down from the Clang driver into the Gold linker plugin
for LTO. This allows specifying -march on the linker commandline and
should hopefully have it pass all the way through to the LTO optimizer.
Fixes PR14697.
llvm-svn: 172354
|
| |
|
|
|
|
|
| |
Those can occur when something between the sextload and the store is on the same
chain and blocks isel. Fixes PR14887.
llvm-svn: 172353
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In ArrayRef<T>(X), X should not be temporary value. It could be rewritten more redundantly;
llvm::Type *XTy = X->getType();
ArrayRef<llvm::Type *> Ty(XTy);
llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, Ty);
Since it is safe if both XTy and Ty are temporary value in one statement, it could be shorten;
llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, ArrayRef<llvm::Type*>(X->getType()));
ArrayRef<T> has an implicit constructor to create uni-entry of T;
llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, X->getType());
MSVC-generated clang.exe crashed.
llvm-svn: 172352
|
| |
|
|
|
|
|
|
|
|
| |
I am not aware of a case where that would be wrong. The specific case I
am fixing are function parameters wrapped in parenthesis (e.g. in
macros).
Before: function(a,(b));
After: function(a, (b));
llvm-svn: 172351
|
| |
|
|
|
|
| |
Before: #include <a - a>
After: #include <a-a>
llvm-svn: 172350
|
| |
|
|
|
|
|
|
|
| |
A ")" before any of "=", "{" or ";" won't be a cast. This fixes issues
with the formatting of unnamed parameters.
Before: void f(int *){}
After: void f(int *) {}
llvm-svn: 172349
|
| |
|
|
|
|
| |
and i16).
llvm-svn: 172348
|
| |
|
|
| |
llvm-svn: 172347
|
| |
|
|
| |
llvm-svn: 172346
|
| |
|
|
| |
llvm-svn: 172345
|
| |
|
|
|
|
| |
on theree targets, i686, amd64, win64.
llvm-svn: 172344
|
| |
|
|
|
|
| |
builtins-multiprecision.c.
llvm-svn: 172343
|
| |
|
|
| |
llvm-svn: 172342
|
| |
|
|
|
|
|
| |
We lower all of these intrinsics into a 2x chained usage of
uadd.with.overflow.
llvm-svn: 172341
|
| |
|
|
| |
llvm-svn: 172340
|
| |
|
|
| |
llvm-svn: 172339
|
| |
|
|
| |
llvm-svn: 172338
|
| |
|
|
|
|
|
|
|
|
| |
Before:
[color getRed: &r green: &g blue: &b alpha: &a];
Now:
[color getRed:&r green:&g blue:&b alpha:&a];
llvm-svn: 172337
|
| |
|
|
|
|
|
|
| |
case, but looking at the diff this was an obviously unintended change.
Thanks for the careful review Bill! =]
llvm-svn: 172336
|
| |
|
|
|
|
| |
happens to work already.
llvm-svn: 172335
|
| |
|
|
| |
llvm-svn: 172334
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Before:
if ((self = [super initWithContentRect:contentRect styleMask:
styleMask backing:NSBackingStoreBuffered defer:YES])) {
Now:
if ((self = [super initWithContentRect:contentRect styleMask:styleMask
backing:NSBackingStoreBuffered defer:YES])) {
llvm-svn: 172333
|
| |
|
|
|
|
| |
Comment is taken from the commit message of r151080, by Jean-Daniel Dupas
llvm-svn: 172332
|
| |
|
|
| |
llvm-svn: 172331
|
| |
|
|
|
|
| |
more than a minute.
llvm-svn: 172330
|
| |
|
|
| |
llvm-svn: 172326
|
| |
|
|
| |
llvm-svn: 172325
|
| |
|
|
|
|
|
|
|
|
| |
As with llvm svn r172138, this patch is basically copying some changes that
we've been using for building clang at Apple. Besides cleaning it up to use
xcrun to locate the proper versions of tools, especially for cross compiling,
it fixes the build to work with newer versions of clang that honor SDKROOT
settings in the environment.
llvm-svn: 172324
|
| |
|
|
|
|
| |
brought into 'clang' namespace by clang/Basic/LLVM.h
llvm-svn: 172323
|
| |
|
|
|
|
|
| |
Shifting right two times will only yield zero. Should fix
SingleSource/UnitTests/SignlessTypes/factor.
llvm-svn: 172322
|
| |
|
|
| |
llvm-svn: 172321
|
| |
|
|
|
|
| |
other headers included before them.
llvm-svn: 172320
|
| |
|
|
|
|
| |
warning. [-Wunused-function]
llvm-svn: 172319
|
| |
|
|
|
|
| |
Found by valgrind.
llvm-svn: 172318
|
| |
|
|
| |
llvm-svn: 172317
|
| |
|
|
| |
llvm-svn: 172316
|
| |
|
|
| |
llvm-svn: 172315
|
| |
|
|
| |
llvm-svn: 172314
|
| |
|
|
|
|
|
|
| |
break again.
The folding set details can be subtle and broke twice in the last couple of weeks.
llvm-svn: 172313
|
| |
|
|
| |
llvm-svn: 172312
|
| |
|
|
| |
llvm-svn: 172311
|
| |
|
|
| |
llvm-svn: 172308
|
| |
|
|
|
|
|
|
| |
canBreakBefore() does not allow breaking after ':' for LT_ObjCMethodDecl lines,
so if Newline is true in addTokenToState() for ':' then LT_ObjCMethodDecl
cannot be set. No functionality change.
llvm-svn: 172307
|