- Feb 27, 2010
-
-
Douglas Gregor authored
copy the source buffers provided rather than referencing them directly, so that the caller can free those buffers immediately after calling clang_createTranslationUnitFromSourceFile(). Otherwise, we risk hitting those buffers later (when building source ranges, forming diagnostics, etc.). llvm-svn: 97296
-
Douglas Gregor authored
llvm-svn: 97291
-
John McCall authored
them under -Wbad-literal. They're still on by default. llvm-svn: 97284
-
- Feb 26, 2010
-
-
Fariborz Jahanian authored
Fixes radar 7692183. llvm-svn: 97281
-
Fariborz Jahanian authored
llvm-svn: 97280
-
Fariborz Jahanian authored
llvm-svn: 97274
-
John McCall authored
llvm-svn: 97258
-
Fariborz Jahanian authored
Fixes radar 7692350. llvm-svn: 97254
-
-
Ted Kremenek authored
Sema and into analyze_printf::ParseFormatString(). Also use a bitvector to determine what arguments have been covered (instead of just checking to see if the last argument consumed is the max argument). This is prep. for support positional arguments (an IEEE extension). llvm-svn: 97248
-
Fariborz Jahanian authored
blocks's argument in the inner block requires special treatment. Fixes radar 7692419. llvm-svn: 97244
-
Zhongxing Xu authored
Use this information to find the returned value and bind it to CallExpr in ProcessCallExit. And there is no need to remove dead bindings in ProcessCallExit, because a. it would clean up the return value bound to CallExpr b. we still would do it in the next ProcessStmt(), where we would not misclean up the return value. llvm-svn: 97225
-
John McCall authored
propagating error conditions out of the various annotate-me-a-snowflake routines. Generally (but not universally) removes redundant diagnostics as well as, you know, not crashing on bad code. On the other hand, I have just signed myself up to fix fiddly parser errors for the next week. Again. llvm-svn: 97221
-
Douglas Gregor authored
instantiation so long as that explicit specialization was declared previously. Fixes PR6160. llvm-svn: 97210
-
Douglas Gregor authored
how we find the operator delete that matches withe operator new we found in a C++ new-expression. This will also need CodeGen support. On a happy note, we're now a "nans" away from building tramp3d-v4. llvm-svn: 97209
-
Zhongxing Xu authored
llvm-svn: 97207
-
Fariborz Jahanian authored
attributes. Fixes radar 7214439. llvm-svn: 97203
-
Douglas Gregor authored
llvm-svn: 97202
-
David Chisnall authored
llvm-svn: 97199
-
John McCall authored
the ABI-computation interface. Fixes <rdar://problem/7691046>. llvm-svn: 97197
-
Douglas Gregor authored
used when we instantiate C++ new expressions, delete expressions, and object-construction expressions. Fixes PR6424, although we can't test all of it until we finish implementing lookup of "operator delete" for new expressions (!). llvm-svn: 97195
-
Douglas Gregor authored
to mark the constructor as referenced. Fixes the narrow issue reported in PR6424, but there are a few other places that I'll fix before closing out that PR. llvm-svn: 97185
-
- Feb 25, 2010
-
-
Douglas Gregor authored
equality comparisons, and conditional operators, produce a composite pointer type with the appropriate additional "const" qualifiers if the pointer types would otherwise be incompatible. This is a small extension (also present in GCC and EDG in a slightly different form) that permits code like: void** i; void const** j; i == j; with the following extwarn: t.cpp:5:5: warning: comparison of distinct pointer types ('void **' and 'void const **') uses non-standard composite pointer type 'void const *const *' [-pedantic] i == j; ~ ^ ~ Fixes PR6346, and I'll be filing a core issue about this with the C++ committee. llvm-svn: 97177
-
Anders Carlsson authored
llvm-svn: 97174
-
Anders Carlsson authored
Fux a bug where we were trying to add overriders for non-virtual bases of virtual bases more than once. llvm-svn: 97173
-
Daniel Dunbar authored
llvm-svn: 97166
-
Douglas Gregor authored
Restore Zhongxing's commits r97122 r97127 r97129 r97131 which were reverted due to a Clang-on-Clang failure llvm-svn: 97162
-
Douglas Gregor authored
binding and a copy-construction. Fixes an overloading problem in the Clang-on-Clang build. llvm-svn: 97161
-
Fariborz Jahanian authored
bogus warning. Fixes radar 7682116. llvm-svn: 97157
-
Douglas Gregor authored
llvm-svn: 97152
-
Jakob Stoklund Olesen authored
They were breaking clang-x86_64-darwin10-selfhost llvm-svn: 97138
-
Gabor Greif authored
compilation using g++ v3.4. I'll watch the buildbots and back out if necessary. Feel free to do the same if something breaks. Without this patch I get (on g++ 3.4.6) following error: In file included from clang/lib/Sema/SemaTemplate.cpp:14: clang/lib/Sema/TreeTransform.h: In member function `clang::ASTOwningResult<&clang::ActionBase::DeleteExpr> clang::TreeTransform<Derived>::RebuildCXXPseudoDestructorExpr(clang::ASTOwningResult<&clang::ActionBase::DeleteExpr>, clang::SourceLocation, bool, clang::NestedNameSpecifier*, clang::SourceRange, clang::TypeSourceInfo*, clang::SourceLocation, clang::SourceLocation, clang::PseudoDestructorTypeStorage)': clang/lib/Sema/TreeTransform.h:5784: error: expected primary-expression before '>' token clang/lib/Sema/TreeTransform.h:5784: error: expected primary-expression before ')' token make[4]: *** [clang/lib/Sema/Release/SemaTemplate.o] Error 1 llvm-svn: 97136
-
John McCall authored
skip the object argument conversion if either of the candidates didn't initialize it. Fixes PR6421, which is such a very straightforward extension of PR6398 that I should have worked it into the last test case (and therefore caught it then). Ah well. llvm-svn: 97135
-
Chandler Carruth authored
cases. llvm-svn: 97134
-
Zhongxing Xu authored
llvm-svn: 97131
-
Zhongxing Xu authored
llvm-svn: 97129
-
Chandler Carruth authored
types. Rank these conversions below other conversions. This allows overload resolution when the only distinction is between a complex and scalar type. It also brings the complex overload resolutin in line with GCC's. llvm-svn: 97128
-
Zhongxing Xu authored
llvm-svn: 97127
-
Zhongxing Xu authored
This patch implements the CallEnter/CallExit idea of Ted. Add two interfaces to GRSubEngine: ProcessCallEnter, ProcessCallExit. The CallEnter program point uses caller's location context. The CallExit program point uses callee's location context. CallEnter is built by GRStmtNodeBuilder. CallExit is built by GREndPathNodeBuilder. llvm-svn: 97122
-
Ted Kremenek authored
to various MacOS X functions. The checks in BasicObjCFoundationChecks.cpp will gradually be migrated here. As a first check, check that when 'dispatch_once()' is passed a predicate value that has non-local storage. llvm-svn: 97116
-