| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
If a Replacment is contained within the conflict range being built, the
conflict range would be erroneously shortened. Now fixed. Tests updated to
catch this case.
llvm-svn: 188287
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We used to decide whether to really vectorize depending on the optimization
level in PassManagerBuilder.
This patch moves this decision to the clang driver. We look at the optimization
level and whether the f(no-)vectorize is set and decide whether to vectorize.
This allows us to simplify the logic in PassManagerBuilder to just a check for
whether the vectorizer should run or not.
We now do the right thing for:
$ clang -O1 -fvectorize
$ clang -fno-vectorize -O3
llvm-svn: 188280
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
list of matchers for the polymorphic case.
Summary:
Refactor "MatcherList" into "VariantMatcher" and abstract the notion of a list of matchers for the polymorphic case.
This work is to support future changes needed for eachOf/allOf/anyOf matchers. We will add a new type on VariantMatcher.
Reviewers: klimek
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D1365
llvm-svn: 188272
|
| |
|
|
| |
llvm-svn: 188271
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Some coding styles use a different indent for constructor initializers.
Patch by Klemens Baum. Thank you.
Review: http://llvm-reviews.chandlerc.com/D1360
Post review changes: Changed data type to unsigned as a negative indent
width does not make sense and added test for configuration parsing.
llvm-svn: 188260
|
| |
|
|
| |
llvm-svn: 188258
|
| |
|
|
|
|
| |
Thanks Kim Gräsman!
llvm-svn: 188257
|
| |
|
|
|
|
|
|
|
|
| |
Before:
#define IF(a, b, c) if (a&&(b == c))
After:
#define IF(a, b, c) if (a && (b == c))
llvm-svn: 188256
|
| |
|
|
|
|
| |
They were accidentally placed in the #if.
llvm-svn: 188255
|
| |
|
|
|
|
|
|
|
|
|
| |
Before:
aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa)
->aaaaaaaaa());
After:
aaaaaaaaaaaaaaaaaaaaaaaa(
aaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa)->aaaaaaaaa());
llvm-svn: 188253
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
It seems that __uuidof introduces a global extern "C" declaration of
type __s_GUID. However, our implementation of __uuidof does not provide
such a declaration and thus must open-code the mangling for __uuidof in
template parameters.
This allows us to codegen scoped COM pointers and other such things.
This fixes PR16836.
Depends on D1356.
Reviewers: rnk, cdavis5x, rsmith
Reviewed By: rnk
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1357
llvm-svn: 188252
|
| |
|
|
| |
llvm-svn: 188251
|
| |
|
|
|
|
| |
cases...
llvm-svn: 188249
|
| |
|
|
|
|
| |
in comments. [-Wdocumentation]
llvm-svn: 188248
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Properly mangle declarations showing up in template arguments that are
reference parameters. Fun-fact: undname cannot handle these!
Reviewers: rnk, cdavis5x
Reviewed By: rnk
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1356
llvm-svn: 188245
|
| |
|
|
| |
llvm-svn: 188237
|
| |
|
|
|
|
|
|
|
| |
This moves a header-only class from Sema to Analysis and puts the option
check in Sema.
Patch by Chris Wailes!
llvm-svn: 188230
|
| |
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D1370
llvm-svn: 188226
|
| |
|
|
|
|
| |
, currently unused, for future cf-annotation work.
llvm-svn: 188224
|
| |
|
|
|
|
| |
info checking already in CreateType(RecordType)
llvm-svn: 188222
|
| |
|
|
| |
llvm-svn: 188214
|
| |
|
|
| |
llvm-svn: 188213
|
| |
|
|
|
|
| |
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: 188197
|
| |
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 188182
|
| |
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
|
|
| |
Various tests had sprung up over the years which had --check-prefix=ABC on the
RUN line, but "CHECK-ABC:" later on. This happened to work before, but was
strictly incorrect. FileCheck is getting stricter soon though.
Patch by Ron Ofir.
llvm-svn: 188174
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
- va_list checker (PR16811 and PR16812)
- Model floating-point values
- Bound bitwise masking operations (PR16615)
- Bound C string length (PR16558 and others)
llvm-svn: 188127
|
| |
|
|
| |
llvm-svn: 188126
|
| |
|
|
|
|
| |
CXXPseudoDestructorExprs may not contain a type. PR16852.
llvm-svn: 188123
|