- Jul 06, 2009
-
-
Douglas Gregor authored
llvm-svn: 74832
-
Douglas Gregor authored
llvm-svn: 74830
-
Argyrios Kyrtzidis authored
llvm-svn: 74810
-
Eli Friedman authored
wchar_t. llvm-svn: 74808
-
Argyrios Kyrtzidis authored
'index-test' is now able to provide additional info for a Decl, through multiple AST files: -Find declarations -Find definitions -Find references llvm-svn: 74803
-
- Jul 04, 2009
-
-
Sebastian Redl authored
llvm-svn: 74787
-
- Jul 03, 2009
-
-
Zhongxing Xu authored
llvm-svn: 74761
-
rdar://problem/7027684Ted Kremenek authored
block would get hooked up in some cases when processing empty compound statements. llvm-svn: 74743
-
Ted Kremenek authored
structures passed-by-value as function arguments. llvm-svn: 74729
-
- Jul 02, 2009
-
-
Ted Kremenek authored
llvm-svn: 74719
-
Douglas Gregor authored
declaration in the AST. The new ASTContext::getCommentForDecl function searches for a comment that is attached to the given declaration, and returns that comment, which may be composed of several comment blocks. Comments are always available in an AST. However, to avoid harming performance, we don't actually parse the comments. Rather, we keep the source ranges of all of the comments within a large, sorted vector, then lazily extract comments via a binary search in that vector only when needed (which never occurs in a "normal" compile). Comments are written to a precompiled header/AST file as a blob of source ranges. That blob is only lazily loaded when one requests a comment for a declaration (this never occurs in a "normal" compile). The indexer testbed now supports comment extraction. When the -point-at location points to a declaration with a Doxygen-style comment, the indexer testbed prints the associated comment block(s). See test/Index/comments.c for an example. Some notes: - We don't actually attempt to parse the comment blocks themselves, beyond identifying them as Doxygen comment blocks to associate them with a declaration. - We won't find comment blocks that aren't adjacent to the declaration, because we start our search based on the location of the declaration. - We don't go through the necessary hops to find, for example, whether some redeclaration of a declaration has comments when our current declaration does not. Similarly, we don't attempt to associate a \param Foo marker in a function body comment with the parameter named Foo (although that is certainly possible). - Verification of my "no performance impact" claims is still "to be done". llvm-svn: 74704
-
Douglas Gregor authored
llvm-svn: 74664
-
Ted Kremenek authored
a case where RegionStore doesn't create symbolic values for the fields of structs that are passed-by-value. llvm-svn: 74662
-
Ted Kremenek authored
pass misc-ps.m. Currently RegionStore/BasicStore don't do any special reasoning about clang-style vectors, so we should return UnknownVal (in all cases) when accessing their values via an array. llvm-svn: 74660
-
Douglas Gregor authored
by distinguishing between substitution that occurs for template argument deduction vs. explicitly-specifiad template arguments. This is used both to improve diagnostics and to make sure we only provide SFINAE in those cases where SFINAE should apply. In addition, deal with the sticky issue where SFINAE only considers substitution of template arguments into the *type* of a function template; we need to issue hard errors beyond this point, as test/SemaTemplate/operator-template.cpp illustrates. llvm-svn: 74651
-
- Jul 01, 2009
-
-
Fariborz Jahanian authored
Also has fix for bugzilla-4469. llvm-svn: 74631
-
Douglas Gregor authored
are fewer template arguments than there are template parameters for that function. llvm-svn: 74578
-
Douglas Gregor authored
substitute those template arguments into the function parameter types prior to template argument deduction. There's still a bit of work to do to make this work properly when only some of the template arguments are specified. llvm-svn: 74576
-
Fariborz Jahanian authored
list. llvm-svn: 74571
-
Douglas Gregor authored
templates, such as make<int&>. These template-ids are only barely functional for function calls; much more to come. llvm-svn: 74563
-
- Jun 30, 2009
-
-
Fariborz Jahanian authored
fields in the ctor-initializer list. llvm-svn: 74554
-
Fariborz Jahanian authored
in ctor-initializer list. llvm-svn: 74541
-
Douglas Gregor authored
instantiation stack so that we provide a full instantiation backtrace. Previously, we performed all of the instantiations implied by the recursion, but each looked like a "top-level" instantiation. The included test case tests the previous fix for the instantiation of DeclRefExprs. Note that the "instantiated from" diagnostics still don't tell us which template arguments we're instantiating with. llvm-svn: 74540
-
Douglas Gregor authored
llvm-svn: 74535
-
Zhongxing Xu authored
unknown for it. Mark the super region of a live region as live, if the live region is pointed to by a live pointer variable. These fixes xfail_regionstore_wine_crash.c. llvm-svn: 74524
-
Chris Lattner authored
David Majnemer! llvm-svn: 74513
-
Anders Carlsson authored
llvm-svn: 74481
-
Fariborz Jahanian authored
list. llvm-svn: 74480
-
Anders Carlsson authored
llvm-svn: 74472
-
Douglas Gregor authored
- Track implicit instantiations vs. the not-yet-supported explicit specializations - Give implicit instantiations of function templates (and member functions of class templates) linkonce_odr linkage. - Improve name mangling for function template specializations, including the template arguments of the instantiation and the return type of the function. Note that our name-mangling is improved, but not correct: we still don't mangle substitutions, although the manglings we produce can be demangled. llvm-svn: 74466
-
Fariborz Jahanian authored
in the ctor-initializer list. More to come. llvm-svn: 74465
-
- Jun 29, 2009
-
-
Douglas Gregor authored
redundant, implicit instantiations of function templates and provide a place where we can hang function template specializations. llvm-svn: 74454
-
Daniel Dunbar authored
- Patch by Jonathan Gray! llvm-svn: 74453
-
Zhongxing Xu authored
llvm-svn: 74419
-
- Jun 28, 2009
-
-
Anders Carlsson authored
llvm-svn: 74413
-
Chris Lattner authored
llvm-svn: 74412
-
Zhongxing Xu authored
llvm-svn: 74410
-
Zhongxing Xu authored
symbol. llvm-svn: 74408
-
Bill Wendling authored
function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405
-
Nate Begeman authored
Handle rules for ExtVector + ExtVector and ExtVector + Scalar operations. Fix problem Eli noticed where we were allowing pointer types to be splatted to vector elements. llvm-svn: 74404
-