- Aug 27, 2011
-
-
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
-
- Aug 22, 2011
-
-
Fariborz Jahanian authored
objc's decl context. llvm-svn: 138267
-
Ted Kremenek authored
Do not perform check for missing '[super dealloc]' under ARC as calling -dealloc is illegal in that mode. llvm-svn: 138261
-
Fariborz Jahanian authored
llvm-svn: 138253
-
Nico Weber authored
This matches gcc's logic. Half of PR10661. llvm-svn: 138240
-
Fariborz Jahanian authored
failures are resolved. llvm-svn: 138234
-
- Aug 19, 2011
-
-
Matt Beaumont-Gay authored
llvm-svn: 138074
-
Fariborz Jahanian authored
specified. // rdar://9971982 llvm-svn: 138062
-
Fariborz Jahanian authored
llvm-svn: 138049
-
Fariborz Jahanian authored
to modernity. Instead of passing down individual context objects from parser to sema, establish decl context in parser and have sema access current context as needed. I still need to take of Doug's comment for minor cleanups. llvm-svn: 138040
-
Benjamin Kramer authored
llvm-svn: 138032
-
Chandler Carruth authored
llvm-svn: 138024
-
Chandler Carruth authored
llvm-svn: 138023
-
Ted Kremenek authored
Enhance -Wstrl-incorrect-size to not report a FIXIT for destinations that are flexible arrays or have size 1. llvm-svn: 138004
-
- Aug 18, 2011
-
-
Kaelyn Uhrain authored
uncorrected identifier. Fixes a problem pointed out by Eli. llvm-svn: 137987
-
Ted Kremenek authored
Reapply r137903, but fix the definition of size_t in the test case to use __SIZE_TYPE__ (and hence be portable). Also, change the warning to -Wstrl-incorrect-size. llvm-svn: 137980
-
Argyrios Kyrtzidis authored
llvm-svn: 137973
-
Kaelyn Uhrain authored
diagnosing invalid function redeclarations. llvm-svn: 137966
-
Chandler Carruth authored
implicitly instantiable, even if we don't see a body on the friend function declaration. The body may simply have not yet been attached. This fixes PR10666. There may be an alternate, preferred implementation strategy, see my FIXME. Review would definitely be appreciated Doug. =D llvm-svn: 137934
-
Ted Kremenek authored
Revert r137903, "Add experimental -Wstrlcpy-size warning that looks to see if the size argument for strlcpy/strlcat is the size of the *source*, and not the size of the *destination*. This warning is off by default (for now)." This currently doesn't work on Windows. llvm-svn: 137920
-
Chandler Carruth authored
entirely use the existing -Wunused-value infrastructure. This also fixes a few missed cases for -Wunused in general. llvm-svn: 137916
-