Re: [cfe-users] 3.8 indentation with -fdiagnostics-show-template-tree doesn't show tree

2016-05-25 Thread Larry Evans via cfe-users

On 05/24/2016 04:09 PM, Richard Trieu via cfe-users wrote:

Hi Larry,

Right now, the template type diffing only works when there are two
templated types in the diagnostics message, and the templated types
share the same base.  It your first example, the two types are
vector and vector.

In the second error message, only one type is printed with the
diagnostic message.  This does not trigger the template type diffing.
The first message is "no member named 'size' in <>"
and the second message is "in instantiation of function template
specialization <> requested here"

Richard


Thanks Richard.

That's too bad.  It finally dawned on me that I might could use
clang-format on the part of the error message I wanted indented.
It worked:

~/prog_dev/clang/libcxx/sandbox/libs/gram_stk/sandbox $ head test.cpp
texpressions::gram_defs::gram_def1::syms::varble0,
  def_ops::def_act, composite_storage::top (), 
var_ptr_bool::var_ptr_yes,


texpressions::gram_exprassociativity::assoc_left>,


texpressions::gram_expr::op_symb::syms::literl0>>,

texpressions::gram_exprassociativity::assoc_left>,


texpressions::gram_expr::op_symb::syms::literl1>>,

texpressions::gram_expr::op_symb~/prog_dev/clang/libcxx/sandbox/libs/gram_stk/sandbox $ clang-format 
test.cpp|head

Can't find usable .clang-format, using LLVM style
texpressions::gram_defs<
my_attrs,
composite_storage::type_sequence::gram_def1<
my_symbols::syms::varble0, 
def_ops::def_act,

composite_storage::top(), var_ptr_bool::var_ptr_yes,
texpressions::gram_expr<
op_assoc,
texpressions::gram_expr<
texpressions::op_symb<
~/prog_dev/clang/libcxx/sandbox/libs/gram_stk/sandbox $

Hope that helps others which have similar problem deciphering
error messages ;)

-regards,
Larry



___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


[cfe-users] official download unusable on centos 6?

2016-05-25 Thread kang joni via cfe-users
I downloaded provided clang 3.8 for centos6 and got bunch of errors like these:

./clang: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by ./clang)
./clang: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./clang)
./clang: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found
(required by ./clang)
./clang: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found
(required by ./clang)
./clang: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found
(required by ./clang)
./clang: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
(required by ./clang)

how to use clang c++11 on centos6 the easy way?
I saw clang 3.4.2 on epel release but I'm unsure how to build libcxx
to use c++11 since there was no libcxxabi at that time? Any good
tutorial?
thanks.
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users