[www] r294237 - Make code snippets html-friendly.
Vassil Vassilev via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 13:09:37 PST 2017
Author: vvassilev
Date: Mon Feb 6 15:09:37 2017
New Revision: 294237
URL: http://llvm.org/viewvc/llvm-project?rev=294237&view=rev
Log:
Make code snippets html-friendly.
Modified:
www/trunk/OpenProjects.html
Modified: www/trunk/OpenProjects.html
URL: http://llvm.org/viewvc/llvm-project/www/trunk/OpenProjects.html?rev=294237&r1=294236&r2=294237&view=diff
==============================================================================
--- www/trunk/OpenProjects.html (original)
+++ www/trunk/OpenProjects.html Mon Feb 6 15:09:37 2017
@@ -108,17 +108,17 @@ Welcome prospective Google Summer of Cod
type sugar when subsequently accessing members of the instantiation.
<pre>
- std::vector<std::string> vs;
- int n = vs.front(); // bad diagnostic: [...] aka 'std::basic_string<char>' [...]
+ std::vector<std::string> vs;
+ int n = vs.front(); // bad diagnostic: [...] aka 'std::basic_string<char>' [...]
- template<typename T> struct Id { typedef T type; };
- Id<size_t>::type // just 'unsigned long', 'size_t' sugar has been lost
+ template<typename T> struct Id { typedef T type; };
+ Id<size_t>::type // just 'unsigned long', 'size_t' sugar has been lost
</pre>
Clang should "re-sugar" the type when performing member access on a class
template specialization, based on the type sugar of the accessed
specialization. The type of vs.front() should be std::string, not
- std::basic_string<char, [...]>.
+ std::basic_string<char, [...]>.
<br /> <br />
Suggested design approach: add a new type node to represent template
argument sugar, and implicitly create an instance of this node whenever a
More information about the llvm-commits
mailing list