]>
granicus.if.org Git - clang/log
John McCall [Tue, 28 Jul 2009 05:41:20 +0000 (05:41 +0000)]
Reimplement QualifierSet using a single word, as requested by dgregor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77299
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:17 +0000 (05:11 +0000)]
Implement ObjCMethodDecl::getCanonicalDecl().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77298
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:05 +0000 (05:11 +0000)]
-Add ObjCCategoryImplDecl::getCategoryClass() which returns the category interface decl.
-Correct ObjCMethodDecl::getNextRedeclaration(); A method in a ObjCCategoryImplDecl should point to
a method in the associated ObjCCategoryDecl, not the ObjCInterfaceDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77297
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:10:52 +0000 (05:10 +0000)]
Use ObjCImplDecl in place of ObjCCategoryImplDecl/ObjCImplementationDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77296
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 02:25:19 +0000 (02:25 +0000)]
Make longjmp a real builtin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77291
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 28 Jul 2009 01:00:58 +0000 (01:00 +0000)]
Allow functions to be marked "implicit return zero" and so mark main().
Codegen by initializing the return value with its LLVM type's null value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77288
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 28 Jul 2009 00:33:38 +0000 (00:33 +0000)]
Add a Profile function for statements so that we can (eventually) determine
when statements and expressions are equivalent.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77284
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 28 Jul 2009 00:14:21 +0000 (00:14 +0000)]
Only generate preprocessed files during crashes using Clang, not GCC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77281
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 28 Jul 2009 00:07:15 +0000 (00:07 +0000)]
Fix helper function GetNextStmt() to look for the first statement that has a
valid SourceLocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77280
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 28 Jul 2009 00:07:08 +0000 (00:07 +0000)]
Make sure to move the comment with the code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77279
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Mon, 27 Jul 2009 23:12:41 +0000 (23:12 +0000)]
Patch for objc's zero-const exception to not assume
that @catch(...) cathces all exceptions (c++ objects
are not cought by that).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77270
91177308 -0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 27 Jul 2009 22:29:56 +0000 (22:29 +0000)]
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77267
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 22:25:19 +0000 (22:25 +0000)]
Ensure we can work through typedefs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77265
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 27 Jul 2009 22:13:39 +0000 (22:13 +0000)]
(1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory"
object that it can use to forward PathDiagnostics for further processing. Along
with this feature, the PlistDiagnostics object logs which files are created by
the forwarding of the PathDiagnostics.
(2) Create a new PathDiagnosticClientFactory object for HTMLDiagnostics,
allowing other PathDiagnosticClients to forward PathDiagnostics through an
opaque interface.
(3) Create a "plist-html" diagnostics option in AnalysisConsumer to allow the
logging of HTML files created in a hybrid Plist+HTML diagnostic client.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77264
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 27 Jul 2009 22:10:34 +0000 (22:10 +0000)]
Add scan-build support for 'plist-html', a hybrid mode that supports the
creation of both HTML and plist files. Plist files are currently not generated
using the same layout algorithm as just specifying '-plist', so this is mainly
intended to help support automated runs of the analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77263
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 21:45:16 +0000 (21:45 +0000)]
Add knowledge about _longjmp being noreturn.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77254
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 21:33:40 +0000 (21:33 +0000)]
Add builtin knowledge about longjmp being noreturn. Add printing for
the noreturn attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77253
91177308 -0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 27 Jul 2009 21:00:51 +0000 (21:00 +0000)]
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77249
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Mon, 27 Jul 2009 20:57:45 +0000 (20:57 +0000)]
Some minor changes toward support of data
member access in the presense of non-virtual bases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77246
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Mon, 27 Jul 2009 19:53:49 +0000 (19:53 +0000)]
fix test (broken in r77224)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77241
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 19:14:18 +0000 (19:14 +0000)]
Add noreturn for exit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77237
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 27 Jul 2009 19:04:32 +0000 (19:04 +0000)]
Make ObjCImplDecl inherit from ObjCContainerDecl.
ObjCContainerDecl now is the root class for objc decls that contain methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77235
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 27 Jul 2009 19:01:13 +0000 (19:01 +0000)]
Tweak MultiTestRunner --path argument.
- Accept multiple values instead of embedding separator.
- Make sure this gets used when searching for 'clang' binary.
- Switch makefiles to using --path to stay in sync with cmake.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77234
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 27 Jul 2009 18:42:03 +0000 (18:42 +0000)]
Use DICompositeType->replaceAllUsesWith()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77228
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 27 Jul 2009 18:33:18 +0000 (18:33 +0000)]
Fix typo in error message
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77224
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 27 Jul 2009 18:31:49 +0000 (18:31 +0000)]
Prepare CMake regression testing for Daniel's upcoming fix to the test runner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77223
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 27 Jul 2009 17:43:39 +0000 (17:43 +0000)]
When instantiating a variable without an initializer, call
ActOnUninitializedDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77211
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 17:10:54 +0000 (17:10 +0000)]
Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty class will have a padding byte.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77205
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 15:31:55 +0000 (15:31 +0000)]
Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77190
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 14:55:54 +0000 (14:55 +0000)]
Fix a tail padding bug in the record layout builder code. The bug was found by an existing test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77189
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 05:54:15 +0000 (05:54 +0000)]
Enable the new constant struct builder by default. The old code is still in place but will be removed shortly. The new struct builder works on big endian systems.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77185
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Jul 2009 04:49:58 +0000 (04:49 +0000)]
add bugzilla #
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77183
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 02:56:37 +0000 (02:56 +0000)]
More work on the constant struct builder, fix a couple of thinkos and add support for inserting part of a bitfield in the previous byte.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77180
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 27 Jul 2009 01:23:51 +0000 (01:23 +0000)]
More work on bitfield support in the new constant struct builder.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77177
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Mon, 27 Jul 2009 00:44:23 +0000 (00:44 +0000)]
Fix PR4624.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77176
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sun, 26 Jul 2009 16:36:45 +0000 (16:36 +0000)]
fix segfault (because of erasing after the vector boundaries) when the cached token position is at the end
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77159
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Sun, 26 Jul 2009 16:14:05 +0000 (16:14 +0000)]
add gentoo 2009.0 g++ header locations
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77158
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 09:28:40 +0000 (09:28 +0000)]
Switch to getName()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77151
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 08:32:30 +0000 (08:32 +0000)]
Switch to using llvm::Value::getName()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77147
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 02:21:04 +0000 (02:21 +0000)]
Update for API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77112
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 26 Jul 2009 01:27:26 +0000 (01:27 +0000)]
Lookup targets by Triple instead of Module.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77108
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 25 Jul 2009 23:24:03 +0000 (23:24 +0000)]
Preserve qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77097
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ryan Flynn [Sat, 25 Jul 2009 22:29:44 +0000 (22:29 +0000)]
PR3575 - warn on declared variable or function attributes after a definition, which are currently ignored.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77095
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:16:03 +0000 (22:16 +0000)]
Refactor ObjCImplDecl::getInstanceMethod/getClassMethod into one
ObjCImplDecl::getMethod.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77094
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:51 +0000 (22:15 +0000)]
Refactor ObjCInterfaceDecl::lookupInstanceMethod/lookupClassMethod into one
ObjCInterfaceDecl::lookupMethod.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77093
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:38 +0000 (22:15 +0000)]
Refactor ObjCProtocolDecl::lookupInstanceMethod/lookupClassMethod into one
ObjCProtocolDecl::lookupMethod.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77092
91177308 -0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Sat, 25 Jul 2009 22:15:22 +0000 (22:15 +0000)]
Refactor ObjCContainerDecl::getInstanceMethod/getClassMethod into one
ObjCContainerDecl::getMethod.
Avoids code duplication.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77091
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 25 Jul 2009 22:12:02 +0000 (22:12 +0000)]
Improve comments (Thanks Fariborz).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77090
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 25 Jul 2009 21:26:53 +0000 (21:26 +0000)]
Add noreturn as a type attribute, handle printing for them and handle
calls to noreturn function pointers when CFG building.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77089
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Sat, 25 Jul 2009 21:12:28 +0000 (21:12 +0000)]
ir-gen for non-virtual base class initialization
in constructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77087
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sebastian Redl [Sat, 25 Jul 2009 15:41:38 +0000 (15:41 +0000)]
Implement C++ semantics for C-style and functional-style casts. This regresses Clang extension conversions, like vectors, but allows conversions via constructors and conversion operators.
Add custom conversions to static_cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77076
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 15:26:08 +0000 (15:26 +0000)]
MultiTestRunner: Make sure to point at src dir, for out of tree builds.
Factor out routine for executing the script commands.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77075
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 14:46:05 +0000 (14:46 +0000)]
MultiTestRunner: Cleanup test execution & output.
- Stop writing everything to files.
- Make test output more standard.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77074
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 13:19:40 +0000 (13:19 +0000)]
MultiTestRunner: Drop external script and DejaGNU compatibility options for now.
- We don't use the former, and the latter doesn't actually work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77073
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 13:13:06 +0000 (13:13 +0000)]
MultiTestRunner: Disable valgrind support for now, I don't feel like maintaining
it currently.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77072
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 12:57:15 +0000 (12:57 +0000)]
MultiTestRunner/Win32: Add SYSTEMROOT to environment, replace '&&' in .bat
files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77071
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 12:47:38 +0000 (12:47 +0000)]
Make having no RUN line a failure.
Doug, please look at decltype-crash and instantiate-function-1.mm, I'm not sure
if they are actually testing the right thing / anything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77070
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 12:44:58 +0000 (12:44 +0000)]
Remove TESTDIR initialization, MultiTestRunner can find the test dirs itself.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77069
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 12:41:25 +0000 (12:41 +0000)]
Remove empty tests, left over from an svn revert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77068
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 12:37:21 +0000 (12:37 +0000)]
Remove this Makefile, it is unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77067
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 12:23:35 +0000 (12:23 +0000)]
MultiTestRunner: Oops, clang wasn't being substituted properly. This is why the
cxx-using-declaration test case started exhibiting different behavior. It still
needs to be fixed, however...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77066
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 12:05:55 +0000 (12:05 +0000)]
MultiTestRunner: Always use absolute path names for tests.
Also, fix a function name I forgot to update.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77064
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 11:55:03 +0000 (11:55 +0000)]
Disable this test: cxx-using-declaration.cpp
Something strange is going on here; this test randomly started failing after
unrelated changes to TestRunner.py (even though it runs the same
script).
Argiris or Doug, can one of you investigate?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77063
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 11:27:37 +0000 (11:27 +0000)]
MultiTestRunner: Validate '&&' at the end of RUN lines.
- This is just to normalize, these will go away soon hopefully.
Added all the missing '&&'s that have crept in. :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77062
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 10:14:19 +0000 (10:14 +0000)]
MultiTestRunner: Explicitly define child environment, the only variable we need
to import is the PATH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77061
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 09:53:43 +0000 (09:53 +0000)]
MultiTestRunner.py improvements.
- Tweak output directories for temp files, derive the temporary base from the
test's parent directory name, and the test name (instead of the whole path).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77059
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 09:42:24 +0000 (09:42 +0000)]
MultiTestRunner.py improvements.
- Not improved: the horribly lousy name. :)
- Suppress stderr when capturing output.
- Rewrite which() to do the right PATH search instead of being lazy and
shelling out to 'which'.
- On Windows, run scripts as batch files (via 'cmd /c ...').
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77058
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 09:01:12 +0000 (09:01 +0000)]
Change these tests to not depend as much on the name of the input.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77057
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Sat, 25 Jul 2009 04:36:53 +0000 (04:36 +0000)]
Semantic checking for main().
Fix some invalid main() methods in the test suite that were nicely
exposed by the new checks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77047
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Sat, 25 Jul 2009 04:35:50 +0000 (04:35 +0000)]
Flesh out the QualifierSet API.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77046
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 25 Jul 2009 01:43:39 +0000 (01:43 +0000)]
Tweak svn:ignore
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77040
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sat, 25 Jul 2009 01:40:29 +0000 (01:40 +0000)]
More work on the constant struct builder. We can now convert the struct to a packed struct when necessary.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77038
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Sat, 25 Jul 2009 01:08:28 +0000 (01:08 +0000)]
Some code refactoring per Daniel's feedback.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77030
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sat, 25 Jul 2009 00:26:00 +0000 (00:26 +0000)]
Whoops, did not mean to check this in.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77022
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sat, 25 Jul 2009 00:24:56 +0000 (00:24 +0000)]
More work on the constant struct builder. We now try to layout all constant structs but throw away the result.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77021
91177308 -0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 24 Jul 2009 23:12:58 +0000 (23:12 +0000)]
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77012
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 24 Jul 2009 20:34:43 +0000 (20:34 +0000)]
Template instantiation for static data members that are defined out-of-line.
Note that this also fixes a bug that affects non-template code, where we
were not treating out-of-line static data members are "file-scope" variables,
and therefore not checking their initializers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77002
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 24 Jul 2009 20:33:35 +0000 (20:33 +0000)]
Fixes broken test by accident.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77001
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 24 Jul 2009 20:28:49 +0000 (20:28 +0000)]
More Sema check for constructor's member initializer along
with type conversion to fix ir-gen crash.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77000
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 24 Jul 2009 20:26:31 +0000 (20:26 +0000)]
In the "use of floating point variable as loop counter" check, check
if the DeclRefExpr is a float, not just either argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76998
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 24 Jul 2009 20:03:11 +0000 (20:03 +0000)]
Have 'clang --analyze' run syntactic static analysis security checks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76996
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Fri, 24 Jul 2009 19:02:52 +0000 (19:02 +0000)]
Fix 80-col violations, reflow a few comments and zap some extra
whitespace at ends of lines.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76992
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Fri, 24 Jul 2009 18:20:38 +0000 (18:20 +0000)]
Fix a release build warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76985
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 24 Jul 2009 17:57:02 +0000 (17:57 +0000)]
More work toward initialization of objects
in constructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76980
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Fri, 24 Jul 2009 17:54:45 +0000 (17:54 +0000)]
Allow front-end 'isa' access on object's of type 'id'.
Enhance test case to cover 'isa' access on interface types (clang produces an error, GCC produces a warning).
Still need back-end CodeGen for ObjCIsaExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76979
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Fri, 24 Jul 2009 17:23:54 +0000 (17:23 +0000)]
Don't use getLLVMFieldNo for bitfields when constructing the ivar layout maps for GC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76978
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Fri, 24 Jul 2009 15:20:52 +0000 (15:20 +0000)]
Check in a half finished new constant struct builder (Obviously not used yet).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76969
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 24 Jul 2009 07:40:24 +0000 (07:40 +0000)]
Fix declaration of obc_enumerationMutation function, for GNU runtime.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76959
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 24 Jul 2009 06:55:42 +0000 (06:55 +0000)]
Add doxygen comments and simplify expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76955
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 24 Jul 2009 04:47:11 +0000 (04:47 +0000)]
Introduce a new variant type 'TryResult' to represent the result of
TryEvaluateBool instead of using a raw 'int'. This avoids any
confusion of how 'int' converts to bool, and makes the resultant code
easier to read.
Condense a bunch of 'addSuccessor()' calls in 'if ... else' to use the
ternary operator instead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76947
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 24 Jul 2009 03:41:11 +0000 (03:41 +0000)]
Add getDecl() to CallGraph and CallGraphNode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76940
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 24 Jul 2009 03:38:27 +0000 (03:38 +0000)]
Constify methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76939
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Fri, 24 Jul 2009 03:03:21 +0000 (03:03 +0000)]
Test commit: make a little stub routine for semantic checking of main().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76934
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 24 Jul 2009 02:52:07 +0000 (02:52 +0000)]
Enable the '-warn-security-syntactic' checker option by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76933
91177308 -0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Fri, 24 Jul 2009 02:49:01 +0000 (02:49 +0000)]
Implement new warning for functions declared 'noreturn' when they fall off the end.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76932
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Fri, 24 Jul 2009 02:45:50 +0000 (02:45 +0000)]
Get rid of the size parameter to AppendField. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76931
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 24 Jul 2009 00:40:31 +0000 (00:40 +0000)]
Mark destructor of Checker virtual.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76924
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 24 Jul 2009 00:05:42 +0000 (00:05 +0000)]
We now do complete semantic checking for unions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76918
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 23 Jul 2009 23:58:15 +0000 (23:58 +0000)]
Update C++ status to reflect progress on out-of-line definitions of class template members
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76917
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 23 Jul 2009 23:49:00 +0000 (23:49 +0000)]
This patch fixes the implementations of the __has_trivial_destructor
and __has_trivial_constructor builtin pseudo-functions and
additionally implements __has_trivial_copy and __has_trivial_assign,
from John McCall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76916
91177308 -0d34-0410-b5e6-
96231b3b80d8