- Aug 31, 2011
-
-
Chandler Carruth authored
of the function in question when applicable (that is, not for blocks). Patch by Joerg Sonnenberger with some stylistic tweaks by me. When discussing this weth Joerg, streaming the decl directly into the diagnostic didn't work because we have a pointer-to-const, and the overload doesn't accept such. In order to make my style tweaks to the patch, I first changed the overload to accept a pointer-to-const, and then changed the diagnostic printing layer to also use a pointer-to-const, cleaning up a gross line of code along the way. llvm-svn: 138854
-
Douglas Gregor authored
collision between C99 hexfloats and C++0x user-defined literals by giving C99 hexfloats precedence. Also, warning about user-defined literals that conflict with hexfloats and those that have names that are reserved by the implementation. Fixes <rdar://problem/9940194>. llvm-svn: 138839
-
Jeffrey Yasskin authored
aren't considered narrowing conversions. llvm-svn: 138838
-
- Aug 30, 2011
-
-
Sebastian Redl authored
This makes the code duplication of implicit special member handling even worse, but the cleanup will have to come later. For now, this works. Follow-up with tests for explicit defaulting and enabling the __has_feature flag to come. llvm-svn: 138821
-
Argyrios Kyrtzidis authored
Remove -setClassInterface -setNextClassCategory -insertNextClassCategory and combine them in the Create function. llvm-svn: 138817
-
Argyrios Kyrtzidis authored
llvm-svn: 138815
-
John McCall authored
Doing this happens to disrupt the pattern that ARC was looking for for move optimizations, so we need to fix that simultaneously. llvm-svn: 138789
-
Douglas Gregor authored
llvm-svn: 138787
-
John McCall authored
Johannes Schaub for talking me around to sense. llvm-svn: 138784
-
Nico Weber authored
llvm-svn: 138776
-
Caitlin Sadowski authored
Thread safety: added basic handling for pt_guarded_by/var and guarded_by/var annotations. We identify situations where we are accessing (reading or writing) guarded variables, and report an error if the appropriate locks are not held. llvm-svn: 138774
-
- Aug 29, 2011
-
-
Fariborz Jahanian authored
No change in functionality. llvm-svn: 138742
-
Caitlin Sadowski authored
This patch is by DeLesley Hutchins. llvm-svn: 138738
-
Jeffrey Yasskin authored
qualification of a type doesn't affect whether a conversion is a narrowing conversion. This doesn't work in template cases because SubstTemplateTypeParmType gets in the way. llvm-svn: 138735
-
Nico Weber authored
This matches gcc's logic. Second half of PR10661. llvm-svn: 138730
-
- Aug 28, 2011
-
-
John McCall authored
to varargs functions in unevaluated contexts. AFAICT, there is no standards justification for this, but it matches what other compilers do and therefore preserves compatibility with certain template metaprogramming idioms. Should fix self-host. llvm-svn: 138715
-
- Aug 27, 2011
-
-
Fariborz Jahanian authored
to class implementation where it is supposed to be implemented. // rdar://10009982. llvm-svn: 138714
-
Fariborz Jahanian authored
, such as list of forward @class decls, in a DeclGroup node. Deal with its consequence throught clang. This is in preparation for more Sema work ahead. // rdar://8843851. Feel free to reverse if it breaks something important and I am unavailable. llvm-svn: 138709
-
John McCall authored
of default argument promotion and needs to happen unconditionally. This is particularly semantically important in C++0x. llvm-svn: 138691
-
Douglas Gregor authored
pointer variable. Patch by David Blaikie! llvm-svn: 138687
-
Douglas Gregor authored
loads the named module. The syntax itself is intentionally hideous and will be replaced at some later point with something more palatable. For now, we're focusing on the semantics: - Module imports are handled first by the preprocessor (to get macro definitions) and then the same tokens are also handled by the parser (to get declarations). If both happen (as in normal compilation), the second one is redundant, because we currently have no way to hide macros or declarations when loading a module. Chris gets credit for this mad-but-workable scheme. - The Preprocessor now holds on to a reference to a module loader, which is responsible for loading named modules. CompilerInstance is the only important module loader: it now knows how to create and wire up an AST reader on demand to actually perform the module load. - We search for modules in the include path, using the module name with the suffix ".pcm" (precompiled module) for the file name. This is a temporary hack; we hope to improve the situation in the future. llvm-svn: 138679
-
- Aug 26, 2011
-
-
Fariborz Jahanian authored
finding life-time conflict with its declared ivar. // rdar://10007230 llvm-svn: 138659
-
Eli Friedman authored
llvm-svn: 138648
-
Eli Friedman authored
Make sure we don't crash printing builtin candidates for overloads of deleted operators. Fixes PR10757. llvm-svn: 138645
-
John McCall authored
the crazy comma expression so that we get an r-value in the varargs position. llvm-svn: 138638
-
John McCall authored
bridged cast. Noticed by AST inspection by Ted Kremenek! llvm-svn: 138616
-
Matt Beaumont-Gay authored
Much to everyone's surprise, the default constructor for TypeResult produces an instance with Invalid == false. This seems like a decision we may want to revisit. llvm-svn: 138601
-
Fariborz Jahanian authored
declated method in the class belongs to a synthesized property getter/setter. // rdar://10014946 llvm-svn: 138598
-
Douglas Gregor authored
from the given source. -emit-module behaves similarly to -emit-pch, except that Sema is somewhat more strict about the contents of -emit-module. In the future, there are likely to be more interesting differences. llvm-svn: 138595
-
Fariborz Jahanian authored
changes. // rdar://10015110 llvm-svn: 138594
-
- Aug 25, 2011
-
-
Fariborz Jahanian authored
llvm-svn: 138584
-
Fariborz Jahanian authored
llvm-svn: 138571
-
Fariborz Jahanian authored
as in @class foo, bar. More cleanup to follow. llvm-svn: 138567
-
- Aug 24, 2011
-
-
Caitlin Sadowski authored
Thread safety: Fix a few typos in last commit -- use LockID instead of Lock in comments and start a couple methods with a lowercase letter llvm-svn: 138460
-
Ted Kremenek authored
handled SCC's of dead code, or simply having false negatives by overly suppressing warnings. WIP. llvm-svn: 138410
-
Ted Kremenek authored
llvm-svn: 138408
-
Eli Friedman authored
Refactor and fix checking for initialization of flexible array members. The old version had the checks scattered across the code, missed some checks, and had a couple nasty bugs in existing checks. Fixes PR10648 and another similar accepts-invalid bug. llvm-svn: 138398
-
- Aug 23, 2011
-
-
Eli Friedman authored
llvm-svn: 138368
-
Caitlin Sadowski authored
system flags an error when unlocking a lock which was not held, locking the same lock twice, having a different lockset on each iteration of a loop, or going out of scope while still holding a lock. In order to successfully use the lockset, this patch also makes sure that attribute arguments are attached correctly for later parsing. This patch was also worked on by DeLesley Hutchins. Note: This patch has been reviewed by Chandler Carruth and Jeffrey Yasskin. Feel free to provide post-commit review comments for a subsequent patch. llvm-svn: 138350
-
Matt Beaumont-Gay authored
For the test case added to function-redecl.cpp, we were previously complaining about a mismatch in the parameter types, since the definition used the typedef'd type. llvm-svn: 138318
-