| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
Before:
[color getRed: &r green: &g blue: &b alpha: &a];
Now:
[color getRed:&r green:&g blue:&b alpha:&a];
llvm-svn: 172337
|
| |
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
brought into 'clang' namespace by clang/Basic/LLVM.h
llvm-svn: 172323
|
| |
|
|
| |
llvm-svn: 172321
|
| |
|
|
|
|
| |
other headers included before them.
llvm-svn: 172320
|
| |
|
|
| |
llvm-svn: 172317
|
| |
|
|
| |
llvm-svn: 172316
|
| |
|
|
| |
llvm-svn: 172314
|
| |
|
|
| |
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
|
| |
|
|
|
|
| |
The containing if checks for this already. No functionality change.
llvm-svn: 172306
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The testcase in pr14929 shows that this is extremely hard to do. If we choose
to apply the attribute, that causes the visibility of some decls to change and
that can happen really late (during codegen).
Current gcc warns and ignores the attribute in this testcase with a warning.
This suggest that the correct solution is to find a point in the compilation
where we can compute the visibility and
* assert it was never computed before
* reject any attempts to compute it again in the future (with warnings).
llvm-svn: 172305
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This follows the approach suggested by djasper in PR14911: When a '[' is
seen that's at the start of a line, follows a binary operator, or follows one
of : [ ( return throw, that '[' and its closing ']' are marked as
TT_ObjCMethodExpr and every ':' in that range that isn't part of a ternary
?: is marked as TT_ObjCMethodExpr as well.
Update the layout routines to not output spaces around ':' tokens that are
marked TT_ObjCMethodExpr, and only allow breaking after such tokens, not
before.
Before:
[self adjustButton : closeButton_ ofKind : NSWindowCloseButton];
Now:
[self adjustButton:closeButton_ ofKind:NSWindowCloseButton];
llvm-svn: 172304
|
| |
|
|
| |
llvm-svn: 172303
|
| |
|
|
| |
llvm-svn: 172302
|
| |
|
|
| |
llvm-svn: 172301
|
| |
|
|
| |
llvm-svn: 172295
|
| |
|
|
|
|
| |
Thanks Eli Friedman for noticing it.
llvm-svn: 172292
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
which a particular declaration resides. Use this information to
customize the "definition of 'blah' must be imported from another
module" diagnostic with the module the user actually has to
import. Additionally, recover by importing that module, so we don't
complain about other names in that module.
Still TODO: coming up with decent Fix-Its for these cases, and expand
this recovery approach for other name lookup failures.
llvm-svn: 172290
|
| |
|
|
| |
llvm-svn: 172289
|
| |
|
|
|
|
| |
an init list with multiple elements.
llvm-svn: 172285
|
| |
|
|
| |
llvm-svn: 172283
|
| |
|
|
|
|
|
|
|
|
|
| |
Previously, -Wunused-comparison ignored comparisons in both macro bodies and
macro arguments, but we would still emit a -Wunused-value warning for either.
Now we correctly emit -Wunused-comparison for expressions in macro arguments.
Also, add isMacroBodyExpansion to SourceManager, to go along with
isMacroArgExpansion.
llvm-svn: 172279
|
| |
|
|
|
|
|
| |
of their own (or are syntheszed), use prperty's comment.
for them. // rdar://12791315
llvm-svn: 172278
|
| |
|
|
|
|
| |
Fixes PR 14634 and <rdar://problem/12903080>.
llvm-svn: 172274
|
| |
|
|
|
|
|
| |
import incomplete definitions for RecordDecls and then
mark the resulting definition as complete.
llvm-svn: 172273
|
| |
|
|
| |
llvm-svn: 172272
|
| |
|
|
| |
llvm-svn: 172270
|
| |
|
|
|
|
|
| |
Fixes assertion failure reported in PR 14635 and
<rdar://problem/12902945> respectively.
llvm-svn: 172263
|
| |
|
|
|
|
| |
Patch by David Greene.
llvm-svn: 172262
|
| |
|
|
| |
llvm-svn: 172261
|
| |
|
|
|
|
|
|
| |
ASTUnit
came from loading a PCH/module.
llvm-svn: 172259
|
| |
|
|
|
|
| |
quit. Fixes <rdar://problem/12983031>.
llvm-svn: 172256
|
| |
|
|
|
|
| |
for that.
llvm-svn: 172254
|
| |
|
|
| |
llvm-svn: 172253
|
| |
|
|
|
|
| |
const-correctness, and update all users
llvm-svn: 172252
|
| |
|
|
| |
llvm-svn: 172249
|
| |
|
|
|
|
|
| |
Before we were only checking if the new declaration itself was marked extern
C. Fixes prpr14766.
llvm-svn: 172243
|
| |
|
|
|
|
|
| |
(which may yet change if we move the diagnostic
outside case value).
llvm-svn: 172242
|
| |
|
|
| |
llvm-svn: 172241
|
| |
|
|
| |
llvm-svn: 172239
|
| |
|
|
|
|
|
| |
Puts blocks always into multiple lines when they start with an ObjC
keyword or minus.
llvm-svn: 172238
|
| |
|
|
|
|
|
| |
if { foo; }
would previously crash clang-format.
llvm-svn: 172232
|
| |
|
|
|
|
|
|
| |
Now we correctly parse and format:
verifyFormat("struct foo a = { bar };
int n;
llvm-svn: 172229
|