- Aug 15, 2013
-
-
Stephen Lin authored
llvm-svn: 188447
-
Fariborz Jahanian authored
properties (direct or indirect) setter/getter (or declared methods as well) are seen by the method implementation type matching logic before declaration of method in super class is seen. This fixes the warning coming out of that method mismatch. // rdar://14650159 llvm-svn: 188438
-
Adrian Prantl authored
llvm-svn: 188414
-
- Aug 14, 2013
-
-
Richard Smith authored
referenced as a member of the current instantiation. In that case, deduce the type of the function to a dependent type rather than exposing an undeduced auto type to the rest of the current instantiation. The standard doesn't really say that the type is dependent in this case; I'll bring this up with CWG. llvm-svn: 188410
-
Larisse Voufo authored
Bug fix: note diagnosis on expression narrowing should say "variable template" instead of "static data member" when appropriate llvm-svn: 188409
-
Shuxin Yang authored
Thank Richard Smith for figuring out this problem. llvm-svn: 188408
-
Shuxin Yang authored
Tested on multiple OSes. llvm-svn: 188406
-
Benjamin Kramer authored
llvm-svn: 188405
-
Daniel Dunbar authored
- Now fixed to ensure substitution value isn't of unicode type on Python 2.6-7. llvm-svn: 188384
-
NAKAMURA Takumi authored
It caused "shell parser error" on win32 internal shell. ShParser doesn't expect unicode, but str. llvm-svn: 188373
-
Daniel Dunbar authored
llvm-svn: 188354
-
Larisse Voufo authored
llvm-svn: 188350
-
Hans Wennborg authored
Differential Revision: http://llvm-reviews.chandlerc.com/D1394 llvm-svn: 188346
-
Fariborz Jahanian authored
// rdar://14303083 llvm-svn: 188335
-
Richard Smith authored
the address of an overloaded function template. llvm-svn: 188334
-
Fariborz Jahanian authored
expresison is a concatenated nsstring element. // rdar://14303083 llvm-svn: 188332
-
Hans Wennborg authored
This adds support for the /link option, which forwards subsequent arguments to the linker. The test for this will only work when targetting win32. Since that's the only target where clang-cl makes sense, use that target by default. Differential Revision: http://llvm-reviews.chandlerc.com/D1388 llvm-svn: 188331
-
Eli Friedman authored
It doesn't make any sense to accept "..." in the argument to a C-style cast, so use a separate expression list parsing routine which rejects it. PR16874. llvm-svn: 188330
-
Nick Lewycky authored
llvm-svn: 188325
-
Eli Friedman authored
PR16872. llvm-svn: 188324
-
- Aug 13, 2013
-
-
Richard Smith authored
When a local extern declaration redeclares some other entity, the type of that entity is merged with the prior type if the prior declaration is visible (in C) or is declared in the same scope (in C++). - Make LookupRedeclarationWithLinkage actually work in C++, use it in the right set of cases, and make it track whether it found a shadowed declaration. - Track whether we found a declaration in the same scope (for C++) including across serialization and template instantiation. llvm-svn: 188307
-
Fariborz Jahanian authored
of harmless changes. llvm-svn: 188303
-
Arnold Schwaighofer authored
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
-
Arnold Schwaighofer authored
llvm-svn: 188271
-
Robert Lytton authored
llvm-svn: 188258
-
David Majnemer authored
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
-
Larisse Voufo authored
llvm-svn: 188249
-
David Majnemer authored
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
-
Hans Wennborg authored
llvm-svn: 188213
-
- Aug 12, 2013
-
-
Hans Wennborg authored
This is used to name the linked output file. Differential Revision: http://llvm-reviews.chandlerc.com/D1344 llvm-svn: 188210
-
Eli Friedman authored
This is just a couple of minor fixes to account for the existence of ElaboratedType. llvm-svn: 188209
-
Eli Friedman authored
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
-
DeLesley Hutchins authored
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
-
Hans Wennborg authored
llvm-svn: 188190
-
Jack Carter authored
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
-
Benjamin Kramer authored
llvm-svn: 188182
-
Tim Northover authored
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
-
- Aug 10, 2013
-
-
Serge Pavlov authored
Fix to PR16225 (Assert-on-invalid: isa<LabelDecl>(D) && "declaration not instantiated in this scope") Differential Revision: http://llvm-reviews.chandlerc.com/D920 llvm-svn: 188137
-
Serge Pavlov authored
Differential Revision: http://llvm-reviews.chandlerc.com/D924 llvm-svn: 188133
-
Rafael Espindola authored
llvm-svn: 188128
-