- Feb 28, 2011
-
-
Douglas Gregor authored
llvm-svn: 126653
-
Axel Naumann authored
* Add default implementations (no-op) for ExternalASTSource's pure virtual functions. There are valid use cases that can live with these defaults. * Move ExternalASTSource's out of line implementations into separate source file. * Whitespace, forward decl, #include cleanup. llvm-svn: 126648
-
Ken Dyck authored
they are known to be exact multiples of the width of the char type. Add a test case to CodeGen/union.c that would have caught the problem with the previous attempt. No change in functionality intended. llvm-svn: 126628
-
Chris Lattner authored
llvm-svn: 126595
-
Douglas Gregor authored
nested-name-specifier, e.g., T::template apply<U>:: represent the dependent template name specialization as a DependentTemplateSpecializationType, rather than a TemplateSpecializationType with a dependent TemplateName. llvm-svn: 126593
-
- Feb 26, 2011
-
-
Alexis Hunt authored
This successfully performs constructor lookup and verifies that a delegating initializer is the only initializer present. This does not perform loop detection in the initialization, but it also doesn't codegen delegating constructors at all, so this won't cause runtime infinite loops yet. llvm-svn: 126552
-
John McCall authored
llvm-svn: 126541
-
- Feb 25, 2011
-
-
Douglas Gregor authored
DependentScopeDeclRefExpr. Plus, give NestedNameSpecifierLoc == and != operators, since we're going to need 'em elsewhere. llvm-svn: 126508
-
Chandler Carruth authored
silliness, and actually use the existing facilities of raw_ostream to do escaping. This will also hopefully fix an assert when building with signed char (MSVC I think). llvm-svn: 126505
-
Douglas Gregor authored
pseudo-destructor expressions. Also, clean up some template-instantiation and type-checking issues with pseudo-destructors. llvm-svn: 126498
-
Douglas Gregor authored
aliases. llvm-svn: 126496
-
Douglas Gregor authored
llvm-svn: 126489
-
Douglas Gregor authored
tag definitions. Also, add support for template instantiation of NestedNameSpecifierLocs. llvm-svn: 126470
-
Douglas Gregor authored
UnresolvedUsingValueDecl to use NestedNameSpecifierLoc rather than the extremely-lossy NestedNameSpecifier/SourceRange pair it used to use, improving source-location information. Various infrastructure updates to support NestedNameSpecifierLoc: - AST/PCH (de-)serialization - Recursive AST visitor - libclang traversal (including the first tests of this functionality) llvm-svn: 126459
-
Chandler Carruth authored
I tried to add test cases for these, but I can't because variables aren't warned on the way functions are and the codegen layer appears to use different logic for determining that 'a' and 'g' in the test case should receive C mangling. I've included the test so that if we ever switch the codegen layer to use these functions, we won't regress due to latent bugs. llvm-svn: 126453
-
- Feb 24, 2011
-
-
Chandler Carruth authored
namespace blanket rule for variables and functions declared 'extern "C"'. llvm-svn: 126400
-
Douglas Gregor authored
nested-name-specifiers throughout the parser, and provide a new class (NestedNameSpecifierLoc) that contains a nested-name-specifier along with its type-source information. Right now, this information is completely useless, because we don't actually store the source-location information anywhere in the AST. Call this Step 1/N. llvm-svn: 126391
-
Daniel Dunbar authored
layout", it broke some GCC tests. llvm-svn: 126386
-
Douglas Gregor authored
way it keeps track of namespaces. Previously, we would map from the namespace alias to its underlying namespace when building a nested-name-specifier, losing source information in the process. llvm-svn: 126358
-
Ken Dyck authored
methods, when they are known to be exact multiples of the width of the char type. llvm-svn: 126357
-
Ken Dyck authored
llvm-svn: 126356
-
Ken Dyck authored
with getter and setter methods in both bit units and CharUnits. This will help simplify some of the unit mismatch in the parts of the code where sizes are known to be exact multiples of the width of the char type. Assertions in the getters help guard against accidentally converting to CharUnits when sizes are not exact multiples of the char width. llvm-svn: 126354
-
- Feb 22, 2011
-
-
John McCall authored
invocation function into the debug info. Rather than faking up a class, which is tricky because of the custom layout we do, we just emit a struct directly from the layout information we've already got. Also, don't emit an unnecessarily parameter alloca for this "variable". llvm-svn: 126255
-
John McCall authored
the stack. llvm-svn: 126254
-
John McCall authored
block and, eventually, C++ lambda) contexts. llvm-svn: 126252
-
Matt Beaumont-Gay authored
llvm-svn: 126240
-
- Feb 21, 2011
-
-
Chris Lattner authored
When the mismatch is due to a larger input operand that is a constant, truncate it down to the size of the output. This allows us to accept some cases in the linux kernel and elsewhere. Pedantically speaking, we generate different code than GCC, though I can't imagine how it would matter: Clang: movb $-1, %al frob %al GCC: movl $255, %eax frob %al llvm-svn: 126148
-
Richard Smith authored
llvm-svn: 126140
-
Richard Smith authored
* Flag indicating 'we're parsing this auto typed variable's initializer' moved from VarDecl to Sema * Temporary template parameter list for auto deduction is now allocated on the stack. * Deduced 'auto' types are now uniqued. llvm-svn: 126139
-
John McCall authored
logic from CXXMemberCallExpr and by making it check for CXXOperatorCallExpr in order to defer. This is not really an awesome solution, but I don't have a better idea. llvm-svn: 126114
-
- Feb 20, 2011
-
-
Richard Smith authored
This fixes PR 8738, 9060 and 9132. llvm-svn: 126069
-
Ken Dyck authored
intended. llvm-svn: 126066
-
Ken Dyck authored
llvm-svn: 126064
-
- Feb 19, 2011
-
-
Chris Lattner authored
a typedef. llvm-svn: 126059
-
Ken Dyck authored
intended. llvm-svn: 126034
-
Douglas Gregor authored
lead to a serious slowdown (4%) on parsing of Cocoa.h. This memory optimization should be revisited later, when we have time to look at the generated code. llvm-svn: 126033
-
John McCall authored
without defining them. This should be an error, but I'm paranoid about "uses" that end up not actually requiring a definition. I'll revisit later. Also, teach IR generation to not set internal linkage on variable declarations, just for safety's sake. Doing so produces an invalid module if the variable is not ultimately defined. Also, fix several places in the test suite where we were using internal functions without definitions. llvm-svn: 126016
-
Chandler Carruth authored
diagnostics, resolving PR9227. Patch originally by Mihai Rusu and Stephen Hines with some minimal style tweaks from me. llvm-svn: 125999
-
Chandler Carruth authored
a non-pointer on the two sides of a conditional expression. Patch by Stephen Hines and Mihai Rusu. llvm-svn: 125995
-
- Feb 18, 2011
-
-
Douglas Gregor authored
that was ignored in a few places (most notably, code completion). Introduce Selector::getNameForSlot() for the common case where we only care about the name. Audit all uses of getIdentifierInfoForSlot(), switching many over to getNameForSlot(), fixing a few crashers. Fixed <rdar://problem/8939352>, a code-completion crasher. llvm-svn: 125977
-