| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
will have a shared library with the same name as its framework (and no
suffix!) within its .framework directory. Detect this both when
inferring the whole top-level framework and when parsing a module map.
llvm-svn: 172439
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the 64-bit PowerPC ELF ABI.
The ABI requires that the real and imaginary parts of a complex argument
each occupy their own doubleword. Arguments smaller than 8 bytes are
right-adjusted within the doubleword.
Clang expects EmitVAARG() to return a pointer to a structure in which
the real and imaginary parts are packed adjacently in memory. To accomplish
this, we generate code to load the code appropriately from the varargs
location and pack the values into a temporary variable in the form Clang
expects, returning a pointer to that structure.
The test case demonstrates correct code generation for all "small" complex
types on PPC64: int, short, char, and float.
llvm-svn: 172438
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
metadata for linking against the libraries/frameworks for imported
modules.
The module map language is extended with a new "link" directive that
specifies what library or framework to link against when a module is
imported, e.g.,
link "clangAST"
or
link framework "MyFramework"
Importing the corresponding module (or any of its submodules) will
eventually link against the named library/framework.
For now, I've added some placeholder global metadata that encodes the
imported libraries/frameworks, so that we can test that this
information gets through to the IR. The format of the data is still
under discussion.
llvm-svn: 172437
|
| |
|
|
|
|
| |
http://llvm.org/bugs/show_bug.cgi?id=14892.
llvm-svn: 172436
|
| |
|
|
|
|
| |
http://llvm.org/bugs/show_bug.cgi?id=14648.
llvm-svn: 172435
|
| |
|
|
| |
llvm-svn: 172434
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We now format this correctly:
Status::Rep Status::global_reps[3] = {
{ kGlobalRef, OK_CODE, NULL, NULL, NULL },
{ kGlobalRef, CANCELLED_CODE, NULL, NULL, NULL },
{ kGlobalRef, UNKNOWN_CODE, NULL, NULL, NULL }
};
- fixed a bug where BreakBeforeClosingBrace would be set on the wrong
state
- added penalties for breaking between = and {, and between { and any
other non-{ token
llvm-svn: 172433
|
| |
|
|
| |
llvm-svn: 172432
|
| |
|
|
|
|
|
|
|
| |
Now, "if (a) return;" is only allowed, if this option is set.
Also add a Chromium style which is currently identical to Google style
except for this option.
llvm-svn: 172431
|
| |
|
|
|
|
|
|
|
| |
Specify weaker memory order in case we optimize for it in the future,
presently still doing same __sync_lock_test_and_set() as before.
Change suggested by Alexey Samsonov, thanks!
llvm-svn: 172429
|
| |
|
|
|
|
|
| |
If the first line of a merge would exactly fit into the column limit,
an unsigned overflow made us not break.
llvm-svn: 172426
|
| |
|
|
|
|
|
| |
Before: #include "a.h" #include "b.h"
After: #include "a.h"
#include "b.h"
llvm-svn: 172424
|
| |
|
|
|
|
|
| |
Before: #define A \
A
After: #define A A
llvm-svn: 172423
|
| |
|
|
|
|
|
|
|
| |
Move my_rand() to the common header.
This lets us avoid the use of rand_r in sanitizer_common tests.
There is no rand_r on Android.
llvm-svn: 172421
|
| |
|
|
|
|
| |
parsing diff output.
llvm-svn: 172420
|
| |
|
|
| |
llvm-svn: 172419
|
| |
|
|
| |
llvm-svn: 172415
|
| |
|
|
|
|
| |
Reviewers: klimek
llvm-svn: 172414
|
| |
|
|
|
|
|
|
|
|
|
| |
Before: if (a)
return;
After: if (a) return;
Not yet sure, whether this is always desired, but we can add options and
make this a style parameter as we go along.
llvm-svn: 172413
|
| |
|
|
|
|
| |
breaks the VS2008 build
llvm-svn: 172411
|
| |
|
|
| |
llvm-svn: 172410
|
| |
|
|
|
|
|
|
|
|
|
| |
http://llvm-reviews.chandlerc.com/D269
"Added dumping of declaration comments in ASTDumper. This required moving the
comment dumping code from CommentDumper so that the indentation is correct."
Patch by Philip Craig!
llvm-svn: 172409
|
| |
|
|
|
|
| |
Not supported on Android.
llvm-svn: 172408
|
| |
|
|
| |
llvm-svn: 172407
|
| |
|
|
| |
llvm-svn: 172405
|
| |
|
|
|
|
| |
x86_64-unknown-unknown, or it doesn't work for targetting win32.
llvm-svn: 172404
|
| |
|
|
|
|
|
|
|
|
|
| |
Main difference, add an AnnotatedLine class to hold information about a
line while formatting. At the same time degrade the UnwrappedLine class
to a class solely used for communicating between the UnwrappedLineParser
and the Formatter.
No functional changes intended.
llvm-svn: 172403
|
| |
|
|
|
|
|
|
| |
Before: (a->f()) ++;
a[42] ++;
After: (a->f())++;
a[42]++;
llvm-svn: 172400
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
unit tests.
Summary:
Added tests for clang-format diagnostics. Added DiagnosticConsumer
argument to clang::format::reformat().
Reviewers: klimek, djasper
Reviewed By: djasper
CC: cfe-commits, thakis, rafael.espindola
Differential Revision: http://llvm-reviews.chandlerc.com/D290
llvm-svn: 172399
|
| |
|
|
|
|
| |
work there
llvm-svn: 172398
|
| |
|
|
|
|
| |
the fast unwinder for malloc/free. Linux-x86-only for now.
llvm-svn: 172397
|
| |
|
|
|
|
|
| |
While reviewing r172303 I noticed that I wasn't sure whether we still
format those correctly and didn't see any tests.
llvm-svn: 172396
|
| |
|
|
|
|
| |
threads can access non yet allocated shadow)
llvm-svn: 172395
|
| |
|
|
|
|
| |
weird false positives on googletest)
llvm-svn: 172394
|
| |
|
|
| |
llvm-svn: 172393
|
| |
|
|
| |
llvm-svn: 172392
|
| |
|
|
| |
llvm-svn: 172391
|
| |
|
|
| |
llvm-svn: 172390
|
| |
|
|
| |
llvm-svn: 172389
|
| |
|
|
|
|
|
|
| |
1. Increase size classes from 32k to 128k
2. Use lock-free stack in central cache
3. Use blocking mutex when allocate new memory with mmap
llvm-svn: 172388
|
| |
|
|
| |
llvm-svn: 172387
|
| |
|
|
| |
llvm-svn: 172386
|
| |
|
|
| |
llvm-svn: 172385
|
| |
|
|
|
|
|
| |
on redeclarations, since that makes us pick wrong prior declarations under
some circumstances.
llvm-svn: 172384
|
| |
|
|
| |
llvm-svn: 172383
|
| |
|
|
|
|
|
|
|
|
|
| |
1) Supported by Clang, and
2) Supported by GCC, and
3) Documented in GCC's manual.
g++ allows its C++11-style attributes to appertain only to the entity being
declared, and never to a type (even for a type attribute), so we do the same.
llvm-svn: 172382
|
| |
|
|
| |
llvm-svn: 172381
|
| |
|
|
| |
llvm-svn: 172380
|
| |
|
|
|
|
| |
than 2 arguments.
llvm-svn: 172379
|
| |
|
|
|
|
| |
needing to specify everything twice. No functional change intended
llvm-svn: 172378
|