| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
, currently unused, for future cf-annotation work.
llvm-svn: 188224
|
| |
|
|
|
|
| |
info checking already in CreateType(RecordType)
llvm-svn: 188222
|
| |
|
|
| |
llvm-svn: 188214
|
| |
|
|
|
|
| |
incomplete types, courtesy of Luke Zarko.
llvm-svn: 188212
|
| |
|
|
|
|
|
| |
The cmake-clang-x86_64 was upset:
error: 'template<class ImplClass, class RetTy> class clang::ConstStmtVisitor' used without template parameters
llvm-svn: 188211
|
| |
|
|
|
|
|
|
| |
This is used to name the linked output file.
Differential Revision: http://llvm-reviews.chandlerc.com/D1344
llvm-svn: 188210
|
| |
|
|
|
|
|
| |
This is just a couple of minor fixes to account for the existence
of ElaboratedType.
llvm-svn: 188209
|
| |
|
|
|
|
|
|
|
| |
I'm not really satisfied with the ad-hoc nature of
Sema::diagnoseQualifiedDeclaration, but I'm not sure how to fix it.
Fixes <rdar://problem/14639501>.
llvm-svn: 188208
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by delesley, dblaikie.
Add the annotations and code needed to support a basic 'consumed' analysis.
Summary:
This new analysis is based on academic literature on linear types. It tracks
the state of a value, either as unconsumed, consumed, or unknown. Methods are
then annotated as CallableWhenUnconsumed, and when an annotated method is
called while the value is in the 'consumed' state a warning is issued. A value
may be tested in the conditional statement of an if-statement; when this occurs
we know the state of the value in the different branches, and this information
is added to our analysis. The code is still highly experimental, and the names
of annotations or the algorithm may be subject to change.
llvm-svn: 188206
|
| |
|
|
| |
llvm-svn: 188196
|
| |
|
|
| |
llvm-svn: 188190
|
| |
|
|
|
|
|
|
|
|
|
| |
This patch adds -mmsa and -mno-msa to the options supported by
clang to enable and disable support for MSA.
When MSA is enabled, a predefined macro '__mips_msa' is defined to 1.
Patch by Daniel Sanders
llvm-svn: 188184
|
| |
|
|
|
|
|
|
|
|
| |
- Open files before calling stat on them.
- Go through FileManager for getting the buffer of named pipes. It has the
necessary plumbing to deal with "volatile" files.
- Print the cause when stdin reading fails. The only case I can imagine where
this happens is when stdin is wired to a device file, so no test case.
llvm-svn: 188178
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Before:
CHECK(controller->WriteProto(FLAGS_row_key, FLAGS_proto)) << "\""
<< FLAGS_proto
<< "\"";
After:
SemaRef.Diag(Loc, diag::note_for_range_begin_end)
<< BEF << IsTemplate << Description << E->getType();
llvm-svn: 188175
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before:
template <class CallbackClass>
using MyCallback = void(CallbackClass::*)(SomeObject * Data);");
After:
template <class CallbackClass>
using MyCallback = void (CallbackClass::*)(SomeObject *Data);");
Also fix three wrong indentations.
llvm-svn: 188172
|
| |
|
|
| |
llvm-svn: 188170
|
| |
|
|
|
|
|
|
|
| |
Previously these were formatting as catch (E & e) because the inner parenthesis
was being marked as an expression.
Patch by Thomas Gibson-Robinson.
llvm-svn: 188153
|
| |
|
|
| |
llvm-svn: 188151
|
| |
|
|
|
|
| |
include/clang/Basic/LLVM.h.
llvm-svn: 188139
|
| |
|
|
|
|
| |
in include/clang/Basic/LLVM.h.
llvm-svn: 188138
|
| |
|
|
|
|
|
|
| |
instantiated in this scope")
Differential Revision: http://llvm-reviews.chandlerc.com/D920
llvm-svn: 188137
|
| |
|
|
| |
llvm-svn: 188134
|
| |
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D924
llvm-svn: 188133
|
| |
|
|
| |
llvm-svn: 188132
|
| |
|
|
| |
llvm-svn: 188128
|
| |
|
|
|
|
| |
CXXPseudoDestructorExprs may not contain a type. PR16852.
llvm-svn: 188123
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Source-centric tools need access to the location of a C++11
lambda expression's capture-default ('&' or '=') when it's present.
It's possible for them to find it by re-lexing and re-implementing
rules that Clang's parser has already applied, but the cost of storing
the SourceLocation and making it available to them is 32 bits per
LambdaExpr (a small delta, proportionally), and the simplification in
client code is significant.
Reviewers: rsmith
Reviewed By: rsmith
CC: cfe-commits, klimek, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D1192
llvm-svn: 188121
|
| |
|
|
|
|
|
|
|
|
| |
comparing non-reference function parameters. The qualifiers don't matter for
comparisons.
This is a re-commit of r187769, which was accidentially reverted in r187770,
with a simplification at the suggestion of Eli Friedman.
llvm-svn: 188112
|
| |
|
|
|
|
|
|
|
|
| |
separately because ParentMap does not record
Stmt parent nodes inside a BlockDecl.
Fixes rdar://14686900
llvm-svn: 188101
|
| |
|
|
|
|
| |
include/clang/Basic/LLVM.h.
llvm-svn: 188089
|
| |
|
|
| |
llvm-svn: 188088
|
| |
|
|
|
|
|
| |
Since r187945, clang-cl will add the runtime library dependency to
the .obj file.
llvm-svn: 188086
|
| |
|
|
|
|
|
|
|
|
|
|
| |
just ODR use.
This includes special members (copy/default ctor, copy assign, default
ctor) and template specializations for member function templates.
Good for a 5% decrease (1.80 to 1.71 GB) in size on Clang+LLVM's .dwo
files (when using fission).
llvm-svn: 188085
|
| |
|
|
|
|
| |
No functionality change.
llvm-svn: 188084
|
| |
|
|
|
|
| |
Avoids unnecessary static constructors.
llvm-svn: 188083
|
| |
|
|
| |
llvm-svn: 188068
|
| |
|
|
| |
llvm-svn: 188063
|
| |
|
|
|
|
|
|
|
| |
Make sure we can properly generate code when the UUID has curly braces
on it, strip the curly braces at the sema layer.
This fixes PR16813.
llvm-svn: 188061
|
| |
|
|
|
|
| |
Revert r188055 which reverted r188053. An unrelated change previously snuck in.
llvm-svn: 188060
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
ExprEngine had code which specificaly disabled using CXXTempObjectRegions in
InitListExprs. This was a hack put in r168757 to silence a false positive.
The underlying problem seems to have been fixed in the mean time, as removing
this code doesn't seem to break anything. Therefore I propose to remove it and
solve PR16629 in the process.
Reviewers: jordan_rose
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1325
llvm-svn: 188059
|
| |
|
|
| |
llvm-svn: 188058
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
double-width characters in FixIt-hints.
Summary: This is a follow-up to r187837.
Reviewers: gribozavr, jordan_rose
Reviewed By: jordan_rose
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1306
llvm-svn: 188056
|
| |
|
|
|
|
|
|
|
|
| |
proper section"
This commit reverts r188053.
It is breaking the build bots.
llvm-svn: 188055
|
| |
|
|
|
|
|
|
|
|
|
|
| |
We mangled them like:
L___uuid_12345678-1234-1234-1234-123456789abc
We should've mangled them like:
__GUID_12345678_1234_1234_1234_123456789abc
Furthermore, they are external symbols.
llvm-svn: 188053
|
| |
|
|
|
|
|
|
| |
of local classes. We were previously handling this by performing qualified
lookup within a function declaration(!!); replace it with the proper scope
lookup.
llvm-svn: 188050
|
| |
|
|
|
|
| |
Patch by Karthik Bhat, modified slightly by me.
llvm-svn: 188043
|
| |
|
|
|
|
|
|
|
|
| |
This option prints information about #included files to stderr. Clang could
already do it, this patch just teaches the existing code about the /showIncludes
style and adds the flag.
Differential Revision: http://llvm-reviews.chandlerc.com/D1333
llvm-svn: 188037
|
| |
|
|
| |
llvm-svn: 188018
|
| |
|
|
|
|
|
| |
migrate to @property with getter name starting with
'is'.
llvm-svn: 188013
|
| |
|
|
|
|
|
| |
setter/getter methods which can be migrated to
a @property.
llvm-svn: 188005
|