- Jul 12, 2010
-
-
Douglas Gregor authored
-O0, since we won't be using the definitions for anything anyway. For lib/System/Path.o when built in Debug+Asserts mode, this leads to a 4% improvement in compile time (and suppresses 440 function bodies). <rdar://problem/7987644> llvm-svn: 108156
-
Chandler Carruth authored
around by exempting enums from the check, but this doesn't handle a lot of cases. A better approach is to directly check if the operator comes from a macro expansion. I've removed a reference to the rdar that originally led to the enum suppression when removing it's overly contrived test case. Let me know if that number or a more reasilistic test case involving enums is still needed. llvm-svn: 108128
-
Chris Lattner authored
In the case of backtracking, the cached token lexer will be the only lexer on the stack, without this the token stack will be empty and EOF won't be returned. This fixes PR7072. llvm-svn: 108124
-
Chris Lattner authored
root cause of PR7481 and probably more, and has no apparent testcases. I don't understand the logic here so I can't repair it. llvm-svn: 108119
-
Chris Lattner authored
int test1() { return; } default to an error. llvm-svn: 108108
-
Chris Lattner authored
'expected ';' after top level declarator' which is much less vague. llvm-svn: 108106
-
Chris Lattner authored
a function prototype is followed by a declarator if we aren't parsing a K&R style identifier list. Also, avoid skipping randomly after a declaration if a semicolon is missing. Before we'd get: t.c:3:1: error: expected function body after function declarator void bar(); ^ Now we get: t.c:1:11: error: invalid token after top level declarator void foo() ^ ; llvm-svn: 108105
-
Chris Lattner authored
llvm-svn: 108104
-
- Jul 11, 2010
-
-
Chandler Carruth authored
probably try and switch more of these if I can. llvm-svn: 108085
-
Chandler Carruth authored
llvm-svn: 108068
-
John Thompson authored
llvm-svn: 108067
-
- Jul 10, 2010
-
-
Nick Lewycky authored
that loads it, not by linking against them directly. llvm-svn: 108055
-
Nick Lewycky authored
llvm-svn: 108054
-
Dale Johannesen authored
llvm-svn: 108051
-
Chandler Carruth authored
default arguments to template parameters don't have a DeclContext when instantiated, and so we can't detect that we're in an instantiation context as opposed to the definition context. However, it fixes the more commonly-occuring cases in TMP code that use devolve to this type of tautology after substitution. llvm-svn: 108044
-
Argyrios Kyrtzidis authored
llvm-svn: 108042
-
Peter Collingbourne authored
llvm-svn: 108031
-
John Thompson authored
llvm-svn: 108028
-
Fariborz Jahanian authored
be a dependent expression when its is built. llvm-svn: 108026
-
- Jul 09, 2010
-
-
Fariborz Jahanian authored
block literal expression. llvm-svn: 108019
-
Sebastian Redl authored
Slightly improve the diagnostic when using a qualified function typedef to declare nonmember or static member functions. llvm-svn: 108018
-
Argyrios Kyrtzidis authored
possibility of adding an unitialized one into the folding set. llvm-svn: 108016
-
Argyrios Kyrtzidis authored
llvm-svn: 108015
-
Sebastian Redl authored
When given the -chained-pch option and a previous PCH file, have the PCHWriter emit a CHAINED_METADATA record instead of METADATA, and write a link to the previous file there. llvm-svn: 108014
-
Craig Silverstein authored
for code like this: template<template<typename T> class U> class V {}; The problem is that the DeclPrinter assumed all TemplateDecls have a getTemplatedClass(), but template template params don't (so we got a NULL dereference). The solution is to detect if we're a template template param, and construct the template class name ('class U') specially in this case. OKed by dgregor and chandlerc llvm-svn: 108007
-
Eli Friedman authored
llvm-svn: 108006
-
Chandler Carruth authored
wrong, and we don't handle floating point value type arguments yet anyways. Will add correct logic for both when I finish the patch. llvm-svn: 108004
-
Chandler Carruth authored
expected value type. This is necessary as the builtin is internally represented as only operating on integral types. Also, add a FIXME to add support for floating point value types. llvm-svn: 108002
-
Fariborz Jahanian authored
llvm-svn: 108000
-
Douglas Gregor authored
llvm-svn: 107998
-
Douglas Gregor authored
don't technically exist in the language. <rdar://problem/8085982> llvm-svn: 107995
-
Sebastian Redl authored
llvm-svn: 107994
-
Sebastian Redl authored
llvm-svn: 107993
-
Douglas Gregor authored
spell-checking. By default, spell-checking is enabled for Clang (obviously) but disabled in CIndex for performance reasons. llvm-svn: 107992
-
Douglas Gregor authored
llvm-svn: 107985
-
Craig Silverstein authored
Note that this is a move -- we pretend that we were really looking at the unqualified typeloc all along -- rather than a recursion, so we don't follow the normal CRTP plan of going through getDerived().TraverseTypeLoc. If we did, we'd be traversing twice for the same type (once as a QualifiedTypeLoc version of the type, once as an UnqualifiedTypeLoc version of the type), which in effect means we'd call VisitTypeLoc twice with the 'same' type. This solves that problem, at the cost of never seeing the qualified version of the type (unless the client subclasses TraverseQualifiedTypeLoc themselves). It's not a perfect solution. A perfect solution probably requires making QualifiedTypeLoc a wrapper around TypeLoc -- like QualType is a wrapper around Type* -- rather than being its own class in the type hierarchy. Reviewed by wan. llvm-svn: 107973
-
John Thompson authored
llvm-svn: 107956
-
John Thompson authored
llvm-svn: 107953
-
Sebastian Redl authored
Add a frontend option -chained-pch and don't pass an active PCH reader to the PCH writer if it is not set, preventing creation of chained PCH files. Since the reader is so far unused, effectively no functionality change. llvm-svn: 107936
-
Jordy Rose authored
llvm-svn: 107935
-