| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Fixes a crash. Thanks, Richard.
llvm-svn: 173701
|
| |
|
|
| |
llvm-svn: 173697
|
| |
|
|
| |
llvm-svn: 173696
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Use a hanging ident for function calls nested in binary expressions.
E.g.:
int aaaaa = aaaaaaaaa && aaaaaaaaaa(
aaaaaaaaaa);
2. Slightly improve heuristic for builder type expressions and reduce
penalty for breaking before "." and "->" in those.
3. Remove mostly obsolete metric of decreasing indent level. This
fixes: llvm.org/PR14931.
Changes #1 and #2 were necessary to keep tests passing after #3.
llvm-svn: 173680
|
| |
|
|
|
|
| |
specifying -fsanitize=address
llvm-svn: 173670
|
| |
|
|
|
|
|
|
|
|
| |
The -E output from clang did not produce the correct indentation on the first line.
This is because MoveToLine returned false, and when this happens,
the regular process for producing initial indentation is skipped.
Thanks to Eli for suggesting a way to simplify this to a one-line change.
llvm-svn: 173657
|
| |
|
|
|
|
| |
attribute).
llvm-svn: 173645
|
| |
|
|
|
|
|
| |
permitted in standard C++, despite being silently accepted by many (all?) major
C++ implementations.
llvm-svn: 173643
|
| |
|
|
| |
llvm-svn: 173633
|
| |
|
|
|
|
| |
Patch by Will Wilson.
llvm-svn: 173630
|
| |
|
|
|
|
|
|
| |
does not have one of its own. // rdar://13067629
Original patch (r173586 and r173587) by Fariborz Jahanian, modified by me.
llvm-svn: 173626
|
| |
|
|
|
|
|
| |
Unfortunately, we can't accept the UCN as an extension because we're
required to treat it as two tokens for preprocessing purposes.
llvm-svn: 173622
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for unittests.
For example,
cur) unittests/ADT/Release/ADTTests
new) unittests/ADT/ADTTests
RUNTIME_BUILD_MODE can be substituted to CMAKE_CFG_INTDIR.
With Make and Ninja, the tree is not built with multiple configurations.
Then, including the build type in target directory doesn't make sense.
See also "How can I build multiple modes without switching?"
http://www.cmake.org/Wiki/CMake_FAQ
CMAKE_CFG_INTDIR is set to "."
With multiple-configuration-aware build system, like Visual Studio, each unittest is built on appropriate directory, for example,
unittests/ADT/Release/ADTTests.exe
CMAKE_CFG_INTDIR is set to build system's variable, like "$(Configuration)" or "$(OutDir)".
Thus, "--param build_config" is also deprecated.
llvm-svn: 173616
|
| |
|
|
|
|
|
|
| |
typedef if"
It caused unexpected warnings with @tparam.
llvm-svn: 173614
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
One of the gotchas (see changes to CodeGenFunction) was due to the fix in
r139416 (for PR10829). This only worked previously because the top level
lexical block would set the location to the end of the function, the debug
location would be updated (as per r139416), the location would be set to
the end of the function again (but that would no-op, since it was the same
as the previous location), then the return instruction would be emitted using
the debug location.
Once the top level lexical block was no longer emitted, the end-of-function
location change was causing the debug loc to be updated, regressing that bug.
llvm-svn: 173593
|
| |
|
|
|
|
| |
latter does not have one of its own. // rdar://13067629
llvm-svn: 173586
|
| |
|
|
| |
llvm-svn: 173582
|
| |
|
|
|
|
|
| |
Since ARM has diverging ABIs on this detail, it's probably worth
testing both it and a "normal" Itanium system.
llvm-svn: 173576
|
| |
|
|
|
|
| |
in FileCheck.
llvm-svn: 173561
|
| |
|
|
|
| |
FIXME: If FileCheck had expressions something predefined well-known...
llvm-svn: 173558
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the analyzer sees an initializer, it checks if the initializer
contains a CXXConstructExpr. If so, it trusts that the CXXConstructExpr
does the necessary work to initialize the object, and performs no further
initialization.
This patch looks through any implicit wrapping expressions like
ExprWithCleanups to find the CXXConstructExpr inside.
Fixes PR15070.
llvm-svn: 173557
|
| |
|
|
|
|
|
| |
on a type. Currently, it gives a generic "expected unqualified-id" error.
The new error message is "cannot use (dot|arrow) operator on a type".
llvm-svn: 173556
|
| |
|
|
|
|
| |
object argument type for a member call.
llvm-svn: 173554
|
| |
|
|
| |
llvm-svn: 173553
|
| |
|
|
| |
llvm-svn: 173549
|
| |
|
|
|
|
|
| |
-f(no-)color-diagnostics. In addition, dumpColor() function calls are added
to force color printing. No structural changes to -ast-dump.
llvm-svn: 173548
|
| |
|
|
|
|
|
|
|
|
| |
The expression 'a->b.c()' contains a call to the 'c' method of 'a->b'.
We emit an error if 'a' is NULL, but previously didn't actually track
the null value back through the 'a->b' expression, which caused us to
miss important false-positive-suppression cases, including
<rdar://problem/12676053>.
llvm-svn: 173547
|
| |
|
|
|
|
| |
This should be used for testing only. Path pruning is still on by default.
llvm-svn: 173545
|
| |
|
|
|
|
| |
for // rdar://11861085
llvm-svn: 173543
|
| |
|
|
|
|
| |
testcase for a situation it caused us to miss.
llvm-svn: 173540
|
| |
|
|
|
|
| |
This fixes PR15068.
llvm-svn: 173539
|
| |
|
|
|
|
| |
-Wundefined-internal warnings with PCH.
llvm-svn: 173538
|
| |
|
|
|
|
|
|
|
|
|
| |
Title: [PR9027] volatile struct bug: member is not loaded at -O;
This is caused by last flag passed to @llvm.memcpy being false,
not honoring that aggregate has at least one 'volatile' data member
(even though aggregate itself has not been qualified as 'volatile'.
As a result, optimization optimizes away the memcpy altogether.
Patch review by John MaCall (I still need to fix up a test though).
llvm-svn: 173535
|
| |
|
|
|
|
| |
CHECKs. Don't assume libxml2 here.
llvm-svn: 173534
|
| |
|
|
|
|
|
| |
ARM is not thinking about over-aligned structures.
Overrule ARM in both our generic-ARM and iOS ABI implementations.
llvm-svn: 173531
|
| |
|
|
|
|
|
|
|
|
| |
/usr/include.
You may see such a message on non-posix system;
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/include"
llvm-svn: 173525
|
| |
|
|
|
|
| |
latter does not have one of its own. // rdar://13067629
llvm-svn: 173516
|
| |
|
|
|
|
|
|
| |
never key functions. We did not implement that rule for the
iOS ABI, which was driven by what was implemented in gcc-4.2.
However, implement it now for other ARM-based platforms.
llvm-svn: 173515
|
| |
|
|
| |
llvm-svn: 173511
|
| |
|
|
| |
llvm-svn: 173510
|
| |
|
|
| |
llvm-svn: 173504
|
| |
|
|
| |
llvm-svn: 173496
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
normal label.
Summary:
It's unlikely that a fallthrough is unintended in the following code:
switch (n) {
...
label:
case 1:
...
goto label;
...
}
Reviewers: rsmith, doug.gregor
Reviewed By: doug.gregor
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D329
llvm-svn: 173486
|
| |
|
|
| |
llvm-svn: 173484
|
| |
|
|
| |
llvm-svn: 173482
|
| |
|
|
| |
llvm-svn: 173469
|
| |
|
|
|
|
|
| |
- This just scratches the surface, We have pretty horrible test coverage in
this area it seems like, but this at least covers the change in r173410.
llvm-svn: 173464
|
| |
|
|
| |
llvm-svn: 173462
|
| |
|
|
| |
llvm-svn: 173461
|
| |
|
|
|
|
| |
multiple case labels.
llvm-svn: 173458
|