| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 186764
|
| |
|
|
|
|
|
|
| |
Every #include is surrounded by #if 0 in order to comment it out, which adds
lines. That is fixed up right after, but that all can be inside #if part
that is not processed, so fix up also after every end of a conditional part.
llvm-svn: 186763
|
| |
|
|
| |
llvm-svn: 186762
|
| |
|
|
|
|
| |
While there replace an explicit struct with std::mem_fun.
llvm-svn: 186761
|
| |
|
|
|
|
|
|
|
|
| |
Diag ID is used throughout clang as a sentinel id meaning "this is an
invalid diagnostic id." Confusingly, Diag ID maps to a valid, usable,
diagnostic id. Instead, start diagnostic ids at ID one.
Incidently, remove an unused element from StaticDiagInfo.
llvm-svn: 186760
|
| |
|
|
| |
llvm-svn: 186759
|
| |
|
|
| |
llvm-svn: 186758
|
| |
|
|
|
|
|
| |
template. Passing around dependent types can lead to integral arguments that
cannot be evaluated.
llvm-svn: 186757
|
| |
|
|
|
|
| |
Previously, they were only built and run in the CMake build.
llvm-svn: 186756
|
| |
|
|
|
|
| |
location
llvm-svn: 186755
|
| |
|
|
|
|
|
|
|
|
|
|
| |
A class with a field of non-POD-for-layout type is not POD-for-layout.
This computation should not depend on whether the field is of POD type
in the language sense.
Fixes PR16537.
Patch by Josh Magee.
llvm-svn: 186741
|
| |
|
|
|
|
| |
using dos newlines (<CR><LF>).
llvm-svn: 186740
|
| |
|
|
| |
llvm-svn: 186739
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This is the same way GenericSelectionExpr works, and it's generally a
more consistent approach.
A large part of this patch is devoted to caching the value of the condition
of a ChooseExpr; it's needed to avoid threading an ASTContext into
IgnoreParens().
Fixes <rdar://problem/14438917>.
llvm-svn: 186738
|
| |
|
|
|
|
|
|
| |
Simplify DIxxx:Verify to not call Verify on an operand. Instead, we use
DebugInfoFinder to list all MDNodes that should be a DIScope and all MDNodes
that should be a DIType and we will call Verify on those lists.
llvm-svn: 186737
|
| |
|
|
| |
llvm-svn: 186736
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
indirect branches correctly. Under some circumstances, this led to the deletion
of basic blocks that were the destination of indirect branches. In that case it
left indirect branches to nowhere in the code.
This patch replaces, and is more general than either of the previous fixes for
indirect-branch-analysis issues, r181161 and r186461.
For other branches (not indirect) this refactor should have *almost* identical
behavior to the previous version. There are some corner cases where this
refactor is able to analyze blocks that the previous version could not (e.g.
this necessitated the update to thumb2-ifcvt2.ll).
<rdar://problem/14464830>
llvm-svn: 186735
|
| |
|
|
|
|
|
|
| |
The original change was rolled back in r186627 because of test
failures on the big endian machine. I believe I fixed the issue
so re-submitting.
llvm-svn: 186734
|
| |
|
|
| |
llvm-svn: 186733
|
| |
|
|
| |
llvm-svn: 186732
|
| |
|
|
|
|
| |
conditions that check GEPs and eliminate two of the calls to accumulateConstantOffset.
llvm-svn: 186731
|
| |
|
|
|
|
|
|
| |
templates and explicit specializations
This patch essentially removes all the FIXMEs following calls to DeduceTemplateArguments() that want to keep track of deduction failure info.
llvm-svn: 186730
|
| |
|
|
|
|
|
|
| |
diagnosis of bad template argument deductions."
This reverts commit a730f548325756d050d4caaa28fcbffdae8dfe95.
llvm-svn: 186729
|
| |
|
|
|
|
|
| |
Make sure we correctly expand packs which expand to another
pack in a function type.
llvm-svn: 186728
|
| |
|
|
|
|
| |
bad template argument deductions.
llvm-svn: 186727
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'm not sure how to write a test for this; the following shows the
difference in -ast-dump:
template <int x> struct A {};
template <class T> struct B { };
template <class ...Args> using C = A<(__is_trivially_constructible(Args...))>;
template <class ...Args> using D = C<B<Args>...>;
However, I can't seem to write a test that triggers a visible difference
in behavior.
llvm-svn: 186726
|
| |
|
|
| |
llvm-svn: 186725
|
| |
|
|
|
|
| |
exit
llvm-svn: 186724
|
| |
|
|
| |
llvm-svn: 186723
|
| |
|
|
| |
llvm-svn: 186722
|
| |
|
|
|
|
| |
We were only handling the 'a' and 'b' options during moves before.
llvm-svn: 186721
|
| |
|
|
|
|
|
| |
The mode doesn't actually do anything yet, but this provides a
way to get into it.
llvm-svn: 186720
|
| |
|
|
|
|
|
| |
There seems to be a crash here if we have a calling convention attribute
that gets ignored and then we instantiate templates.
llvm-svn: 186719
|
| |
|
|
|
|
|
|
|
|
|
|
| |
the selector family
Summary: In ARC mode, clang emits a warning if the result of an 'init' method is unused but miss cases where the method does not follows the Cocoa naming convention but is properly declared as an init family method.
CC: cfe-commits, eli.friedman
Differential Revision: http://llvm-reviews.chandlerc.com/D1163
llvm-svn: 186718
|
| |
|
|
| |
llvm-svn: 186717
|
| |
|
|
|
|
| |
declaration which can be migrated to NS_ENUM.
llvm-svn: 186716
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Add printToStream*(llvm::raw_ostream&) methods to Diagnostics, and reimplement everything based on streams instead of concatenating strings.
Also, fix some functions to start with lowercase to match the style guide.
Reviewers: klimek
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D1187
llvm-svn: 186715
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Canonical types are unchanged. The type printer had to be changed to
avoid printing any non-default implicit calling convention as well as
the calling convention attribute.
Reviewers: rjmccall
Differential Revision: http://llvm-reviews.chandlerc.com/D1132
llvm-svn: 186714
|
| |
|
|
|
|
|
|
|
|
| |
When we see a pack, and replace it with a template argument which is
also a pack, we want to use the pack pattern, not the expanded pack.
The caller should take care of expanding the pack afterwards.
Fixes PR16646.
llvm-svn: 186713
|
| |
|
|
| |
llvm-svn: 186712
|
| |
|
|
|
|
|
| |
1) clang++ must be used when linking C++ programs using -fsanitize=undefined, and
2) MSan can't be combined with TSan or ASan.
llvm-svn: 186711
|
| |
|
|
|
|
| |
-mcheck-zero-division.
llvm-svn: 186710
|
| |
|
|
|
|
|
|
|
|
| |
"@synthesize of 'weak' property is only
allowed in ARC" errors.
rdar://14461559
llvm-svn: 186709
|
| |
|
|
|
|
| |
single diagnostic that selects. No functional changes intended.
llvm-svn: 186708
|
| |
|
|
| |
llvm-svn: 186707
|
| |
|
|
|
|
|
|
| |
r186347 (thanks Greg!).
Your mileage may vary depending on the gcc and stl versions in use (see llvm.org/pr15301).
llvm-svn: 186706
|
| |
|
|
|
|
|
| |
We were incorrectly using compiler_used instead of compiler.used. Unfortunately
the passes using the broken name had tests also using the broken name.
llvm-svn: 186705
|
| |
|
|
| |
llvm-svn: 186704
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This allows the clang driver to put MSVC compatible options in the same
enumerator space as its normal options but exclude them from normal
option parsing.
Also changes the standard ParseArgs() method to consider unknown
arguments with a leading slash as being inputs rather than flags.
High level discussion for clang-cl is here:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030404.html
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1049
llvm-svn: 186703
|
| |
|
|
| |
llvm-svn: 186702
|