]> git.ipfire.org Git - thirdparty/valgrind.git/commit
callgrind_annotate, cg_annotate: don't truncate function names at '#'
authorAndreas Arnez <arnez@linux.ibm.com>
Wed, 23 Oct 2019 18:35:50 +0000 (20:35 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 3 Nov 2019 16:39:36 +0000 (17:39 +0100)
commit7f63a884264f48baea87f8be480475eced857fd5
treeb13622d6b0a690fc5595ef20ccfcff2a5a89be4c
parent46cdf576a050c7d40994f2b266c06678f1ac4bee
callgrind_annotate, cg_annotate: don't truncate function names at '#'

C++ function names can contain substrings like "{lambda()#1}".  But
callgrind_annotate and cg_annotate interpret the '#'-character as a
comment marker anywhere on each input line, and thus truncate such names
there.

On the other hand, the documentation in docs/cl-format.xml, states:

  Everywhere, comments on own lines starting with '#' are allowed.

This seems to imply that a comment line must start with '#' in the first
column.  Thus skip exactly such lines in the input file and don't handle
'#' as a comment marker anywhere else.

Signed-off-by: Philippe Waroquiers <philippe.waroquiers@skynet.be>
cachegrind/cg_annotate.in
callgrind/callgrind_annotate.in