Граф коммитов

13791 Коммитов

Автор SHA1 Сообщение Дата
Ted Kremenek e3bf8a8ab4 'unlink' file directly instead of invoking system shell.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78026 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-04 00:55:59 +00:00
Ted Kremenek d658e67b43 Have scan-build clue off of 'BUGMETAEND' to know when to stop processing an HTML file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78022 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 23:45:27 +00:00
Ted Kremenek 9b4d45c911 Emit a special 'BUGMETAEND' comment to aid in the postprocessing of HTML bug reports.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78021 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 23:44:55 +00:00
Ted Kremenek 7a02a3733c 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)



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78019 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 23:24:57 +00:00
Ted Kremenek 48775d5bf0 Add a pass-by-value test for the analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78018 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 23:22:53 +00:00
Ryan Flynn 8f6e88f90f PR3679: add #pragma weak test file
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78016 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 23:16:15 +00:00
Ted Kremenek 28ba10ce2a Add test case testing field sensitivity. Reduced from <rdar://problem/7114618>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78008 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 22:23:24 +00:00
Daniel Dunbar 434da48d0e Make sure UTF-16 strings end with a 16-bit null (as opposed to 8-bit).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78001 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 21:47:08 +00:00
Ted Kremenek 968f0a6fe8 Handle disgusting corner case where a byte is loaded from the address of a function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78000 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 21:41:46 +00:00
Daniel Dunbar e3d25abca3 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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77999 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 21:20:07 +00:00
Ted Kremenek 98f6f2573e Regression fix: reset 'DisplayedFunction' when a new function/method decl gets analyzed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77996 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 21:01:21 +00:00
Fariborz Jahanian 667f36accd assert(nyi) on attempt to destruct an array of objects.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77993 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 20:51:29 +00:00
Fariborz Jahanian 6ca0b32227 ir-gen for destructor calls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77991 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 20:20:07 +00:00
John McCall fec54013fc 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.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77990 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 20:12:06 +00:00
Eli Friedman d1e1ef3b0a Website updates for working with Visual Studio and making patches.
Patch by John Thompson!



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77988 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 19:42:28 +00:00
Fariborz Jahanian a83f7ed3de Minor renaming/refactoring. No change in functionality.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77985 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 19:13:25 +00:00
John McCall 32d335e63b Templatize BadSpecifier and introduce DeclSpec::getSpecifier(T) for the
remaining specifier enums T.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77981 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 18:47:27 +00:00
Daniel Dunbar 6bff2513b0 Formatting fixes (trailing whitespace, 80-cols, indentation).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77972 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 17:06:42 +00:00
Eli Friedman d469fc8196 Fix assertion crash. I don't have a testcase, but the fix is pretty
obviously correct.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77969 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 09:07:06 +00:00
Zhongxing Xu 18c7c06033 add a bunch of routine methods to AnalysisContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77961 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 07:23:22 +00:00
Daniel Dunbar e9201f5ced lit: Don't treat '\' as an escape in unquoted strings, on Win32. This turns out
to not be a very good idea.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77957 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 05:29:22 +00:00
Eli Friedman d7640905de Tweak diagnostic wording; patch by Sean Hunt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77955 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 05:14:16 +00:00
Daniel Dunbar 9ab76fa690 Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77952 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 04:21:41 +00:00
Daniel Dunbar b0f17c71f2 Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77947 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 04:04:27 +00:00
Zhongxing Xu d07a0d0279 now we can let AnalysisManager to own the PathDiagnosticClient.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77945 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 03:27:37 +00:00
Zhongxing Xu c471e7b44e Create only one AnalysisManager for each translation unit. In HandleCode(),
reset the current analysis context of the AnalysisManager.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77943 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 03:13:46 +00:00
Zhongxing Xu 2e3124486f Add LocationContext classes to enable creation of cross function
ProgramPoints. ProgramPoints will refer to them in the furture.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77941 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 02:52:14 +00:00
Daniel Dunbar 2bbcf66974 Driver/OpenBSD: Improve ld options.
- Patch by Jonathan Gray!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77935 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-03 01:28:59 +00:00
Douglas Gregor 1f561c14ed Produce a warning that partial ordering of function templates is not yet supported
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77928 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 23:46:29 +00:00
Douglas Gregor 37d93e9252 Keep track of the template arguments deduced when matching a class
template partial specialization. Then, use those template arguments
when instantiating members of that class template partial
specialization. Fixes PR4607.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77925 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 23:24:31 +00:00
Anders Carlsson c43f2f4340 Whoops, meant to delete this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77916 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 21:34:52 +00:00
Anders Carlsson b0d0ea0421 use CodeGenModule::EmitNullConstant in a couple of places.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77915 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 21:18:22 +00:00
Anders Carlsson 714179b179 Use the correct cast kind for dynamic_cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77905 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 19:07:59 +00:00
Douglas Gregor b4aa94d2a0 Update C++ open projects list
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77901 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 18:26:21 +00:00
Douglas Gregor 1e185d9737 We have fairly good support for namespaces, now. Namespace aliases are parsed correctly
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77900 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 18:22:38 +00:00
Benjamin Kramer 21fde994b2 Remove duplicated colon.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77891 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 12:12:11 +00:00
Ted Kremenek 690a7f431d Fix regression caused by recent refactoring where HTML and plist files would not get flushed out when using '-disable-free'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77882 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 05:43:14 +00:00
Ted Kremenek 63fe5ecfd1 Include '-o' arguments in verbose output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77881 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 05:42:46 +00:00
Chris Lattner 45f8091470 linkify IRC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77880 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 05:38:25 +00:00
Chris Lattner e1e585fbf8 rearrange side bar, add link to IRC info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77879 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 05:36:37 +00:00
Ted Kremenek df74e25bf0 Remove RegionViews and RegionCasts. These are no longer used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77876 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 05:15:23 +00:00
Ted Kremenek 093569cfab RegionStoreManager::RemoveDeadBindings() now removes dead 'default' bindings as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77875 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 05:00:15 +00:00
Ted Kremenek 2f26bc39f3 Generalize the interface of 'StoreManager::RemoveDeadBindings()' to manipulate the entire GRState, not just the Store.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77870 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 04:45:08 +00:00
Anders Carlsson 26fb937145 Remove old code that was causing the new test to fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77862 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 04:17:43 +00:00
Ted Kremenek 9a108eb88f Fix regression in StoreManager::CastRegion() to always treat casts to
'void*' (or 'const void*') as an identity transformation.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77860 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 04:12:53 +00:00
Anders Carlsson 5a23264452 Don't evaluate inout constraints twice. Fixes PR3800.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77854 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 03:40:19 +00:00
Daniel Dunbar 637ec3237d Compute end_overridden_methods in a way that keeps ENABLE_EXPENSIVE_CHECKS
happy.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77850 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 01:48:29 +00:00
Daniel Dunbar 59f477bbf6 Tweak svn:ignore
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77849 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 01:47:54 +00:00
Daniel Dunbar 0ab9a25101 Use Twine instead of utostr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77848 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-02 01:43:57 +00:00
Daniel Dunbar 0908c333cc Avoid accessing invalid std::vector element; this makes clang
ENABLE_EXPENSIVE_CHECKS clean on x86_64-.*-darwin10.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77831 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-01 23:40:20 +00:00