- Sep 28, 2010
-
-
Sebastian Redl authored
When chaining PCHs, only write PPRecords that don't come from PCH, and give them the correct IDs. Fixes a crash in XCode. llvm-svn: 114913
-
Douglas Gregor authored
CXXRecordDecl::DefinitionData::DeclaredCopyAssignment, for copy-assignment operators. Another step toward <rdar://problem/8459981>. llvm-svn: 114899
-
- Sep 27, 2010
-
-
Bill Wendling authored
"shift with non-immediate" intrinsics. It gets here because we they aren't immediates anymore. llvm-svn: 114890
-
Douglas Gregor authored
DeclaredCopyConstructor bits in CXXRecordDecl's DefinitionData structure. Rather than having Sema call addedConstructor or set the bits directly at semi-random places, move all of the logic for managing these bits into CXXRecordDecl itself and tie the addedConstructor call into DeclContext::addDecl(). This makes it easier for AST-building clients to get the right bits set in DefinitionData, and is one small part of <rdar://problem/8459981>. llvm-svn: 114889
-
Nico Weber authored
Correctly set "explicit template instantiation" kind on inner structs of templates whose explicit instantiation is first declared and then defined. Fixes http://llvm.org/pr8207 llvm-svn: 114874
-
Fariborz Jahanian authored
(on functions with no pointer arguments) but only when the attribute has not been coming from a macro instantiation in a header file. Fixes first part of radar 6857843. llvm-svn: 114860
-
Fariborz Jahanian authored
into a temporary is elidable as well. (Finishes up radar 8291337). llvm-svn: 114845
-
Douglas Gregor authored
llvm-svn: 114836
-
Abramo Bagnara authored
llvm-svn: 114820
-
Michael J. Spencer authored
That, and keep aKor happy :P. llvm-svn: 114816
-
Michael J. Spencer authored
llvm-svn: 114814
-
- Sep 25, 2010
-
-
Daniel Dunbar authored
using generic GCC tools. llvm-svn: 114793
-
Marcin Swiderski authored
- LocalScope class with iterator used to pointing into it, - fat doxygen comment for LocalScope indended usage, - BlockScopePosPair class used for storing jump targets/sources (for: goto, break, continue), that replaces raw CFGBlock pointer used earlier for this purpose. llvm-svn: 114790
-
Fariborz Jahanian authored
for property reference expression (of c++ object type) in the conditional expression. Fixes // rdar://8291337 llvm-svn: 114783
-
Douglas Gregor authored
identifier, we may have a Sema object but no translation unit scope (because parsing is finished). In this case, we still need to update the IdResolver, which might still be used when writing a PCH containing another PCH (without chaining). This bug manifested as a failure with precompiled preambles. Also, add a little environment-variable-sensitive logging for libclang. llvm-svn: 114774
-
- Sep 24, 2010
-
-
Anders Carlsson authored
llvm-svn: 114762
-
Douglas Gregor authored
Teach libclang to enable multithreading in LLVM, since libclang clients are likely to be multithreaded. Also move the printing of timers to somewhere better for multithreaded libclang clients llvm-svn: 114760
-
Daniel Dunbar authored
to prevent users from trying unsupported stuff. Useful for testing. llvm-svn: 114749
-
Fariborz Jahanian authored
Fixed //rdar://8472487. llvm-svn: 114741
-
Fariborz Jahanian authored
vla. Implements pr7827. llvm-svn: 114737
-
Ted Kremenek authored
Default synthesized ivars don't really have a location in the source. Using the location of the @implementation is just confusing for clients that want to use SourceLocations for syntactic references. Fixes: <rdar://problem/8470540> llvm-svn: 114714
-
Nick Lewycky authored
llvm-svn: 114713
-
Nick Lewycky authored
llvm-svn: 114712
-
Nick Lewycky authored
llvm-svn: 114711
-
Douglas Gregor authored
provided when the optimization is disabled. In particular, split the completion context CCC_Other into two contexts: CCC_Other, which means that it's an undisclosed context for which any other results are unwelcome, and CCC_Recovery, which is used in recovery cases. Since we're now using the completion context within the completion results builder, make sure that it's always set to something. Fixes <rdar://problem/8470644>. llvm-svn: 114704
-
- Sep 23, 2010
-
-
Ted Kremenek authored
When warning about comparing an unsigned int to being >= 0, don't issue a warning if the zero value was an enum or was expanded from a macro. Fixes: <rdar://problem/8414119> llvm-svn: 114695
-
Ted Kremenek authored
as the lexical DeclContext for the @property declaration that gets auto-created for the @interface. Fixes: <rdar://problem/8467189> llvm-svn: 114693
-
Argyrios Kyrtzidis authored
members with the same name as a decl outside the scope where the members are actually introduced. Fixes http://llvm.org/PR6741 llvm-svn: 114641
-
Argyrios Kyrtzidis authored
If -fcolor-diagnostics is explicitly passed to the driver respect that even if the driver is of the opinion that stderr can't handle them. (see http://llvm.org/PR8150) Patch by Frits van Bommel! llvm-svn: 114638
-
Argyrios Kyrtzidis authored
llvm-svn: 114637
-
Ted Kremenek authored
Refactor GRExprEngine::VisitCall() to use EvalArguments(), just like VisitCXXMemberCallExpr(). Ideally we should unify these code paths as much as possible, since they only differ by a few details. llvm-svn: 114628
-
Daniel Dunbar authored
llvm-svn: 114619
-
Daniel Dunbar authored
- Therefore, we can lower out the NEON wrapper structs and pass the vectors directly. This makes a huge difference in the cleanliness of the IR after optimization. - I will trust, but verify, via future ABITest testing (for APCS-GNU, at least). llvm-svn: 114618
-
- Sep 22, 2010
-
-
Tom Care authored
llvm-svn: 114581
-
Sebastian Redl authored
llvm-svn: 114575
-
Douglas Gregor authored
Fix a hard-to-reproduce crash-on-invalid, where we weren't checking for a valid result from ActOnIdExpression llvm-svn: 114548
-
Argyrios Kyrtzidis authored
-Wpadded warns when undesired padding is introduced in a struct. (rdar://7469556) -Wpacked warns if a struct is given the packed attribute, but the packed attribute has no effect on the layout or the size of the struct. Such structs may be mis-aligned for little benefit. The warnings are emitted at the point where layout is calculated, that is at RecordLayoutBuilder. To avoid calculating the layouts of all structs regardless of whether they are needed or not, I let the layouts be lazily constructed when needed. This has the disadvantage that the above warnings will be emitted only when they are used for IR gen, and not e.g with -fsyntax-only: $ cat t.c struct S { char c; int i; }; void f(struct S* s) {} $ clang -fsyntax-only -Wpadded t.c $ clang -c -Wpadded t.c -o t.o t.c:3:7: warning: padding struct 'struct S' with 3 bytes to align 'i' [-Wpadded] int i; ^ 1 warning generated. This is a good tradeoff between providing the warnings and not calculating layouts for all structs in case the user has enabled a couple of rarely used warnings. llvm-svn: 114544
-
Sebastian Redl authored
llvm-svn: 114518
-
Sebastian Redl authored
llvm-svn: 114517
-
Daniel Dunbar authored
some projects still depend on ___eprintf being available. llvm-svn: 114509
-