Anders Carlsson
853bb50382
Mangle ::std::basic_string as Sb.
...
llvm-svn: 82881
2009-09-26 23:14:39 +00:00
Anders Carlsson
872ce0dc31
Mangle ::std::allocator as Sa.
...
llvm-svn: 82880
2009-09-26 23:10:05 +00:00
Anders Carlsson
3e83c30c4c
Handle substitutions in mangleTemplatePrefix.
...
llvm-svn: 82879
2009-09-26 22:18:22 +00:00
Anders Carlsson
46f87dcad4
Make Decl::dump const.
...
llvm-svn: 82878
2009-09-26 21:58:53 +00:00
Chris Lattner
a26b471f1d
builtin_trap should be noreturn, this fixes PR5062, patch by
...
Roman Divacky!
llvm-svn: 82876
2009-09-26 21:16:00 +00:00
Douglas Gregor
2208a2912c
Simplify the handling of non-dependent friend class template
...
specializations such as:
friend class std::vector<int>;
by using the same code path as explicit specializations, customized to
reference an existing ClassTemplateSpecializationDecl (or build a new
"undeclared" one).
llvm-svn: 82875
2009-09-26 20:57:03 +00:00
Anders Carlsson
aa9e3c8793
Substitute "::std::" as "St".
...
llvm-svn: 82874
2009-09-26 20:53:44 +00:00
Anders Carlsson
49232b9f42
Don't crash when trying to mangle function templates.
...
llvm-svn: 82872
2009-09-26 20:13:56 +00:00
Anders Carlsson
26e67afd1e
mangleTemplatePrefix and mangleUnscopedTemplateName should take a TemplateDecl.
...
llvm-svn: 82871
2009-09-26 19:45:45 +00:00
Anders Carlsson
677475206c
Use the qualified name for tag types.
...
llvm-svn: 82870
2009-09-26 19:03:24 +00:00
Anders Carlsson
e33eed5c1e
Set alignment on static function level decls and VLAs. Fixes PR5060.
...
llvm-svn: 82868
2009-09-26 18:16:06 +00:00
Ted Kremenek
2f5198b022
Added test case for <rdar://problem/7152418>.
...
llvm-svn: 82866
2009-09-26 17:18:44 +00:00
Anders Carlsson
534b0639db
Address comment from Daniel.
...
llvm-svn: 82865
2009-09-26 16:55:29 +00:00
Dan Gohman
0b3cfab288
Pass the formatted_raw_ostream to createPrintModulePass and
...
createBitcodeWriterPass instead of the underlying raw_ostream. This
avoids trouble with formatted_raw_ostream's behavior of setting the
underlying stream to be unbuffered, which resulted in
clang -emit-llvm -S using unbuffered output.
llvm-svn: 82857
2009-09-26 15:06:14 +00:00
Daniel Dunbar
bb6ac47ea1
Revert "Force triple in test.", this wasn't the problem.
...
llvm-svn: 82855
2009-09-26 07:43:49 +00:00
Ted Kremenek
cdd3be5cc6
Update checker build.
...
llvm-svn: 82854
2009-09-26 07:39:39 +00:00
Daniel Dunbar
a87097a6ac
Add the lib path to LD_LIBRARY_PATH, so finding .so works (more) portably.
...
llvm-svn: 82853
2009-09-26 07:36:09 +00:00
Daniel Dunbar
1b436d6950
Force triple in test.
...
llvm-svn: 82850
2009-09-26 07:06:36 +00:00
Douglas Gregor
9acb690827
Fix name lookup for friend class templates to consider anything in a
...
scope *up to and including* the innermost namespace scope, rather than
just searching in the innermost namespace scope.
llvm-svn: 82849
2009-09-26 07:05:09 +00:00
Douglas Gregor
3dad842b35
Rework the Parse-Sema interaction for friends to better support friend
...
class templates. We now treat friend class templates much more like
normal class templates, except that they still get special name lookup
rules. Fixes PR5057 and eliminates a bunch of spurious diagnostics in
<iostream>.
llvm-svn: 82848
2009-09-26 06:47:28 +00:00
Ted Kremenek
9a4e5663d2
Hoist some branches in AnalysisManager::HandleTranslationUnit so we
...
avoid scanning for an "entry point" FunctionDecl if we (a) have no
translation unit actions and (b) no entry point function has been
specified.
llvm-svn: 82846
2009-09-26 04:15:09 +00:00
Anders Carlsson
0374742326
Use ABIArgInfo::getDirect() for all types that have a pointer representation.
...
llvm-svn: 82845
2009-09-26 03:56:53 +00:00
Douglas Gregor
fae1d71592
Yet another simplifying use of Sema::getMostSpecialized
...
llvm-svn: 82844
2009-09-26 03:56:17 +00:00
Anders Carlsson
296f8dc52f
Mangle record types as decls.
...
llvm-svn: 82843
2009-09-26 03:55:37 +00:00
Ted Kremenek
7226af69cb
Add a "positive" matching test case for attribute 'noreturn' that involves a nested infinite loop.
...
llvm-svn: 82842
2009-09-26 03:54:06 +00:00
Ted Kremenek
9fa2eefa4c
Add two more test cases for attribute 'noreturn'.
...
llvm-svn: 82841
2009-09-26 03:48:56 +00:00
Douglas Gregor
5de279ccab
Use Sema::getMostSpecialized to eliminate a redundant implementation of the most-specialized function template
...
llvm-svn: 82840
2009-09-26 03:41:46 +00:00
Anders Carlsson
9f8e3d1929
Change isTemplate to return the actual template declaration.
...
llvm-svn: 82839
2009-09-26 03:24:57 +00:00
Anders Carlsson
bdaaab4671
Improve mangling of typename types.
...
llvm-svn: 82833
2009-09-26 02:26:02 +00:00
Anders Carlsson
47680d8040
Rename NextOffset to DataSize.
...
llvm-svn: 82832
2009-09-26 01:34:51 +00:00
Anders Carlsson
7f78d85be4
Start at NextOffset when laying out bases as well.
...
llvm-svn: 82831
2009-09-26 01:29:10 +00:00
Daniel Dunbar
73b6b4e1a3
Disable c-index-test on MSVC until someone figures out the real problem.
...
llvm-svn: 82830
2009-09-26 01:21:38 +00:00
Anders Carlsson
a6d95b5a3e
Use NextOffset when laying out a field.
...
llvm-svn: 82828
2009-09-26 01:09:35 +00:00
Anders Carlsson
294616a74c
Don't try to dump invalid decls or forward decls.
...
llvm-svn: 82827
2009-09-26 01:02:04 +00:00
Anders Carlsson
9d1b34ba81
Cast cleanup.
...
llvm-svn: 82826
2009-09-26 00:12:34 +00:00
Douglas Gregor
0e876e0180
Use explicitly-specified template argument lists to help naming
...
explicit template specializations, when available.
llvm-svn: 82824
2009-09-25 23:53:26 +00:00
Steve Naroff
43b118fc2c
Fix cut/paste error resulting in bad column info.
...
llvm-svn: 82810
2009-09-25 22:15:54 +00:00
Steve Naroff
2676089407
Add clang_getDeclSource().
...
llvm-svn: 82807
2009-09-25 21:45:39 +00:00
Douglas Gregor
d90fd526d3
Declarators can now properly represent template-ids, e.g., for
...
template void f<int>(int);
~~~~~~
Previously, we silently dropped the template arguments. With this
change, we now use the template arguments (when available) as the
explicitly-specified template arguments used to aid template argument
deduction for explicit template instantiations.
llvm-svn: 82806
2009-09-25 21:45:23 +00:00
Steve Naroff
63f475a212
Add clang_getDeclLine and clang_getDeclColumn
...
Fix clang_getCursorDecl to do the right thing for expr refs
Fixup test file to accommodate new output (which includes the line/column for the referenced decl)
llvm-svn: 82798
2009-09-25 21:32:34 +00:00
Fariborz Jahanian
49850dfc4e
Refixed pr5050 per Anders comment. Test case enhanced
...
per Doug's comment.
llvm-svn: 82791
2009-09-25 18:59:21 +00:00
Douglas Gregor
450f0084a2
WIP implementation of explicit instantiation of function templates,
...
member functions of class template specializations, and static data
members. The mechanics are (mostly) present, but the semantic analysis
is very weak.
llvm-svn: 82789
2009-09-25 18:43:00 +00:00
Fariborz Jahanian
5aec1b54bc
Fix the AST tree so ir-gen can do the conversion via copy construction.
...
Fixed pr5050.
llvm-svn: 82783
2009-09-25 18:11:25 +00:00
Mike Stump
1dbb8f78a3
Fix 80-col violation.
...
llvm-svn: 82782
2009-09-25 18:11:00 +00:00
Chris Lattner
880d2d5788
pcc supports some c99
...
llvm-svn: 82774
2009-09-25 16:45:10 +00:00
Anders Carlsson
d7d358a65e
Even more work on empty classes.
...
llvm-svn: 82770
2009-09-25 15:39:00 +00:00
Benjamin Kramer
07fec3bbf5
Fix MSVC build by renaming a variable. PR5043
...
llvm-svn: 82762
2009-09-25 11:47:22 +00:00
Douglas Gregor
25a3967ebb
Sigh. Be *really* careful when copying a default function argument during template instantiation
...
llvm-svn: 82761
2009-09-25 07:03:22 +00:00
Douglas Gregor
c103ccd855
Be careful about copying uninstantiated default arguments during template instantiation
...
llvm-svn: 82760
2009-09-25 06:56:31 +00:00
Douglas Gregor
dc880d67f7
Don't look for __builtin_va_list; it isn't present for all targets
...
llvm-svn: 82757
2009-09-25 06:44:41 +00:00