Ted Kremenek
68c1f010d2
Fix a bug in RegionStoreSubRegionManager::add() where multiple subregions wouldn't correctly get registered in the SubRegion map.
...
llvm-svn: 78162
2009-08-05 05:31:02 +00:00
Chris Lattner
c58e5699be
cgobjcgnu was making invalid common globals.
...
llvm-svn: 78161
2009-08-05 05:25:18 +00:00
Chris Lattner
f49573d1ee
weak globals that are const should get weak_odr linkage.
...
add a fixme about C++ const.
llvm-svn: 78159
2009-08-05 05:20:29 +00:00
Chris Lattner
c0693bc2ea
rdar://7119244 - globals with an explicit section specified don't get
...
common linkage.
llvm-svn: 78158
2009-08-05 04:56:58 +00:00
Zhongxing Xu
13ee441874
Add test case.
...
llvm-svn: 78150
2009-08-05 03:45:09 +00:00
Zhongxing Xu
fe97165587
If the UnaryOperator has non-location type, use its type to create the
...
constant value. If the UnaryOperator has location type, create the
constant with int type and pointer width.
This fixes the bug that all pointer increments 'p++' evaluated to Unknown.
llvm-svn: 78147
2009-08-05 02:51:59 +00:00
Mike Stump
1a90e38471
Remove an unused header.
...
llvm-svn: 78140
2009-08-05 01:22:47 +00:00
Fariborz Jahanian
800f37262c
Support for use of default argument in constructors.
...
work in progress.
llvm-svn: 78132
2009-08-05 00:26:10 +00:00
Douglas Gregor
e922c77ddd
Move the template instantiation logic for template arguments into the
...
general tree transformation. Also, implement template instantiation
for parameter packs.
In addition, introduce logic to enter the appropriate context for
subexpressions that are not potentially evaluated.
llvm-svn: 78114
2009-08-04 22:27:00 +00:00
Mike Stump
9beac787c1
vtable building for simple inheritance. Still in progress.
...
llvm-svn: 78110
2009-08-04 21:58:42 +00:00
Mike Stump
12b8ce168d
Canonicalize else.
...
llvm-svn: 78102
2009-08-04 21:02:39 +00:00
Mike Stump
f5fc72eea9
Test cases for some recent work.
...
llvm-svn: 78100
2009-08-04 20:37:29 +00:00
Mike Stump
7551d05358
Will I ever get used to CamelCase? Will I ever like capitols for
...
random variables?
--This line, and those below, will be ignored--
M lib/CodeGen/CGCXX.cpp
llvm-svn: 78094
2009-08-04 20:06:48 +00:00
Mike Stump
b0dd95d6d3
Add armv7 support.
...
llvm-svn: 78092
2009-08-04 19:48:52 +00:00
Anders Carlsson
5638895b2a
Revert the fix for PR3800, it broke things.
...
llvm-svn: 78084
2009-08-04 18:18:36 +00:00
Ted Kremenek
36c14a0f1a
Renable "html" indexing by default.
...
llvm-svn: 78077
2009-08-04 17:05:18 +00:00
Fariborz Jahanian
b61af4c566
Some code refactoring. Be more generous in issuance of warning
...
on method type mismatches per Chris's comment.
llvm-svn: 78075
2009-08-04 17:01:09 +00:00
Douglas Gregor
d6ff33294a
Refactor template instantiation for types into a generic tree
...
transformation template (TreeTransform) that handles the
transformation and reconstruction of AST nodes. Template instantiation
for types is a (relatively small) customization of the generic tree
transformation.
llvm-svn: 78071
2009-08-04 16:50:30 +00:00
Anders Carlsson
19702bb054
Simplify alignment handling in the record builder.
...
llvm-svn: 78069
2009-08-04 16:29:15 +00:00
Daniel Dunbar
83142021fb
lit: Some sample tests, for testing the tester
...
llvm-svn: 78050
2009-08-04 04:40:15 +00:00
Daniel Dunbar
e9863976b3
Fix test case for Darwin10 (which sets ssp), and move to CodeGen/
...
llvm-svn: 78049
2009-08-04 04:38:31 +00:00
Daniel Dunbar
4a2cdc3302
Update for LLVM API change
...
llvm-svn: 78044
2009-08-04 04:02:57 +00:00
Fariborz Jahanian
10ff786e1e
Compare matching selectors in current and
...
super class(s) and warn on any parameter
type mismatch if potentially unsafe.
llvm-svn: 78029
2009-08-04 01:07:16 +00:00
Ted Kremenek
1624df626d
Adjust test case.
...
llvm-svn: 78028
2009-08-04 00:58:45 +00:00
Ted Kremenek
ba8d7fc6bf
Recognize '-M' and '-MM' options.
...
llvm-svn: 78027
2009-08-04 00:57:12 +00:00
Ted Kremenek
90fc8a492e
'unlink' file directly instead of invoking system shell.
...
llvm-svn: 78026
2009-08-04 00:55:59 +00:00
Ted Kremenek
90e2e07bd5
Have scan-build clue off of 'BUGMETAEND' to know when to stop processing an HTML file.
...
llvm-svn: 78022
2009-08-03 23:45:27 +00:00
Ted Kremenek
3724cdef3f
Emit a special 'BUGMETAEND' comment to aid in the postprocessing of HTML bug reports.
...
llvm-svn: 78021
2009-08-03 23:44:55 +00:00
Ted Kremenek
fb50bf5a6f
Per advice that Doug Gregor gave me several months ago, clean up the
...
implementation of '#pragma unused' by not constructing intermediate
DeclRefExprs, but instead do the name lookup directly. The
implementation is greatly simplified.
Along the way, degrade '#pragma unused(undeclaredvariable)' to a
warning instead of being a hard error. This implements:
<rdar://problem/6761874> [sema] allow #pragma unused to reference undefined variable (with warning)
llvm-svn: 78019
2009-08-03 23:24:57 +00:00
Ted Kremenek
d673098480
Add a pass-by-value test for the analyzer.
...
llvm-svn: 78018
2009-08-03 23:22:53 +00:00
Ryan Flynn
e1ca39456b
PR3679: add #pragma weak test file
...
llvm-svn: 78016
2009-08-03 23:16:15 +00:00
Ted Kremenek
d7e467f39c
Add test case testing field sensitivity. Reduced from <rdar://problem/7114618>.
...
llvm-svn: 78008
2009-08-03 22:23:24 +00:00
Daniel Dunbar
4d93a4f9d4
Make sure UTF-16 strings end with a 16-bit null (as opposed to 8-bit).
...
llvm-svn: 78001
2009-08-03 21:47:08 +00:00
Ted Kremenek
0bb32e3e5d
Handle disgusting corner case where a byte is loaded from the address of a function.
...
llvm-svn: 78000
2009-08-03 21:41:46 +00:00
Daniel Dunbar
a1d8bcd33e
When generating cleanup blocks for Obj-C @finally , mark them as catch all blocks
...
from the perspective of LLVM exception handling. Otherwise the C++ personality
function may decide not to run them, if it only detects cleanup handlers.
- Test case for this is exceptions.m in llvm-test.
llvm-svn: 77999
2009-08-03 21:20:07 +00:00
Ted Kremenek
72ddac6cb8
Regression fix: reset 'DisplayedFunction' when a new function/method decl gets analyzed.
...
llvm-svn: 77996
2009-08-03 21:01:21 +00:00
Fariborz Jahanian
d44bdb2926
assert(nyi) on attempt to destruct an array of objects.
...
llvm-svn: 77993
2009-08-03 20:51:29 +00:00
Fariborz Jahanian
18c062361d
ir-gen for destructor calls.
...
llvm-svn: 77991
2009-08-03 20:20:07 +00:00
John McCall
49bfce4227
Refactor methods on DeclSpec to take a diagnostic& parameter, and reflect this
...
elsewhere. Very slightly decouples DeclSpec users from knowing the exact
diagnostics to report, and makes it easier to provide different diagnostics in
some places.
llvm-svn: 77990
2009-08-03 20:12:06 +00:00
Eli Friedman
0519492cb6
Website updates for working with Visual Studio and making patches.
...
Patch by John Thompson!
llvm-svn: 77988
2009-08-03 19:42:28 +00:00
Fariborz Jahanian
6782844874
Minor renaming/refactoring. No change in functionality.
...
llvm-svn: 77985
2009-08-03 19:13:25 +00:00
John McCall
898cd0fced
Templatize BadSpecifier and introduce DeclSpec::getSpecifier(T) for the
...
remaining specifier enums T.
llvm-svn: 77981
2009-08-03 18:47:27 +00:00
Daniel Dunbar
59e476b1b9
Formatting fixes (trailing whitespace, 80-cols, indentation).
...
llvm-svn: 77972
2009-08-03 17:06:42 +00:00
Eli Friedman
76df43c08b
Fix assertion crash. I don't have a testcase, but the fix is pretty
...
obviously correct.
llvm-svn: 77969
2009-08-03 09:07:06 +00:00
Zhongxing Xu
9ad0b46a80
add a bunch of routine methods to AnalysisContext.
...
llvm-svn: 77961
2009-08-03 07:23:22 +00:00
Daniel Dunbar
f0e2ea2869
lit: Don't treat '\' as an escape in unquoted strings, on Win32. This turns out
...
to not be a very good idea.
llvm-svn: 77957
2009-08-03 05:29:22 +00:00
Eli Friedman
5032139548
Tweak diagnostic wording; patch by Sean Hunt.
...
llvm-svn: 77955
2009-08-03 05:14:16 +00:00
Daniel Dunbar
07360b2099
Update for LLVM API change.
...
llvm-svn: 77952
2009-08-03 04:21:41 +00:00
Daniel Dunbar
7779bd1726
Update for LLVM API change.
...
llvm-svn: 77947
2009-08-03 04:04:27 +00:00
Zhongxing Xu
b9a45a46f1
now we can let AnalysisManager to own the PathDiagnosticClient.
...
llvm-svn: 77945
2009-08-03 03:27:37 +00:00