| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
Austin Seipp!
llvm-svn: 185896
|
| |
|
|
|
|
|
| |
with identifier info. This covers most identifier-like entities (other than
the ISO646 keywords).
llvm-svn: 185895
|
| |
|
|
|
|
| |
PR16561.
llvm-svn: 185887
|
| |
|
|
|
|
| |
properties.
llvm-svn: 185884
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Combined with typo correction's new ability to apply global/absolute nested
name specifiers to possible corrections, cases such as in PR12287 where the
desired function is being shadowed by a lexically closer function with the
same name but a different number of parameters will now include a FixIt.
On a side note, since the test for this change caused
test/SemaCXX/typo-correction.cpp to exceed the typo correction limit for
a single file, I've included a test case for exceeding the limit and added
some comments to both the original and part two of typo-correction.cpp
warning future editors of the files about the limit.
llvm-svn: 185881
|
| |
|
|
| |
llvm-svn: 185880
|
| |
|
|
|
|
| |
for now.
llvm-svn: 185879
|
| |
|
|
|
|
| |
their equivalent property declaration. wip.
llvm-svn: 185873
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use UsualArithmeticConversions unconditionally in analysis of
comparisons and conditional operators: the method performs
the usual arithmetic conversions if both sides are arithmetic, and
usual unary conversions if they are not. This is just a cleanup
for conditional operators; for comparisons, it fixes the issue that
we would try to check isArithmetic() on an atomic type.
Also, fix GetExprRange() in SemaChecking.cpp so it deals with variables
of atomic type correctly.
Fixes PR15537.
llvm-svn: 185857
|
| |
|
|
|
|
|
|
|
|
|
| |
This fixes llvm.org/PR16534.
Before:
aaaaa& operator+(const aaaaa&)LLVM_DELETED_FUNCTION;
After:
aaaaa& operator+(const aaaaa&) LLVM_DELETED_FUNCTION;
llvm-svn: 185828
|
| |
|
|
|
|
|
| |
as suggested by Takumi. To this end, added a MatchVerifier::match()
overload accepting a vector of invocation arguments.
llvm-svn: 185827
|
| |
|
|
| |
llvm-svn: 185823
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a penalty for clang-format for each break that occurs in
a set of parentheses (including fake parenthesis that determine
the range of certain operator precendences) that have not yet been
broken. Thereby, clang-format prefers similar line breaks.
This fixes llvm.org/PR15506.
Before:
const int kTrackingOptions =
NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited |
NSTrackingActiveAlways;
After:
const int kTrackingOptions = NSTrackingMouseMoved |
NSTrackingMouseEnteredAndExited |
NSTrackingActiveAlways;
Also removed ParenState::ForFakeParenthesis which has become unused.
llvm-svn: 185822
|
| |
|
|
|
|
|
|
| |
Pulled out the cache clearing in the case of descendant matching, too,
for consistency, also it is not technically needed there.
FIXME: Make cache size configurable and add unit test.
llvm-svn: 185820
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Fixes problems that lead to incorrect formatting of these and similar snippets:
/*
**
*/
/*
**/
/*
* */
/*
*test
*/
Clang-format used to think that all the cases above use "* " decoration, and
failed to calculate insertion position properly. It also used to remove leading
"* " in the last line.
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1113
llvm-svn: 185818
|
| |
|
|
|
|
| |
tag name 'cc'; did you mean 'c'? [-Wdocumentation]
llvm-svn: 185810
|
| |
|
|
|
|
|
|
| |
since r175892 on valgrind.
That said, it fails with --vg-leak. Mark it as XFAIL: vg_leak instead.
llvm-svn: 185809
|
| |
|
|
|
|
|
| |
This is mostly Doxygen formatting, but also updates some C++0x references
to C++11 and clarifies some wording.
llvm-svn: 185798
|
| |
|
|
|
|
|
| |
'shell-preserves-root'.
FIXME: Could we introduce another feature for it?
llvm-svn: 185797
|
| |
|
|
|
|
|
|
|
|
|
| |
x86_64-unknown-unknown.
It would emit @llvm.memcpy with "-triple x86_64-(mingw32|win32)" and had been failing since Nick's r185735.
; Function Attrs: nounwind
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1) #1
llvm-svn: 185796
|
| |
|
|
|
|
|
| |
CXXUnresolvedConstructExpr.SourceRange, for now.
FIXME: It could pass if MS-compatible mode were disabled with Args.push_back("-fno-delayed-template-parsing").
llvm-svn: 185795
|
| |
|
|
| |
llvm-svn: 185792
|
| |
|
|
|
|
| |
small size of the inner SmallVector.
llvm-svn: 185789
|
| |
|
|
| |
llvm-svn: 185787
|
| |
|
|
| |
llvm-svn: 185786
|
| |
|
|
| |
llvm-svn: 185785
|
| |
|
|
|
|
| |
specifying the vector size.
llvm-svn: 185784
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sema::MergeFunctionDecl attempts merging two decls even if the old decl
is invalid. This can lead to interesting circumstances where we
successfully merge the decls but the result makes no sense.
Take the following for example:
template <typename T>
int main(void);
int main(void);
Sema will not consider these to be overloads of the same name because
main can't be overloaded, which means that this must be a redeclaration.
In this case the templated decl is compatible with the non-templated
decl allowing the Sema::CheckFunctionDeclaration machinery to move on
and do bizarre things like setting the previous decl of a non-templated
decl to a templated decl!
The way I see it, we should just bail from MergeFunctionDecl if the old
decl is invalid.
This fixes PR16531.
llvm-svn: 185779
|
| |
|
|
|
|
| |
Added testcases.
llvm-svn: 185773
|
| |
|
|
|
|
| |
case inspired by a stackoverflow question.
llvm-svn: 185772
|
| |
|
|
|
|
|
|
|
| |
* Fix up \brief documentation;
* Update C++0x references to C++11;
* Doxygen formatting: bulleted lists start with a single hyphen, not two;
* Fix a typo, "assosiate" -> "associate".
llvm-svn: 185771
|
| |
|
|
| |
llvm-svn: 185765
|
| |
|
|
|
|
| |
// rdar://14182680.
llvm-svn: 185762
|
| |
|
|
| |
llvm-svn: 185752
|
| |
|
|
|
|
|
|
|
|
| |
This boils down to us sending invalid function decls to
CheckFunctionDeclaration becauswe we did not consider that CheckMain
could cause the decl to be invalid. Instead, interogate the new decl's
main-validity and *then* send it over to get CheckFunctionDeclaration'd
if it was still valid after calling CheckMain.
llvm-svn: 185745
|
| |
|
|
| |
llvm-svn: 185736
|
| |
|
|
|
|
| |
class type. // rdar://14261999
llvm-svn: 185734
|
| |
|
|
|
|
|
| |
use can cause crash. No test is available. It is uncovered
by code browsing. // rdar://14348205
llvm-svn: 185732
|
| |
|
|
|
|
|
| |
Include a test that clang now produces output files with permissions matching
the umask.
llvm-svn: 185727
|
| |
|
|
| |
llvm-svn: 185725
|
| |
|
|
|
|
| |
use of objc's properties.
llvm-svn: 185724
|
| |
|
|
|
|
|
|
| |
declaration was affected by "@optional"
rdar://14348525.
llvm-svn: 185722
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the TBAA code so it doesn't use mangleCXXRTTIName in C,
because it doesn't really make sense there. Also, as sort of a
defense-in-depth change, fix the mangler so it handles C RecordDecls
correctly.
No tests because I don't know the TBAA code well enough to write a test,
and I don't know how else to trigger mangling a local struct in C.
Fixes a crash with r185450 reported by Joerg Sonnenberger.
llvm-svn: 185721
|
| |
|
|
| |
llvm-svn: 185717
|
| |
|
|
| |
llvm-svn: 185715
|
| |
|
|
|
|
|
|
| |
As it turns out, the NoFunction bit for local class mangling needed to be
propagated into more places. r185450 turned what used to be an incorrect
mangling into an assertion.
llvm-svn: 185713
|
| |
|
|
|
|
| |
abstract class type. // rdar://14261999
llvm-svn: 185710
|
| |
|
|
| |
llvm-svn: 185708
|
| |
|
|
|
|
|
|
|
|
|
| |
We should not be asking unique_file to prepend the system temporary directory
when creating the html report. Unfortunately I don't think we can test this
with the current infrastructure since unique_file ignores MakeAbsolute if the
directory is already absolute and the paths provided by lit are.
I will take a quick look at making this api a bit less error prone.
llvm-svn: 185707
|
| |
|
|
|
|
|
| |
The operator== calls equivalent which calls default_error_condition which
handles windows to posix conversion.
llvm-svn: 185702
|