- 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
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
-
- Jul 10, 2010
-
-
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
-
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
-
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
-
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
-
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
-
Douglas Gregor authored
declarations. llvm-svn: 107933
-
Douglas Gregor authored
selector of an Objective-C method declaration, e.g., given - (int)first:(int)x second:(int)y; this code completion point triggers at the location of "second". It will provide completions that fill out the method declaration for any known method, anywhere in the translation unit. llvm-svn: 107929
-
Sebastian Redl authored
When looking for an entity's Scope, don't consider scopes that can't contain declarations. Fixes PR7594. llvm-svn: 107927
-
Sebastian Redl authored
llvm-svn: 107915
-
- Jul 08, 2010
-
-
Douglas Gregor authored
priority as other constants. And, if we're in a place where we prefer a pointer type, consider "nil" and "NULL" to be close matches. llvm-svn: 107910
-
Douglas Gregor authored
either integer values or other pointers. Fixes <rdar://problem/8134521>. llvm-svn: 107905
-
Eli Friedman authored
involving operator precedence.) llvm-svn: 107902
-
Devang Patel authored
Patch by Alexander Kabaev. PR 7595. llvm-svn: 107900
-
Douglas Gregor authored
a template, be sure to include the template arguments from the injected-class-name. Fixes PR7587. llvm-svn: 107895
-
Argyrios Kyrtzidis authored
Introduce PCHReader::GetTranslationUnitDecl() and use it instead of ReadDeclRecord when initializing. ReadDeclRecord would hit assertion if the translation unit declaration was already loaded during IdentifierInfo initialization. llvm-svn: 107885
-
Argyrios Kyrtzidis authored
llvm-svn: 107884
-