- Jun 03, 2011
-
-
Francois Pichet authored
My testing shows that function stat has no problem with trailing separators. (tested on Windows and Darwin). This fixes a bug on Windows: clang c:\test.cpp Here the call stat("c:") is not recognized as a directory (must be "c:\"). llvm-svn: 132539
-
Francois Pichet authored
I'll try to implement this functionality again soon. llvm-svn: 132536
-
Chandler Carruth authored
diagnostic group to cover the cases where we have definitively bad behavior: dynamic classes. It also rips out the existing support for POD-based checking. This didn't work well, and triggered too many false positives. I'm looking into a possibly more principled way to warn on the fundamental buggy construct here. POD-ness isn't the critical aspect anyways, so a clean slate is better. This also removes some silliness from the code until the new checks arrive. llvm-svn: 132534
-
NAKAMURA Takumi authored
llvm-svn: 132531
-
Douglas Gregor authored
of incomplete array type, attempt to complete the array type. This was made much easier by Chandler's addition of RequireCompleteExprType(), which I've tweaked (slightly) to improve the consistency of the DeclRefExpr. Fixes PR7985. llvm-svn: 132530
-
Douglas Gregor authored
the template parameter, perform the checking as a "specified" template argument rather than a "deduced" template argument; the latter implies stricter type checking that is not permitted for default template arguments. Also, cleanup our handling of substitution of explicit template arguments for a function template. We were actually performing some substitution of default arguments at this point! Fixes PR10069. llvm-svn: 132529
-
Douglas Gregor authored
DeclRefExprs, IntegerLiterals, and others, reducing Cocoa PCH size by ~1% and C++ header size by ~2.5%. From Jonathan Turner! llvm-svn: 132528
-
Rafael Espindola authored
Before this patch we would still link with the system libstdc++. It worked fine most of the time, but would break if the used headers were a lot newer than the system libraries. This patch changes the driver to use the libraries corresponding to the headers the user selected. This fixes, for example, using 4.5 headers in a system with gcc 4.1. llvm-svn: 132497
-
- Jun 02, 2011
-
-
Eli Friedman authored
llvm-svn: 132489
-
Argyrios Kyrtzidis authored
in ASTReader::validateFileEntries(). This avoids going through all source location entries and fixes the performance regression. Many thanks to Doug for the hint! (rdar://9530587) llvm-svn: 132481
-
Rafael Espindola authored
llvm-svn: 132474
-
Rafael Espindola authored
llvm-svn: 132468
-
Manuel Klimek authored
llvm-svn: 132462
-
Rafael Espindola authored
llvm-svn: 132460
-
Douglas Gregor authored
+keyPathsForValuesAffecting<Key> completion was mislabeled as an instance method, and +automaticallyNotifiesObserversOf<Key> was missing entirely. Fixes <rdar://problem/9516762>. llvm-svn: 132452
-
Francois Pichet authored
llvm-svn: 132447
-
Akira Hatanaka authored
llvm-svn: 132443
-
Douglas Gregor authored
nested types, from Michael Han! llvm-svn: 132431
-
- Jun 01, 2011
-
-
Rafael Espindola authored
idea at some point to split out the directories where we install our runtime libraries. llvm-svn: 132425
-
Douglas Gregor authored
constant-expression, and, therefore, an unevaluated operand. Make it so. llvm-svn: 132400
-
Douglas Gregor authored
pointers. Fixes PR10052. llvm-svn: 132397
-
Nick Lewycky authored
function might need to clean up its temporaries. Fixes PR10057. llvm-svn: 132390
-
Argyrios Kyrtzidis authored
a file was modified since the time the PCH was created. The parser is not fit to deal with stale PCHs, too many invariants do not hold up. rdar://9530587. llvm-svn: 132389
-
Francois Pichet authored
llvm-svn: 132387
-
Manuel Klimek authored
tools that match on the C++ ASTs. The main interface is in ASTMatchers.h, an example implementation of a tool that removes redundant .c_str() calls is in the example RemoveCStrCalls.cpp. Various contributions: Zhanyong Wan, Chandler Carruth, Marcin Kowalczyk, Wei Xu, James Dennett. llvm-svn: 132374
-
Francois Pichet authored
Revert 132332 (Microsoft friend as a forward declaration), John McCall pointed out a better/simpler way to do it. llvm-svn: 132369
-
Devang Patel authored
llvm-svn: 132368
-
- May 31, 2011
-
-
Devang Patel authored
llvm-svn: 132361
-
Devang Patel authored
llvm-svn: 132357
-
Alexis Hunt authored
expression. Fixes bug raised by hhinnant to cfe-dev llvm-svn: 132350
-
Daniel Dunbar authored
llvm-svn: 132338
-
Francois Pichet authored
Recreate the DeclContext before adding the implicit friend forward declaration. This should fix the asserting buildbot. llvm-svn: 132333
-
Francois Pichet authored
For compatibility with MSVC, a friend declaration also act as a forward declaration if the tag name is not already declared. The tag name is declared in the next outermost non record scope. Example: class A { friend class B; B* b; }; B* global_b; llvm-svn: 132332
-
Nick Lewycky authored
vtables! Fixes PR10020 This also allows us to revert the part of r130023 which added a big loop around the template instantiation. llvm-svn: 132331
-
Chandler Carruth authored
return f() || -1; where the user meant to write '|'. This bootstraps without any additional warnings. Patch by Richard Trieu. llvm-svn: 132327
-
Argyrios Kyrtzidis authored
llvm-svn: 132326
-
- May 30, 2011
-
-
David Chisnall authored
llvm-svn: 132311
-
- May 29, 2011
-
-
Richard Trieu authored
This path was reviewed by Chandler Carruth at http://codereview.appspot.com/4538074/ llvm-svn: 132297
-
Chandler Carruth authored
I tried to use an assert to prove that I could remove each of the arguments I did, but ended up writing my assert with inverted logic. Doh! Reported by Xi Wang on cfe-dev. I have manually verified the source locations and ranges for these using -ast-dump. I tried writing a test case that would catch these, but these expressions aren't exposed in the c-index-test's token annotation utility. llvm-svn: 132284
-
- May 28, 2011
-
-
John McCall authored
It's quite likely that this will explode, but I need to know how. :) llvm-svn: 132269
-