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

5 Коммитов

Автор SHA1 Сообщение Дата
Chris Lattner 871dc3e225 fix line #'s
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83162 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-30 20:20:06 +00:00
Chris Lattner 0e3b44b0f4 add some more popular examples, color code warning: and error: like the command line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83161 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-30 20:19:10 +00:00
Douglas Gregor eff49c675c Add some examples of Fix-it hints to our documentation
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68210 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-01 16:24:40 +00:00
Douglas Gregor 969c689d89 Give Type::getDesugaredType a "for-display" mode that can apply more
heuristics to determine when it's useful to desugar a type for display
to the user. Introduce two C++-specific heuristics:

  - For a qualified type (like "foo::bar"), only produce a new
    desugred type if desugaring the qualified type ("bar", in this
    case) produces something interesting. For example, if "foo::bar"
    refers to a class named "bar", don't desugar. However, if
    "foo::bar" refers to a typedef of something else, desugar to that
    something else. This gives some useful desugaring such as
    "foo::bar (aka 'int')".
  - Don't desugar class template specialization types like
    "basic_string<char>" down to their underlying "class
    basic_string<char, char_traits<char>, allocator<char>>, etc.";
    it's better just to leave such types alone. 

Update diagnostics.html with some discussion and examples of type
preservation in C++, showing qualified names and class template
specialization types.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68207 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-01 15:47:24 +00:00
Chris Lattner 76766017c1 split diagnostics examples out to its own file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67318 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-19 18:52:17 +00:00